Re: problems compiling gtkicq



from the quill of Kevin Miller <sar@original.net> on scroll <19990124204251.A17530@omeganine>
Trying to compile gtkicq from cvs, with latest gnome, glib, gtk+ I get:

applet.o: In function `applet_clicked_cb':
applet.o(.text+0x836): undefined reference to `app'
applet.o(.text+0x84c): undefined reference to `app'
applet.o(.text+0x860): undefined reference to `app'
applet.o(.text+0x86d): undefined reference to `app'
applet.o: In function `applet_hide_main':
applet.o(.text+0x880): undefined reference to `app'
applet.o(.text+0x896): more undefined references to `app' follow

any clues?

Yup. Apply this patch. It fixes that as well as a couple of other bugs. I hope this applies to your source. "cvs -q diff -u" on my box has been producing some very "non-patchable" patches lately for whatever reason.

Index: src/applet.c
===================================================================
RCS file: /cvs/gnome/gtkicq/src/applet.c,v
retrieving revision 1.8
diff -u -r1.8 applet.c
--- applet.c	1999/01/23 15:24:08	1.8
+++ applet.c	1999/01/25 02:56:43
@@ -6,6 +6,7 @@
 #include "applet.h"
 #include "pixmaps.h"
 #include "loadpixmap.h"
+#include "gtkicq.h"
 
 #ifdef GNOME
 
Index: src/gtkicq.c
===================================================================
RCS file: /cvs/gnome/gtkicq/src/gtkicq.c,v
retrieving revision 1.16
diff -u -r1.16 gtkicq.c
--- gtkicq.c	1999/01/23 15:24:10	1.16
+++ gtkicq.c	1999/01/25 02:56:45
@@ -7,9 +7,10 @@
  *  Matt Smith
  */
 
-#ifdef GNOME
+/* this is kinda catch 22
+ * #ifdef GNOME */
 #include "../config.h"
-#endif
+/* #endif */
 #include "gtkicq.h"
 #include "datatype.h"
 #include <stdio.h>
Index: src/rcfile.c
===================================================================
RCS file: /cvs/gnome/gtkicq/src/rcfile.c,v
retrieving revision 1.5
diff -u -r1.5 rcfile.c
--- rcfile.c	1999/01/23 15:24:11	1.5
+++ rcfile.c	1999/01/25 02:56:48
@@ -332,10 +332,11 @@
 	printf( "Create_RC_File\n" );
 #endif
 
+/* should not rely on the shell for this stuff! */
 	sprintf( rcfile, "mkdir -p %s/.icq/history", getenv( "HOME" ) );
 	system( rcfile );
 
-	sprintf( rcfile, "chmod 700 %s/.icq", getenv( "HOME ") );
+	sprintf( rcfile, "chmod 700 %s/.icq", getenv( "HOME") );
 	system( rcfile );
                 
 	strcpy( rcfile, getenv( "HOME" ) );
Index: src/util.c
===================================================================
RCS file: /cvs/gnome/gtkicq/src/util.c,v
retrieving revision 1.3
diff -u -r1.3 util.c
--- util.c	1999/01/23 15:24:18	1.3
+++ util.c	1999/01/25 02:56:49
@@ -314,6 +314,9 @@
 	strcpy( rcfile, filename );
 	strcat( rcfile, ".icq/gtkicqrc" );
 
+	if ( strlen( configfilename ) )
+		strcpy( rcfile, configfilename );
+
 	rcf = open( rcfile, O_RDONLY );
 
 	if ( rcf == -1 )

--
Brian J. Murrell                              InterLinx Support Services, Inc.
North Vancouver, B.C.                                             604 983 UNIX
        Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]