dbTalk Databases Forums  

compiling mod_db4

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss compiling mod_db4 in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default compiling mod_db4 - 06-08-2006 , 06:33 PM






Hi,

I'm having some problems compiling mod_db4 on RedHat ES 3. The
configure process is working file, but on compile, I get this output:

[sergio@Evans mod_db4]$ make
/usr/local/apache_bdb/bin/apxs -c -S CC=g++ mod_db4.c sem_utils.c
skiplist.c utils.c mm_hash.c -lmm -L/usr/local/lib
-L/usr/local/bdb/lib -ldb_cxx
g++ -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -fpic -DSHARED_MODULE
-I/usr/local/apache_bdb/include -c mod_db4.c
g++ -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -fpic -DSHARED_MODULE
-I/usr/local/apache_bdb/include -c sem_utils.c
g++ -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -fpic -DSHARED_MODULE
-I/usr/local/apache_bdb/include -c skiplist.c
g++ -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -fpic -DSHARED_MODULE
-I/usr/local/apache_bdb/include -c utils.c
utils.c: In function `int DB_COMPARE(void*, void*)':
utils.c:120: `struct __db' has no member named `fname'
utils.c:121: `struct __db' has no member named `fname'
utils.c:126: `struct __db' has no member named `fname'
utils.c:130: `struct __db' has no member named `fname'
utils.c:130: `struct __db' has no member named `fname'
utils.c:132: `struct __db' has no member named `dname'
utils.c:133: `struct __db' has no member named `dname'
utils.c:138: `struct __db' has no member named `dname'
utils.c:141: `struct __db' has no member named `dname'
utils.c:141: `struct __db' has no member named `dname'
utils.c: In function `int DB_COMPARE_K(void*, void*)':
utils.c:152: `struct __db' has no member named `fname'
utils.c:158: `struct __db' has no member named `fname'
utils.c:162: `struct __db' has no member named `fname'
utils.c:165: `struct __db' has no member named `dname'
utils.c:170: `struct __db' has no member named `dname'
utils.c:173: `struct __db' has no member named `dname'
utils.c: In function `void unregister_db(DB*)':
utils.c:261: `struct __db' has no member named `fname'
utils.c:262: `struct __db' has no member named `dname'
apxs:Break: Command failed with rc=1
make: *** [mod_db4.so] Error 1

The __db struct most certain has fname and dname members as seen in the
db.h header file, so I'm not exactly sure where the problem is. Any
help out there would be greatly appreciated.

OS: RedHat Linux ES 3
compiler: gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-49)

Thanks!

/sergio


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: compiling mod_db4 - 06-12-2006 , 01:50 PM






OK,

I was actually able to solve this one myself. It has to do with the
fact that it can't find the BDB libraries properly. This can be solved
by changing the configure line to:

CXXFLAGS="-I/usr/local/bdb/include" ./configure
--with-apxs=/usr/local/apache_bdb/bin/apxs --with-db4=/usr/local/bdb
--with-mm=/usr/local

where the value of CXXFLAGS is the location of the bdb header files...

/sergio

sergiosalvatore (AT) gmail (DOT) com wrote:
Quote:
Hi,

I'm having some problems compiling mod_db4 on RedHat ES 3. The
configure process is working file, but on compile, I get this output:

[sergio@Evans mod_db4]$ make
/usr/local/apache_bdb/bin/apxs -c -S CC=g++ mod_db4.c sem_utils.c
skiplist.c utils.c mm_hash.c -lmm -L/usr/local/lib
-L/usr/local/bdb/lib -ldb_cxx
g++ -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -fpic -DSHARED_MODULE
-I/usr/local/apache_bdb/include -c mod_db4.c
g++ -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -fpic -DSHARED_MODULE
-I/usr/local/apache_bdb/include -c sem_utils.c
g++ -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -fpic -DSHARED_MODULE
-I/usr/local/apache_bdb/include -c skiplist.c
g++ -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -fpic -DSHARED_MODULE
-I/usr/local/apache_bdb/include -c utils.c
utils.c: In function `int DB_COMPARE(void*, void*)':
utils.c:120: `struct __db' has no member named `fname'
utils.c:121: `struct __db' has no member named `fname'
utils.c:126: `struct __db' has no member named `fname'
utils.c:130: `struct __db' has no member named `fname'
utils.c:130: `struct __db' has no member named `fname'
utils.c:132: `struct __db' has no member named `dname'
utils.c:133: `struct __db' has no member named `dname'
utils.c:138: `struct __db' has no member named `dname'
utils.c:141: `struct __db' has no member named `dname'
utils.c:141: `struct __db' has no member named `dname'
utils.c: In function `int DB_COMPARE_K(void*, void*)':
utils.c:152: `struct __db' has no member named `fname'
utils.c:158: `struct __db' has no member named `fname'
utils.c:162: `struct __db' has no member named `fname'
utils.c:165: `struct __db' has no member named `dname'
utils.c:170: `struct __db' has no member named `dname'
utils.c:173: `struct __db' has no member named `dname'
utils.c: In function `void unregister_db(DB*)':
utils.c:261: `struct __db' has no member named `fname'
utils.c:262: `struct __db' has no member named `dname'
apxs:Break: Command failed with rc=1
make: *** [mod_db4.so] Error 1

The __db struct most certain has fname and dname members as seen in the
db.h header file, so I'm not exactly sure where the problem is. Any
help out there would be greatly appreciated.

OS: RedHat Linux ES 3
compiler: gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-49)

Thanks!

/sergio


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.