[distcc] building with gtk2.0

mbp at sourcefrog.net mbp at sourcefrog.net
Fri Apr 9 16:45:11 GMT 2004


On 23 Oct 2003, Dag Wieers <dag at wieers.com> wrote:
> The latest changes in 2.11.2 changes something in the Gnome code that 
> refuses to build on RH80 (where it compiled fine previously). This means 
> that without changing it I will no longer compile the GUI client for my 
> RH80 packages (as it already is for RH62 and RH73).
> 
> The error is:
> 
> 	i386-redhat-linux-gcc-3.2 -o distccmon-gnome -DHAVE_CONFIG_H -D_GNU_SOURCE -I./src -DSYSCO
> 	NFDIR="\"/etc\"" -DPKGDATADIR="\"/usr/share/distcc\"" -I./lzo -O2 -march=i386 -mcpu=i686 -
> 	W -Wall -Wimplicit -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-retur
> 	n -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs  -lpopt     \
> 	        `pkg-config --cflags --libs gtk+-2.0 libgnome-2.0 libgnomeui-2.0 pango ` \
> 	        src/cleanup.o src/filename.o src/io.o src/mon.o src/netutil.o src/rpc.o src/snprin
> 	tf.o src/state.o src/tempfile.o src/trace.o src/traceenv.o src/util.o src/mon-gnome.o src/
> 	renderer.o
> 	src/mon-gnome.o: In function `dcc_gnome_make_mainwin':
> 	src/mon-gnome.o(.text+0xc10): undefined reference to `gtk_window_set_icon_from_file'
> 	collect2: ld returned 1 exit status
> 	distcc[10691] ERROR: compile on localhost failed
> 	make: *** [distccmon-gnome] Error 1
> 	error: Bad exit status from /var/tmp/rpm-tmp.69830 (%build)
> 
> RH80 ships with gtk2-2.0.6-8 where RH90 ships with gtk2-2.2.1-4.

Could you try this patch, if you haven't already fixed it?  

--- mon-gnome.c.~1.52.~	2004-03-21 19:00:25.000000000 +1100
+++ mon-gnome.c	2004-04-10 02:42:30.913615304 +1000
@@ -586,9 +586,11 @@ static GtkWidget * dcc_gnome_make_mainwi
   g_signal_connect (GTK_OBJECT(mainwin), "destroy", 
                     G_CALLBACK (gtk_main_quit), NULL);
 
+#if GTK_CHECK_VERSION(2,2,0)
   gtk_window_set_icon_from_file (GTK_WINDOW (mainwin),
                                  PKGDATADIR "/distccmon-gnome-icon.png",
                                  NULL);
+#endif
 
   return mainwin;
 }


Cheers,
-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/distcc/attachments/20040410/62966b58/attachment-0001.bin


More information about the distcc mailing list