* KPSK won't 'make'
@ 2005-11-04 11:25 Henk Oegema
0 siblings, 0 replies; 4+ messages in thread
From: Henk Oegema @ 2005-11-04 11:25 UTC (permalink / raw)
To: Linux-Hams
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* KPSK won't 'make'
@ 2005-11-15 21:59 Henk Oegema
2005-11-15 22:22 ` Hamish Moffatt
0 siblings, 1 reply; 4+ messages in thread
From: Henk Oegema @ 2005-11-15 21:59 UTC (permalink / raw)
To: Linux-Hams
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: KPSK won't 'make'
2005-11-15 21:59 KPSK won't 'make' Henk Oegema
@ 2005-11-15 22:22 ` Hamish Moffatt
0 siblings, 0 replies; 4+ messages in thread
From: Hamish Moffatt @ 2005-11-15 22:22 UTC (permalink / raw)
To: Linux-Hams
On Tue, Nov 15, 2005 at 10:59:02PM +0100, Henk Oegema wrote:
> I've downloaded KPSK version 1.0.1
Perhaps try one of the other dozen PSK programs for X?
gmfsk, phaseshift, linpsk, etc.
> 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-1.0.1.orig/kpsk/logcore.cpp
+++ kpsk-1.0.1/kpsk/logcore.cpp
@@ -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-1.0.1.orig/kpsk/logcore.h
+++ kpsk-1.0.1/kpsk/logcore.h
@@ -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>
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 4+ messages in thread
* KPSK won't 'make'
@ 2005-11-16 21:35 Henk Oegema
0 siblings, 0 replies; 4+ messages in thread
From: Henk Oegema @ 2005-11-16 21:35 UTC (permalink / raw)
To: Linux-Hams
On Tue, Nov 15, 2005 at 10:59:02PM +0100, Henk Oegema wrote:
> 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 :-) )
> 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-1.0.1.orig/kpsk/logcore.cpp
+++ kpsk-1.0.1/kpsk/logcore.cpp
@@ -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-1.0.1.orig/kpsk/logcore.h
+++ kpsk-1.0.1/kpsk/logcore.h
@@ -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>
--
Hamish Moffatt VK3SB <dam.xhyfvfjb@locators.com> <itlxpa@sonix.com.tw>
-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-11-16 21:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-15 21:59 KPSK won't 'make' Henk Oegema
2005-11-15 22:22 ` Hamish Moffatt
-- strict thread matches above, loose matches on Subject: below --
2005-11-16 21:35 Henk Oegema
2005-11-04 11:25 Henk Oegema
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).