help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cfengine 2.1.3 Solaris and HP-UX statically complie ????


From: Bill
Subject: cfengine 2.1.3 Solaris and HP-UX statically complie ????
Date: 4 May 2004 16:09:18 -0700

I would like to compile cfengine on Solaris 8 and HP-UX 11.11
statically so I do not have to install B-DB and SSL on every machine.
(we haev a common area with those applications installed)

The Linux static install went well.

It will compile fine when dynamically linking against shared area B-DB
and SSL but fails on  Solaris 8 with errors from the include files
netdb.h and prototypes.h both referencing setnetgrent and endnetgrent.
I did add the -static -z muldefs to the CFLAGS env before running
"./configure"

gmake[1]: Entering directory `/tmp/CFengine/cfengine-2.1.3/pub'
if gcc -DHAVE_CONFIG_H -I. -I. -I../src
-I/nokia/apps/tww_root/sparc-sun-solaris2.7/libdb41/include
-I/nokia/apps/tww_root/sparc-sun-solaris2.7/libopenssl097/include  
-static -z muldefs -I/nokia/apps/tww_root/sparc-sun-solaris2.7/libdb41/include
-g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -static -z
muldefs -I/nokia/apps/tww_root/sparc-sun-solaris2.7/libdb41/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 ../src/cf.defs.h:1892,
                 from full-write.c:23:
../src/prototypes.h:777: error: conflicting types for `setnetgrent'
/usr/include/netdb.h:283: error: previous declaration of `setnetgrent'
../src/prototypes.h:779: error: conflicting types for `endnetgrent'
/usr/include/netdb.h:284: error: previous declaration of `endnetgrent'
gmake[1]: *** [full-write.o] Error 1
gmake[1]: Leaving directory `/tmp/CFengine/cfengine-2.1.3/pub'
gmake: *** [all-recursive] Error 1
Exit 2




and HP-UX 11.11 with:

gmake[2]: Entering directory `/tmp/cfengine/cfengine-2.1.3/src'
Makefile:643: warning: overriding commands for target `cfparse.h'
Makefile:620: warning: ignoring old commands for target `cfparse.h'
gcc -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized
-D_REENTRANT  -static
-I/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/include  
-D_REENTRANT  -static
-I/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/include
-L/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib
-L/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libopenssl097/lib  
-L/opt/dce/lib -L/opt/dce/lib -o cfagent  cfagent.o init.o do.o
modules.o alerts.o wrapper.o report.o client.o ip.o process.o ifconf.o
image.o item.o item-ext.o item-file.o 2Dlist.o globals.o classes.o
misc.o parse.o functions.o edittools.o patches.o install.o link.o
tidy.o filedir.o eval.o modes.o sockaddr.o chflags.o locks.o mount.o
macro.o filenames.o varstring.o wildcard.o cfparse.o comparray.o
read.o checksums.o proto.o filters.o copy.o repository.o rotate.o
errors.o cflex.o net.o df.o log.o crypto.o popen.o popen_def.o
sensible.o acl.o dce_acl.o nameinfo.o strategies.o granules.o
methods.o state.o package.o -ll -ll -ldb -lcrypto -L../pub -lpub -lPW
-lpthread -lm  -lc
/usr/ccs/bin/ld: Unsatisfied symbols:
   xdr_double (first referenced in
/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib/libdb.a(db_server_xdr.o))
(code)
   xdr_string (first referenced in
/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib/libdb.a(db_server_xdr.o))
(code)
   xdr_bytes (first referenced in
/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib/libdb.a(db_server_xdr.o))
(code)
   xdr_opaque (first referenced in
/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib/libdb.a(db_server_xdr.o))
(code)
   xdr_int (first referenced in
/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib/libdb.a(db_server_xdr.o))
(code)
   clnt_create (first referenced in
/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib/libdb.a(client.o))
(code)
   xdr_u_int (first referenced in
/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib/libdb.a(db_server_xdr.o))
(code)
   clnt_spcreateerror (first referenced in
/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib/libdb.a(client.o))
(code)
   xdr_array (first referenced in
/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib/libdb.a(db_server_xdr.o))
(code)
   xdr_free (first referenced in
/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib/libdb.a(gen_client.o))
(code)
   clnt_sperror (first referenced in
/nokia/apps/tww_root/hppa1.1-hp-hpux11.11/libdb41/lib/libdb.a(gen_client.o))
(code)
collect2: ld returned 1 exit status
gmake[2]: *** [cfagent] Error 1
gmake[2]: Leaving directory `/tmp/cfengine/cfengine-2.1.3/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/tmp/cfengine/cfengine-2.1.3/src'
gmake: *** [all-recursive] Error 1

Any help is greatly appriciated!!
Bill


reply via email to

[Prev in Thread] Current Thread [Next in Thread]