Hello,
I use 32bit Gentoo. I installed DB by Gentoo emerge, first 3.3 version,
than the latest. Everytime i compile KPSK i get:
logcore.cpp: In constructor `logCore::logCore()':
logcore.cpp:33: error: cannot convert `char*' to `DB_TXN*' in argument
passing
logcore.cpp:40: error: cannot convert `char*' to `DB_TXN*' in argument
passing
make[3]: *** [logcore.o] Error 1
make[3]: Leaving directory `/moje_install/kpsk-1.0.1/kpsk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/moje_install/kpsk-1.0.1/kpsk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/moje_install/kpsk-1.0.1'
make: *** [all] Error 2
Please, can you help me? I'll keep on trying, but...
73! Standa
Logged In: NO
Me to. I'm running FC4, and have db v 4.3 and my current
guess is that it is possibly two things
(a) gcc4
(b) new version of berkeley db
I could fix the above failure by removing the offending ";",
but it crashes later with a bad cast error in logcore.cpp:
logcore.cpp: In constructor logCore::logCore():
logcore.cpp:32: error: cannot convert char* to DB_TXN*
in initialization
logcore.cpp:34: error: cannot convert DBTYPE to const
char* in argument passing
logcore.cpp:39: error: cannot convert char* to DB_TXN*
in initialization
logcore.cpp:42: error: cannot convert DBTYPE to const
char* in argument passing
Shane Magrath
Logged In: YES
user_id=1340171
OK, I got it working....
First, I have Berkely DB 4.3, but I have noticed that this
library changes ofter because of versioning, and this causes
half the problems.
Three files need to be changed:
(a) the configure script, to test for the newer db library,
(b) logcore.h
(c) logcore.cpp
See "[ 993191 ] let kpsk build with libdb4.2" in the patches
tab for the changes required, but note that you may need to
change the patch to match your actual version of Berkeley
DB. I'm using FC4, and db4.3 is what comes standard.
If you aren't a hardcore C programmer, perservere - it's not
a hard change to make and the results are worth it.