I'm having some issues compiling cfengine-2.1.20 on HP-UX 11.11 on PA-
RISC 1.1
I'm using the HP depot gcc-4.1.0, BerkeleyDB 4.4.20.NC, PCRE 6.3,
Openssl 0.9.8a.
All compiled statically,
Here is the output I'm getting:
$ ./configure LDFLAGS='-lpthread' --prefix=/usr/local/cfengine --
enable-static --disable-shared --with-berkeleydb=/var/cfengine/lib/db
--with-openssl=/var/cfengine/lib/ssl --with-pcre=/var/cfengine/lib/pcre
checking build system type... hppa1.1-hp-hpux11.11
checking host system type... hppa1.1-hp-hpux11.11
checking target system type... hppa1.1-hp-hpux11.11
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_REENTRANT
checking for cc_r... gcc
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... yes
checking for bison... no
checking for byacc... no
checking for ranlib... ranlib
checking for a BSD-compatible install... ./install-sh -c
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking for getloadavg... no
checking for pstat_getdynamic... yes
checking for kstat_open in -lkstat... no
checking for elf_begin in -lelf... yes
checking for kvm_open in -lkvm... no
checking for getloadavg in -lutil... no
checking for getloadavg in -lgetloadavg... no
checking for getloadavg... no
checking sys/dg_sys_info.h usability... no
checking sys/dg_sys_info.h presence... no
checking for sys/dg_sys_info.h... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for setlocale... yes
checking nlist.h usability... yes
checking nlist.h presence... yes
checking for nlist.h... yes
checking for struct nlist.n_un.n_name... no
checking whether getloadavg requires setgid... no
checking for latex... false
checking for texi2dvi... false
checking for dvips... false
checking for makeinfo... false
checking for ps2pdf... false
checking for getconf... /usr/bin/getconf
checking for main in -lm... yes
checking for door_create... no
checking for setsockopt... yes
checking for gethostent... yes
checking for getaddrinfo... no
checking for getaddrinfo in -lsocket... no
checking for library containing socket... none required
checking for BerkeleyDB location in /var/cfengine/lib/db... /var/
cfengine/lib/db
checking Berkeley DB Version... 4.4.20 OK
checking Berkeley DB API... 4.4.20 OK
checking for db_create in -ldb... yes
checking for OpenSSL location... /var/cfengine/lib/ssl
checking OpenSSL Version... OK
checking for main in -lcrypto... yes
checking pcre... = /var/cfengine/lib/pcre
checking for main in -lrx... no
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking sys/malloc.h usability... yes
checking sys/malloc.h presence... yes
checking for sys/malloc.h... yes
checking vfs.h usability... no
checking vfs.h presence... no
checking for vfs.h... no
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/filesys.h usability... no
checking sys/filesys.h presence... no
checking for sys/filesys.h... no
checking dustat.h usability... no
checking dustat.h presence... no
checking for dustat.h... no
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking rxposix.h usability... no
checking rxposix.h presence... no
checking for rxposix.h... no
checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no
checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for mode_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for an ANSI C-conforming const... yes
checking for getcwd... yes
checking for getnetgrent... yes
checking for waitpid... yes
checking for seteuid... no
checking for setegid... no
checking for setreuid... yes
checking for setregid... yes
checking for uname... yes
checking for gethostname... yes
checking for realpath... yes
checking for regcomp... no
checking for chflags... no
checking for strstr... yes
checking for putenv... yes
checking for drand48... yes
checking for srand48... yes
checking for getaddrinfo... (cached) no
checking for bcopy... yes
checking for mkfifo... yes
checking for statfs... yes
checking for statvfs... yes
checking for door... no
checking for sysinfo... yes
checking for setsid... yes
checking for strdup... yes
checking for strrchr... yes
checking for strerror... yes
checking for snprintf... yes
checking for sysconf... yes
checking for struct sockaddr.sa_len... no
checking for either struct rtentry or struct ortentry... rtentry
checking whether to compile with large file support... no
checking for main in -lpthread... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for lchown... yes
checking for pthread_attr_setstacksize... yes
checking for pthread_sigmask... yes
checking for main in -lPW... yes
checking 8-bit support in Flex... no 8-bit support
checking Checking for GCC Specific compile flags... yes
checking for hostname... /usr/bin/hostname
configure: creating ./config.status
config.status: creating pub/Makefile
config.status: creating src/Makefile
config.status: creating contrib/Makefile
config.status: creating inputs/Makefile
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/cflex.l
config.status: creating src/conf.h
config.status: executing depfiles commands
configure: WARNING:
=====================================================
configure: WARNING:
configure: WARNING: DFS users should use --enable-DCE
configure: WARNING:
configure: WARNING: This version requires Berkeley db version 3.2 or
configure: WARNING: later from www.sleepycat.com
configure: WARNING: This version requires OpenSSL 0.9.7 or later
configure: WARNING: from www.openssl.org
configure: WARNING:
configure: WARNING:
=====================================================
DONE: Configuration done. Run make/gmake to build cfengine.
$ make
No suffix list.
Making all in pub
if gcc -DHAVE_CONFIG_H -I. -I. -I../src -I/var/cfengine/lib/
db/include -I/var/cfengine/lib/ssl/include -D_REENTRANT -I/var/
cfengine/lib/pcre/include -D_REENTRANT -g -O2 -I/var/cfengine/lib/db/
include -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -
D_REENTRANT -g -O2 -I/var/cfengine/lib/db/include -MT getopt.o -MD -
MP -MF ".deps/getopt.Tpo" -c -o getopt.o getopt.c; \
then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f
".deps/getopt.Tpo"; exit 1; fi
getopt.c: In function '_getopt_internal':
getopt.c:487: warning: incompatible implicit declaration of built-in
function 'strlen'
getopt.c:511: warning: incompatible implicit declaration of built-in
function 'strlen'
getopt.c:541: warning: incompatible implicit declaration of built-in
function 'strlen'
getopt.c:554: warning: incompatible implicit declaration of built-in
function 'strlen'
getopt.c:558: warning: incompatible implicit declaration of built-in
function 'strlen'
if gcc -DHAVE_CONFIG_H -I. -I. -I../src -I/var/cfengine/lib/
db/include -I/var/cfengine/lib/ssl/include -D_REENTRANT -I/var/
cfengine/lib/pcre/include -D_REENTRANT -g -O2 -I/var/cfengine/lib/db/
include -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -
D_REENTRANT -g -O2 -I/var/cfengine/lib/db/include -MT getopt1.o -MD -
MP -MF ".deps/getopt1.Tpo" -c -o getopt1.o getopt1.c; \
then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -
f ".deps/getopt1.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../src -I/var/cfengine/lib/
db/include -I/var/cfengine/lib/ssl/include -D_REENTRANT -I/var/
cfengine/lib/pcre/include -D_REENTRANT -g -O2 -I/var/cfengine/lib/db/
include -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -
D_REENTRANT -g -O2 -I/var/cfengine/lib/db/include -MT full-write.o -
MD -MP -MF ".deps/full-write.Tpo" -c -o full-write.o full-write.c; \
then mv -f ".deps/full-write.Tpo" ".deps/full-write.Po";
else rm -f ".deps/full-write.Tpo"; exit 1; fi
In file included from /usr/include/net/if.h:234,
from ../src/cf.defs.h:220,
from full-write.c:23:
/usr/include/net/if6.h:77: error: field 'iflru_addr' has incomplete type
/usr/include/net/if6.h:78: error: field 'iflru_dstaddr' has
incomplete type
/usr/include/net/if6.h:118: error: field 'lifra_addr' has incomplete
type
/usr/include/net/if6.h:119: error: field 'lifra_mask' has incomplete
type
In file included from /usr/include/net/route.h:278,
from ../src/cf.defs.h:229,
from full-write.c:23:
/usr/include/net/route6.h:53: error: field 'lrt_dst' has incomplete type
/usr/include/net/route6.h:54: error: field 'lrt_gateway' has
incomplete type
/usr/include/net/route6.h:59: error: field 'lrt_subnetmask' has
incomplete type
/usr/include/net/route6.h:60: error: field 'lrt_src' has incomplete type
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
Any help would be appreciated.
Thanks,
Michael Grubb, CISSP
Acxiom Corporation
Performance Technology Systems 2
Systems Security Team
P: 501-252-4244
E: [EMAIL PROTECTED]
(Remove all _'s and -'s)
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine