A
Ara.T.Howard
shouldn't this pick up 4.2?
jib:/dmsp/reference/build/bdb-0.5.1 > ls /dmsp/reference/lib/libdb-4.2.*
/dmsp/reference/lib/libdb-4.2.a /dmsp/reference/lib/libdb-4.2.la /dmsp/reference/lib/libdb-4.2.so
jib:/dmsp/reference/build/bdb-0.5.1 > strings /dmsp/reference/lib/libdb-4.2.so |grep db_version
db_version
jib:/dmsp/reference/build/bdb-0.5.1 > ruby extconf.rb --with-db-dir=/dmsp/reference/
extconf.rb: Entering directory `src'
checking for db_version() in -ldb-4.2... no
checking for db_version_4002() in -ldb-4.2... no
checking for db_version() in -ldb42... no
checking for db_version_4002() in -ldb42... no
checking for db_version() in -ldb-4.1... yes
creating Makefile
extconf.rb: Leaving directory `src'
jib:/dmsp/reference/build/bdb-0.5.1 > make
make[1]: Entering directory `/dmsp/moby-1-1/reference/build/bdb-0.5.1/src'
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c common.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c bdb.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c lock.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c env.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c cursor.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c delegator.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c log.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c transaction.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c recnum.c
gcc -shared -L"/dmsp/reference/ruby-1.8.1/lib" -L"/dmsp/reference//lib" -o bdb.so common.o bdb.o lock.o env.o cursor.o delegator.o log.o transaction.o recnum.o -ldb-4.1 -ldl -lcrypt -lm -lc
make[1]: Leaving directory `/dmsp/moby-1-1/reference/build/bdb-0.5.1/src'
jib:/dmsp/reference/build/bdb-0.5.1 > ldd src/bdb.so
libdb-4.1.so => /lib/libdb-4.1.so (0xb750b000)
libdl.so.2 => /lib/libdl.so.2 (0xb7508000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb74db000)
libm.so.6 => /lib/tls/libm.so.6 (0xb74b8000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7380000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7370000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
what am i missing - why does this not link against 4.2?
ps. guy - those are some __crazy__ extconf.rb files! ;-)
-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| A flower falls, even though we love it;
| and a weed grows, even though we do not love it.
| --Dogen
===============================================================================
jib:/dmsp/reference/build/bdb-0.5.1 > ls /dmsp/reference/lib/libdb-4.2.*
/dmsp/reference/lib/libdb-4.2.a /dmsp/reference/lib/libdb-4.2.la /dmsp/reference/lib/libdb-4.2.so
jib:/dmsp/reference/build/bdb-0.5.1 > strings /dmsp/reference/lib/libdb-4.2.so |grep db_version
db_version
jib:/dmsp/reference/build/bdb-0.5.1 > ruby extconf.rb --with-db-dir=/dmsp/reference/
extconf.rb: Entering directory `src'
checking for db_version() in -ldb-4.2... no
checking for db_version_4002() in -ldb-4.2... no
checking for db_version() in -ldb42... no
checking for db_version_4002() in -ldb42... no
checking for db_version() in -ldb-4.1... yes
creating Makefile
extconf.rb: Leaving directory `src'
jib:/dmsp/reference/build/bdb-0.5.1 > make
make[1]: Entering directory `/dmsp/moby-1-1/reference/build/bdb-0.5.1/src'
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c common.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c bdb.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c lock.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c env.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c cursor.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c delegator.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c log.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c transaction.c
gcc -fPIC -g -O2 -I. -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/i686-linux -I. -I/dmsp/reference//include -c recnum.c
gcc -shared -L"/dmsp/reference/ruby-1.8.1/lib" -L"/dmsp/reference//lib" -o bdb.so common.o bdb.o lock.o env.o cursor.o delegator.o log.o transaction.o recnum.o -ldb-4.1 -ldl -lcrypt -lm -lc
make[1]: Leaving directory `/dmsp/moby-1-1/reference/build/bdb-0.5.1/src'
jib:/dmsp/reference/build/bdb-0.5.1 > ldd src/bdb.so
libdb-4.1.so => /lib/libdb-4.1.so (0xb750b000)
libdl.so.2 => /lib/libdl.so.2 (0xb7508000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb74db000)
libm.so.6 => /lib/tls/libm.so.6 (0xb74b8000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7380000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7370000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
what am i missing - why does this not link against 4.2?
ps. guy - those are some __crazy__ extconf.rb files! ;-)
-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| A flower falls, even though we love it;
| and a weed grows, even though we do not love it.
| --Dogen
===============================================================================