Probably a depenancy issue ... you know which packages
these function belong to ? ( FreeBSD 4.x, without Crack)
Thanks !
interface_gui.o: In function `resizehandler':
/home/dpd/cpm-0.19beta/interface_gui.c:1968: undefined
reference to `CTRL'
options.o: In function `getOptions':
/home/dpd/cpm-0.19beta/options.c:186: undefined
reference to `getopt_long'
collect2: ld returned 1 exit status
gmake: *** [cpm] Error 1
Logged In: YES
user_id=1175558
Both issues seem to be originated in differences to FreeBSD.
Unfortunately I don't have access to a FreeBSD machine so I
can't look into this issue on my own.
I assume it would take a little work to get this working on
FreeBSD as well though.
In case somebody could give me access to a FreeBSD machine,
please send me an email - I'd gladly try to get cpm running
on that platform as well.
Logged In: YES
user_id=1175558
Update: I still don't have access to any FreeBSD machine and
can't get cpm working on that problem. :-/
Logged In: YES
user_id=297891
Originator: NO
David, can you clean the source tree, rerun configure like this: LDFLAGS=-lgetopt ./configure and recompile? If I'm right, you need to include the getopt library to compile properly.
As for the undefined reference to CTRL is from <sys/ttydefaults.h>, I'm having exactly the same problem on Mac OS X (a BSD derivative). After some digging, I found that it's defined in <sys/ttydefaults.h>, and for some reason isn't being defined on BSDs. As to why this isn't being included already on *BSDs, I'm not sure. I can confirm that the same file exists on Linux, so adding the include should cause no significant harm.
Below is my diff of affected lines:
--- interface_gui.h 2006-07-11 23:42:55.000000000 -0700
+++ /Users/jtgans/interface_gui.h 2008-01-28 16:44:11.000000000 -0700
@@ -28,7 +28,7 @@
* includes
*/
#include <cdk/cdk.h>
-
+#include <sys/ttydefaults.h>
/* #############################################################################
* prototypes