hello, i'm having a problem configuring cfengine 2.1.20 from source on
Solaris 9 sparc. it complains of the familiar BerkeleyDB 3.2 or later
requirement. but i'm not sure what to do about it. can anyone advise?
much appreciation in advance...
[EMAIL PROTECTED] cfengine-2.1.20]$ uname -a
SunOS archer 5.9 Generic_118558-11 sun4u sparc SUNW,Ultra-80
[EMAIL PROTECTED] cfengine-2.1.20]$ env | grep LD
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/BerkeleyDB.4.2/lib:/usr/local/ssl/lib
[EMAIL PROTECTED] cfengine-2.1.20]$ strings /var/ld/ld.config
/usr/lib:/usr/local/lib/ssl:/local/lib:/usr/local/lib:/usr/local/BerkeleyDB.4.2/lib:/usr/local/ssl/lib
/usr/lib/secure:/usr/lib/mps
[EMAIL PROTECTED] cfengine-2.1.20]$ ./configure --prefix=/usr/local/cfengine
--with-berkeleydb=/usr/local/BerkeleyDB.4.2/
[snip]
checking for gethostent... no
checking for gethostent in -lnsl... yes
checking for getaddrinfo... yes
checking for library containing socket... none required
checking for BerkeleyDB location in /usr/local/BerkeleyDB.4.2/...
/usr/local/BerkeleyDB.4.2/
checking Berkeley DB Version... configure: error: This release of cfengine
requires BerkeleyDB 3.2 or later
[EMAIL PROTECTED] cfengine-2.1.20]$ pkginfo -l SMCdb
PKGINST: SMCdb
NAME: db
CATEGORY: application
ARCH: sparc
VERSION: 4.2.52.NC
BASEDIR: /usr/local
VENDOR: Sleepycat Software
PSTAMP: Steve Christensen
INSTDATE: Dec 20 2005 17:28
EMAIL: [EMAIL PROTECTED]
STATUS: completely installed
FILES: 2512 installed pathnames
173 directories
11 executables
47770 blocks used (approx)
[EMAIL PROTECTED] cfengine-2.1.20]$ gcc -v
Reading specs from /usr/local/lib/gcc/sparc64-sun-solaris2.9/3.4.4/specs
Configured with: /var/tmp/gcc-3.4.4/configure --prefix=/usr/local
--host=sparc64-sun-solaris2.9 --enable-threads=posix
--with-gxx-include-dir=/usr/local/include/g++ --with-system-zlib
--enable-shared --with-ld=/usr/ccs/bin/ld --without-gnu-ld
Thread model: posix
gcc version 3.4.4
possible smoking gun in config.log (attached) but not sure what to do:
configure:8316: checking for BerkeleyDB location in /usr/local/BerkeleyDB.4.2/
configure:8525: result: /usr/local/BerkeleyDB.4.2/
configure:8579: checking Berkeley DB Version
configure:8608: gcc -o conftest -D_REENTRANT -pthreads -g -O2 -I/usr/local/Berke
leyDB.4.2//include -D_REENTRANT -pthreads -L/usr/local/BerkeleyDB.4.2//lib -R
/usr/local/BerkeleyDB.4.2//lib conftest.c -lnsl -lsocket -lm -ldb >&5
ld: fatal: file /usr/local/BerkeleyDB.4.2//lib/libdb.so: wrong ELF class: ELFCLA
SS32
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:8611: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
[EMAIL PROTECTED] cfengine-2.1.20]$ file /usr/local/BerkeleyDB.4.2/lib/libdb.so
/usr/local/BerkeleyDB.4.2/lib/libdb.so: ELF 32-bit MSB dynamic lib SPARC
Version 1, dynamically linked, not stripped
fwiw, it works fine for me on solaris 10 sparc. i didn't have to specify
--with-berkeleydb=/path. ld.config is different on this solaris 10 sparc
box, compared to the solaris 9 sparc box:
[EMAIL PROTECTED] cfengine-2.1.20]$ uname -a
SunOS sbr-solbuild 5.10 Generic_118833-03 sun4u sparc SUNW,Sun-Fire-V210
[EMAIL PROTECTED] cfengine-2.1.20]$ strings /var/ld/ld.config
/usr/lib:/usr/sfw/lib:/usr/local/lib
/usr/lib/secure
configure:8319: checking for BerkeleyDB location in default
configure:8528: result: /usr/local/BerkeleyDB.4.2
configure:8582: checking Berkeley DB Version
configure:8611: gcc -o conftest -D_REENTRANT -pthread -g -O2 -I/usr/local/Berkel
eyDB.4.2/include -D_REENTRANT -pthread -L/usr/local/BerkeleyDB.4.2/lib -R/usr
/local/BerkeleyDB.4.2/lib conftest.c -lnsl -lsocket -lm -ldb >&5
gcc: unrecognized option `-pthread'
gcc: unrecognized option `-pthread'
configure:8614: $? = 0
configure:8616: ./conftest
configure:8619: $? = 0
configure:8621: result: OK
[EMAIL PROTECTED] cfengine-2.1.20]$ file /usr/local/BerkeleyDB.4.2/lib/libdb.so
/usr/local/BerkeleyDB.4.2/lib/libdb.so: ELF 32-bit MSB dynamic lib SPARC
Version 1, dynamically linked, not stripped
[EMAIL PROTECTED] cfengine-2.1.20]$ gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
--
"For one human being to love another, that is perhaps the most difficult
of our tasks; the ultimate, the last test and proof; the work for which all
other work is but preparation."
-- Rainer Maria Rilke
_______________________________________________
Help-cfengine mailing list
[email protected]
http://cfengine.org/mailman/listinfo/help-cfengine