Skip to contentSkip to conversation

KPSK won't 'make'

DISCUSSION Henk Oegema 2 participants 2 messages Nov 15, 2005

lore
Share & tools
lore
#0 lore raw

I've downloaded KPSK version 1.0.1

Command ./configure executed OK

Command make gives me following error messages:
logcore.cpp
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 `/home/henkoegema/ham/kpsk-1.0.1/kpsk' make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/henkoegema/ham/kpsk-1.0.1/kpsk' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/henkoegema/ham/kpsk-1.0.1'
make: *** [all] Error 2
henkoegema@linux:~/ham/kpsk-1.0.1>

I have no idea how to solve these errors.

Help much apprciated.

73, ON4HSO
Henk
http://users.telenet.be/henk.oegema

#1 lore raw
Quoted 1 line · Henk Oegema

I've downloaded KPSK version 1.0.1

Perhaps try one of the other dozen PSK programs for X? gmfsk, phaseshift, linpsk, etc.

Quoted 5 lines

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

This seems to be caused by new versions of libdb. You could try this patch which I extracted from the Debian sources.. but I haven't compiled it myself.

Hamish

kpsk/logcore.cpp +2 -2
@@ -30,14 +30,14 @@
   if (locate ("appdata", "dxcc.db") != NULL){
   char *dxccfile = strdup (locate ("appdata", "dxcc.db"));
   db_create(&dxccdb, NULL, 0);
-	dxccdb->open(dxccdb, dxccfile, NULL, DB_BTREE, DB_RDONLY, 0664);
+	dxccdb->open(dxccdb, NULL, dxccfile, NULL, DB_BTREE, DB_RDONLY, 0664);
   }
 	/* And the QSO Logbook... */
 
 	char *logfile = strdup (locateLocal ("appdata", "log.db"));
 	db_create(&calldb, NULL, 0);
 	calldb->set_flags(calldb, DB_DUP);
-	calldb->open(calldb, logfile, NULL, DB_BTREE, DB_CREATE, 0664);
+	calldb->open(calldb, NULL, logfile, NULL, DB_BTREE, DB_CREATE, 0664);
 }
 logCore::~logCore()
 {
kpsk/logcore.h +3 -1
@@ -23,7 +23,9 @@
 #include <qstring.h>
 #include <qsortedlist.h>
 #include <kstddirs.h>
-#ifdef HAVE_LIBDB_4_0
+#ifdef HAVE_LIBDB_4_0 
+#include <db.h>
+#elif HAVE_LIBDB_4_2
 #include <db.h>
 #else
 #include <db3/db.h>
Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>