I recieve the following error with either db3 or db4
selected in configure. system version of db is 4.1.25
has not worked with 0.0.6 or 0.0.7 downgrading db is not
an option as i maintain a section of games for my distro
(www.sourcemage.org) and the distro has updated to
db-4.1.25. compiling against db.h from db-4.0.14 removes
the error but my coding skills are not good enough to fix
this. Is this a known problem with the latest db? is there
something i should export before the build ?
Many thanks
Hamish Greig
http://www.sourcemage.org
ggzdb_db3.c: In function `_ggzdb_init_player':
ggzdb_db3.c:118: warning: passing arg 2 of pointer to
function from incompatible pointer type
ggzdb_db3.c:118: warning: passing arg 4 of pointer to
function makes pointer from integer without a cast
ggzdb_db3.c:118: too few arguments to function
ggzdb_db3.c: In function `_ggzdb_init_stats':
ggzdb_db3.c:329: warning: passing arg 2 of pointer to
function from incompatible pointer type
ggzdb_db3.c:329: warning: passing arg 4 of pointer to
function makes pointer from integer without a cast
ggzdb_db3.c:329: too few arguments to function
make[5]: *** [ggzdb_db3.o] Error 1
Logged In: YES
user_id=2207
The files configure.ac and ggzd/database/ggzdb_db4.c have
been changed in CVS HEAD.
If the changes work for you, then they can be applied to the 0.0.7
branch as well.
They compile for me, but unfortunately the db initialization fails
with 4.1, I don't know why yet, there's probably something
missing beforehand.
Logged In: YES
user_id=794247
i pulled theses two files from CVS but had to change
references to db_env_create_4000/1 to plain db_env_create.
therefore i didn't use configure.ac so ggzdb_db4.c v1.3 was
the fix for me. fingers crossed!
4.1.25 for me does not use the 4000 or 4001 suffix?
first time i built it the db failed to initialise but now it does? (go
figure).
Logged In: YES
user_id=794247
I was wrong. ggzd now compiles but won't initialise database.
i also tried with mysql but build fails too.
now with db4 i get this
db_e->open() failed in _ggzdb_init(): File exists
*** Database initialization failed: File exists
Aborted
only get this on second run first run exits with
db_e->open() failed in _ggzdb_init(): Invalid argument
*** Database initialization failed: Invalid argument
Aborted
Logged In: YES
user_id=2207
Please try again with current CVS (only ggzdb_db4.c has been
changed).
For some strange reason, DB_EXCL is activated when
DB_AUTO_COMMIT is used, so I deactivated it.