Skip to contentSkip to conversation

KPSK won't 'make'

PATCH Henk Oegema 1 participant 1 message Nov 16, 2005

lore
Share & tools
lore
#0 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.

I have tried most of them, but only this one I cant get running (it's the challenge you know :-) )

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.

Will have a look at this one ! Thanks.

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 · 3 lines
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in