Forum: Cfengine Help
Subject: Compile 3.1.4 on Solaris 6
Author: LasseKongo
Link to topic: https://cfengine.com/forum/read.php?3,20839,20839#msg-20839

Hello

I am trying to compile Cfengine 3.1.4 on Solaris 6, but it fails. I have 
compiled it successfully on SLES 11 and Solaris 8.
I also have a working Cfengine 3.0.5 version running on Solaris 6 which is 
compiled with the same versions of the dependencies.

The dependencies and the compiler is from sunfreeware.com
* GCC 3.4.6
* db 4.7.25
* pcre 8.02
* Openssl 1.0.0

Configure is run like this : ./configure --prefix=/local/build/cfengineinstall 
--with-berkeleydb=/usr/local/BerkeleyDB.4.7/ --with-openssl=/usr/local/ssl/

This is output from the compilation:

make[2]: Entering directory `/local/scratch/cfengine-3.1.4/src'
/bin/ksh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I/usr/local/BerkeleyDB.4.7//include -I/usr/local/ssl//include  -D_REENTRANT 
-pthreads  -I/usr/local/include -g -Wreturn-type -Wmissing-prototypes 
-Wuninitialized -D_REENTRANT -pthreads -g -O2 
-I/usr/local/BerkeleyDB.4.7//include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-D_REENTRANT -pthreads -g -O2 -I/usr/local/BerkeleyDB.4.7//include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -MT libpromises_la-client_code.lo 
-MD -MP -MF .deps/libpromises_la-client_code.Tpo -c -o 
libpromises_la-client_code.lo `test -f 'client_code.c' || echo 
'./'`client_code.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/local/BerkeleyDB.4.7//include 
-I/usr/local/ssl//include -D_REENTRANT -pthreads -I/usr/local/include -g 
-Wreturn-type -Wmissing-prototypes -Wuninitialized -D_REENTRANT -pthreads -g 
-O2 -I/usr/local/BerkeleyDB.4.7//include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_REENTRANT -pthreads -g -O2 
-I/usr/local/BerkeleyDB.4.7//include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-MT libpromises_la-client_code.lo -MD -MP -MF 
.deps/libpromises_la-client_code.Tpo -c client_code.c  -fPIC -DPIC -o 
.libs/libpromises_la-client_code.o
client_code.c: In function `TryConnect':
client_code.c:1406: error: `socklen_t' undeclared (first use in this function)
client_code.c:1406: error: (Each undeclared identifier is reported only once
client_code.c:1406: error: for each function it appears in.)
client_code.c:1406: error: syntax error before "lon"
client_code.c:1413: error: `lon' undeclared (first use in this function)
make[2]: ***  Error 1
make[2]: Leaving directory `/local/scratch/cfengine-3.1.4/src'
make[1]: ***  Error 2
make[1]: Leaving directory `/local/scratch/cfengine-3.1.4/src'
make: ***  Error 1


Does anyone know if this version is supposed to work on Solaris 6 ??

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to