niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
db4 build fails at rpc_client/client.c on AIX 5.3
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Frank Fegert
*nix forums Guru Wannabe


Joined: 04 Mar 2005
Posts: 213

PostPosted: Thu Jul 13, 2006 4:51 pm    Post subject: db4 build fails at rpc_client/client.c on AIX 5.3 Reply with quote

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
Back to top
Frank Fegert
*nix forums Guru Wannabe


Joined: 04 Mar 2005
Posts: 213

PostPosted: Sun Jul 16, 2006 9:03 pm    Post subject: Re: db4 build fails at rpc_client/client.c on AIX 5.3 Reply with quote

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
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 8:52 pm | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix SMTP client issues damber Postfix 1 Sat Apr 19, 2008 11:33 am
No new posts mail delivery to cyrus fails embedded Postfix 0 Mon Mar 03, 2008 2:43 pm
No new posts MySQL Max Build Policy Kaj Arnö MySQL 0 Fri Jul 21, 2006 2:08 pm
No new posts Problem while accessing 64 bit Server thru 32 bit client Ganesh Server 0 Fri Jul 21, 2006 1:40 pm
No new posts Anti-uce client checks Ian Andrews Postfix 2 Fri Jul 21, 2006 3:22 am

Mortgages | Best Credit Cards | Credit Cards | Loans | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2038s ][ Queries: 16 (0.1153s) ][ GZIP on - Debug on ]