dbTalk Databases Forums  

AIX compile error

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


Discuss AIX compile error in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ragavendrakk@gmail.com
 
Posts: n/a

Default AIX compile error - 01-20-2006 , 08:59 PM






We are trying to build bdb 4.3.28 on AIX, 5.3, xlC_r 3.6.4 version,
and we get a strange error. We need large file support. Pls help.

Quote:
env CC=xlc_r CFLAGS=-O2 CPPFLAGS=-D_REENTRANT ../dist/configure --enable-cxx
make
/usr/bin/sh ./libtool --mode=compile xlC_r -c -I. -I../dist/..
-D_REENTRANT -D_THREAD_SAFE -O2 ../dist/../db/db_method.c
xlC_r -c -I. -I../dist/.. -D_REENTRANT -D_THREAD_SAFE -O2
.../dist/../db/db_method.c -DPIC -o .libs/db_method.o

"/usr/include/sys/thread.h", line 875.36: 1506-310 (I) The type "struct
thread_credentials" was introduced in a parameter list, and will go out
of scope at the end of the function declaration or definition.

"../dist/../db/db_method.c", line 214.14: 1506-022 (S) "truncate64" is
not a member of "struct __db".
"../dist/../db/db_method.c", line 238.14: 1506-022 (S) "stat64" is not
a member of "struct __db".

thanks & regards
ragha



Reply With Quote
  #2  
Old   
Michael Cahill
 
Posts: n/a

Default Re: AIX compile error - 01-23-2006 , 09:11 PM






Hi Ragda,

Quote:
"../dist/../db/db_method.c", line 214.14: 1506-022 (S) "truncate64" is
not a member of "struct __db".
"../dist/../db/db_method.c", line 238.14: 1506-022 (S) "stat64" is not
a member of "struct __db".
This is caused by AIX redefining stat and truncate to
stat64/truncate64. The workaround is to edit the db.h file generated
by configure and add this line with the #includes near the top:

#include <unistd.h>

This change has been made in Berkeley DB 4.4, which compiles out of the
box on AIX 5.3.

Regards,
Michael.



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.