I'm trying to build 2.1.22 on AIX; am running into the following error message.
[EMAIL PROTECTED]:/opt/rg/data_dba/src/cfengine-2.1.22/src $ gmake gmake all-am gmake[1]: Entering directory `/opt/rg/data_dba/src/cfengine-2.1.22/src' if /opt/rg/data_dba/base-tools/gcc4/bin/gcc -maix64 -DHAVE_CONFIG_H -I. -I. -I. -I/opt/dbs/db-4.3.29/lib/include -I/opt/freeware/include -D_THREAD_SAFE -w -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -D_THREAD_SAFE -g -O2 -I/opt/dbs/db-4.3.29/lib/include -D_THREAD_SAFE -g -O2 -I/opt/dbs/db-4.3.29/lib/include -MT instrument.o -MD -MP -MF ".deps/instrument.Tpo" -c -o instrument.o instrument.c; \ then mv -f ".deps/instrument.Tpo" ".deps/instrument.Po"; else rm -f ".deps/instrument.Tpo"; exit 1; fi instrument.c: In function 'LastSeen': instrument.c:72: error: incompatible type for argument 4 of 'dbp->open' instrument.c:72: error: too many arguments to function 'dbp->open' instrument.c: In function 'CheckFriendConnections': instrument.c:167: error: incompatible type for argument 4 of 'dbp->open' instrument.c:167: error: too many arguments to function 'dbp->open' gmake[1]: *** [instrument.o] Error 1 gmake[1]: Leaving directory `/opt/rg/data_dba/src/cfengine-2.1.22/src' gmake: *** [all] Error 2 Argument #4 to dbp->open() is a NULL, which seems fine to me. I ran into the exact same problem with db-4.5.20, which is the latest release (now from Oracle). Note that the same problems crop up with two other files: [EMAIL PROTECTED]:/opt/rg/data_dba/src/cfengine-2.1.22/src $ gmake checksum_db.o if /opt/rg/data_dba/base-tools/gcc4/bin/gcc -maix64 -DHAVE_CONFIG_H -I. -I. -I. -I/opt/dbs/db-4.3.29/lib/include -I/opt/freeware/include -D_THREAD_SAFE -w -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -D_THREAD_SAFE -g -O2 -I/opt/dbs/db-4.3.29/lib/include -D_THREAD_SAFE -g -O2 -I/opt/dbs/db-4.3.29/lib/include -MT checksum_db.o -MD -MP -MF ".deps/checksum_db.Tpo" -c -o checksum_db.o checksum_db.c; \ then mv -f ".deps/checksum_db.Tpo" ".deps/checksum_db.Po"; else rm -f ".deps/checksum_db.Tpo"; exit 1; fi checksum_db.c: In function 'ChecksumChanged': checksum_db.c:121: error: incompatible type for argument 4 of 'dbp->open' checksum_db.c:121: error: too many arguments to function 'dbp->open' checksum_db.c: In function 'ChecksumPurge': checksum_db.c:221: error: incompatible type for argument 4 of 'dbp->open' checksum_db.c:221: error: too many arguments to function 'dbp->open' gmake: *** [checksum_db.o] Error 1 [EMAIL PROTECTED]:/opt/rg/data_dba/src/cfengine-2.1.22/src $ gmake cfshow.o if /opt/rg/data_dba/base-tools/gcc4/bin/gcc -maix64 -DHAVE_CONFIG_H -I. -I. -I. -I/opt/dbs/db-4.3.29/lib/include -I/opt/freeware/include -D_THREAD_SAFE -w -g -O2 -Wreturn-type -Wmissing-prototypes -Wuninitialized -D_THREAD_SAFE -g -O2 -I/opt/dbs/db-4.3.29/lib/include -D_THREAD_SAFE -g -O2 -I/opt/dbs/db-4.3.29/lib/include -MT cfshow.o -MD -MP -MF ".deps/cfshow.Tpo" -c -o cfshow.o cfshow.c; \ then mv -f ".deps/cfshow.Tpo" ".deps/cfshow.Po"; else rm -f ".deps/cfshow.Tpo"; exit 1; fi cfshow.c: In function 'ShowLastSeen': cfshow.c:215: error: incompatible type for argument 4 of 'dbp->open' cfshow.c:215: error: too many arguments to function 'dbp->open' cfshow.c: In function 'ShowChecksums': cfshow.c:311: error: incompatible type for argument 4 of 'dbp->open' cfshow.c:311: error: too many arguments to function 'dbp->open' cfshow.c: In function 'ShowLocks': cfshow.c:389: error: incompatible type for argument 4 of 'dbp->open' cfshow.c:389: error: too many arguments to function 'dbp->open' gmake: *** [cfshow.o] Error 1 checksum_db.c and instrument.c are brand new in 2.1.22, so "colour me suspicious" that there's something off in the new code :-). FYI, I did get a successful compile (same libs) of version 2.1.21, so it seems like a recent regression... If I wrap the calls in the new files roughly as follows, all seems to be well... #ifdef CF_OLD_DB if ((err_no = dbp->open(dbp,AVDB,NULL,DB_BTREE,DB_CREATE,0644)) != 0) #else if ((err_no = dbp->open(dbp,NULL,AVDB,NULL,DB_BTREE,DB_CREATE,0644)) != 0) #endif (And in effect, if we're running "CF_OLD_DB", parameter #2 gets dropped...) -- "cbbrowne","@","cbbrowne.com" http://linuxfinances.info/info/lsf.html "You're one of those condescending Unix computer users!" "Here's a nickel, kid. Get yourself a real computer" - Dilbert. _______________________________________________ Bug-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/bug-cfengine
