hmm, it appears that i neglected to attach full config.log. no matter,
because i just got it to work by setting CFLAGS="-m32".

[EMAIL PROTECTED] cfengine-2.1.20]$ CFLAGS="-m32" ./configure 
--prefix=/usr/local/cfengine

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 -m32 
-I/usr/local/BerkeleyDB.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
configure:8611: $? = 0
configure:8613: ./conftest
configure:8616: $? = 0
configure:8618: result: OK

<comrade> the -m32 thing says link as 32 bit binaries
<kallen> one thing i don't understand is why it tried to do 64-bit in
         the first place
<comrade> try this: isainfo -kv
<comrade> the system is set up to support 64 bit by default.
<comrade> but the bdb package is 32bit for compatibility
<kallen> ohhh. isainfo reports "64-bit sparcv9 kernel modules"
<kallen> so... another option would be to install bdb 64-bit version?
<comrade> yeah
<comrade> the prepackaged one, that is. So you can run it on IPC->E15K


On Tue, 23 May 2006, kallen wrote:

> 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
> Help-cfengine@cfengine.org
> http://cfengine.org/mailman/listinfo/help-cfengine

-- 
"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
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to