dbTalk Databases Forums  

db4 build fails at rpc_client/client.c on AIX 5.3

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


Discuss db4 build fails at rpc_client/client.c on AIX 5.3 in the comp.databases.berkeley-db forum.



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

Default db4 build fails at rpc_client/client.c on AIX 5.3 - 07-13-2006 , 11:51 AM






Hi all,

i'm having a hard time getting db4 compiled on AIX (5.3,
latest ML). The db4 (v4.4.20) compiles just fine, as
long as i don't enable RPC support ('--enable-rpc').
With RPC support enabled it just won't build success-
fully. Here's the build env:

LIBSO_LIBS=-lthread;
LDFLAGS=-Wl,-brtl,-bexpfull;
CC=/opt/afw/bin/gcc
.../dist/configure --prefix=/opt/afw/ \
--enable-shared=yes \
--enable-static=no \
--disable-largefile \
--enable-rpc

The problem starts with the RPC client part:
[...]
/usr/bin/sh ./libtool --mode=compile /opt/bin/gcc -c -I. -I../dist/.. -D_THREAD_SAFE -O2 ../dist/../crypto/rijndael/rijndael-api-fst.c
/opt/afw/bin/gcc -c -I. -I../dist/.. -D_THREAD_SAFE -O2 ../dist/../crypto/rijndael/rijndael-api-fst.c -DPIC -o .libs/rijndael-api-fst.o
/usr/bin/sh ./libtool --mode=compile /opt/bin/gcc -c -I. -I../dist/.. -D_THREAD_SAFE -O2 ../dist/../rpc_client/client.c
/opt/afw/bin/gcc -c -I. -I../dist/.. -D_THREAD_SAFE -O2 ../dist/../rpc_client/client.c -DPIC -o .libs/client.o
In file included from ../dist/../rpc_client/client.c:31:
.../dist/../dbinc_auto/rpc_client_ext.h:92: error: expected declaration specifiers or '...' before '__env_create_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:93: error: expected declaration specifiers or '...' before '__env_open_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:94: error: expected declaration specifiers or '...' before '__env_remove_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:95: error: expected declaration specifiers or '...' before '__txn_abort_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:96: error: expected declaration specifiers or '...' before '__env_txn_begin_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:97: error: expected declaration specifiers or '...' before '__txn_commit_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:98: error: expected declaration specifiers or '...' before '__txn_discard_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:99: error: expected declaration specifiers or '...' before '__env_txn_recover_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:100: error: expected declaration specifiers or '...' before '__db_close_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:101: error: expected declaration specifiers or '...' before '__db_create_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:102: error: expected declaration specifiers or '...' before '__db_get_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:103: error: expected declaration specifiers or '...' before '__db_key_range_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:104: error: expected declaration specifiers or '...' before '__db_open_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:105: error: expected declaration specifiers or '...' before '__db_pget_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:106: error: expected declaration specifiers or '...' before '__db_put_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:107: error: expected declaration specifiers or '...' before '__db_remove_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:108: error: expected declaration specifiers or '...' before '__db_rename_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:109: error: expected declaration specifiers or '...' before '__db_stat_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:110: error: expected declaration specifiers or '...' before '__db_truncate_reply'
../dist/../dbinc_auto/rpc_client_ext.h:111: error: expected declaration specifiers or '...' before '__db_cursor_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:112: error: expected declaration specifiers or '...' before '__db_join_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:113: error: expected declaration specifiers or '...' before '__dbc_c_close_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:114: error: expected declaration specifiers or '...' before '__dbc_c_count_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:115: error: expected declaration specifiers or '...' before '__dbc_c_dup_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:116: error: expected declaration specifiers or '...' before '__dbc_c_get_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:117: error: expected declaration specifiers or '...' before '__dbc_c_pget_reply'
.../dist/../dbinc_auto/rpc_client_ext.h:118: error: expected declaration specifiers or '...' before '__dbc_c_put_reply'
.../dist/../rpc_client/client.c: In function '__dbcl_env_set_rpc_server':
.../dist/../rpc_client/client.c:71: error: 'DB_RPC_SERVERPROG' undeclared (first use in this function)
.../dist/../rpc_client/client.c:71: error: (Each undeclared identifier is reported only once
.../dist/../rpc_client/client.c:71: error: for each function it appears in.)
.../dist/../rpc_client/client.c:72: error: 'DB_RPC_SERVERVERS' undeclared (first use in this function)
make: *** [client.lo] Error 1

Anyone got any ideas what's the problem here?

Thanks,

Frank

Reply With Quote
  #2  
Old   
Frank Fegert
 
Posts: n/a

Default Re: db4 build fails at rpc_client/client.c on AIX 5.3 - 07-16-2006 , 04:03 PM






Frank Fegert wrote:
Quote:
i'm having a hard time getting db4 compiled on AIX (5.3,
latest ML). The db4 (v4.4.20) compiles just fine, as
long as i don't enable RPC support ('--enable-rpc').
With RPC support enabled it just won't build success-
fully. Here's the build env:

[...]
Never mind, i figured it out. Just for the record: the
db_server.h was generated by rpcgen, but was emtpy.
Apparently rpcgen has - at least on AIX - a hardcoded
reference to /lib/cpp, which was missing. After i placed
a link to my own cpp binary the db_server.h was setup
correctly.

Regards,

Frank


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 - 2010, Jelsoft Enterprises Ltd.