[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compilation on redhat 7.3 db3 libraries
From: |
Patrice DUMAS - DOCT |
Subject: |
compilation on redhat 7.3 db3 libraries |
Date: |
Wed, 5 Jun 2002 19:37:09 +0200 |
User-agent: |
Mutt/1.2.5.1i |
Hi,
I had some problems with cfengine compiled on redhat 7.3. It doesn't annoy me,
but I think it could be fixed. cfengine-2.0.2. (I wanted to have a statically
linked cfengine on a floppy... I dont think this is gonna fit !).
1) ./configure didn't found the location of the libraries db3.
checking for BerkeleyDB location... /usr
checking Berkeley DB Version... configure: error: This release of cfengine
requires BerkeleyDB 3.2 or later
It worked with
./configure --with-berkeleydb=/usr
checking for BerkeleyDB location... /usr
checking Berkeley DB Version... 3.3.11 OK
checking for db_create in -ldb... yes
The dynamically linked cfagent resulting from compilation works well.
2) I wanted to compile cfengine statically, but it fails:
./configure --with-berkeleydb=/usr LDFLAGS=-static
was fine, but now make gives: (when linking):
gcc -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -g -O2
-I/usr/include -L/usr/lib -L/usr/lib -static -o cfagent cfagent.o init.o
do.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
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 -lfl -ldb -lcrypto -lpthread -lm -L../pub
-lpub
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.o(.text+0x8a): undefined reference to `dlopen'
dso_dlfcn.o(.text+0xe8): undefined reference to `dlclose'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.o(.text+0x18c): undefined reference to `dlclose'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.o(.text+0x239): undefined reference to `dlsym'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.o(.text+0x309): undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[1]: *** [cfagent] Error 1
make[1]: Leaving directory `/cired/zeus/local/src/cfengine-2.0.2/src'
make: *** [all-recursive] Error 1
I suspect this is about the same problem. Here is the ldd output on a
dynamically linked cfagent:
libdb-3.3.so => /lib/libdb-3.3.so (0x4002b000)
libcrypto.so.2 => /lib/libcrypto.so.2 (0x400bb000)
libnss_nis.so.2 => /lib/libnss_nis.so.2 (0x4017e000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40188000)
libm.so.6 => /lib/i686/libm.so.6 (0x4019c000)
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
libdl.so.2 => /lib/libdl.so.2 (0x401be000)
libnsl.so.1 => /lib/libnsl.so.1 (0x401c2000)
libnss_files.so.2 => /lib/libnss_files.so.2 (0x401d7000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Pat
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- compilation on redhat 7.3 db3 libraries,
Patrice DUMAS - DOCT <=