Package: libgeda
Severity: normal
Tags: patch

When building 'libgeda' on amd64 with gcc-4.0,
I get the following error:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/usr/include -DXTHREADS 
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include 
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DXTHREADS 
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include 
-I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -Wall -O2 -g -Wall -MT s_log.lo -MD -MP -MF 
.deps/s_log.Tpo -c s_log.c  -fPIC -DPIC -o .libs/s_log.o
../noweb/s_log.nw:104: error: static declaration of 'logfile_fd' follows 
non-static declaration
../include/globals.h:52: error: previous declaration of 'logfile_fd' was here
make[4]: *** [s_log.lo] Error 1
make[4]: Leaving directory `/libgeda-20050313/src'

With the attached patch 'libgeda' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libgeda-20050313/include/globals.h ./include/globals.h
--- ../tmp-orig/libgeda-20050313/include/globals.h      2004-01-12 
04:15:36.000000000 +0100
+++ ./include/globals.h 2005-03-18 15:44:34.527922372 +0100
@@ -49,7 +49,6 @@
 extern char rc_filename[256]; /* size is hack */
 #endif
 
-extern int logfile_fd;
 extern int do_logging;
 extern int logging_dest;
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to