|
|
|
|
|
|
| Author |
Message |
Frank Fegert *nix forums Guru Wannabe
Joined: 04 Mar 2005
Posts: 213
|
Posted: Thu Jul 13, 2006 4:51 pm Post subject:
db4 build fails at rpc_client/client.c on AIX 5.3
|
|
|
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
|
Posted: Sun Jul 16, 2006 9:03 pm Post subject:
Re: db4 build fails at rpc_client/client.c on AIX 5.3
|
|
|
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 |
|
 |
|
|
The time now is Mon Dec 01, 2008 8:52 pm | All times are GMT
|
|
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
|
|