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

gEDA: [aj@andaco.de: Bug#300256: libgeda: FTBFS (amd64/gcc-4.0): static declaration of 'logfile_fd' follows non-static declaration]



Hi Ales,

Here is a bug report about compiling libgeda 20050313 with gcc-4.0.
This is not critical for Debian yet but will be after sarge is released.

Hamish
----- Forwarded message from Andreas Jochens <aj@xxxxxxxxx> -----

Subject: Bug#300256: libgeda: FTBFS (amd64/gcc-4.0): static declaration of 'logfile_fd' follows non-static declaration
Reply-To: Andreas Jochens <aj@xxxxxxxxx>, 300256@xxxxxxxxxxxxxxx
To: Debian Bug Tracking System <submit@xxxxxxxxxxxxxxx>
From: Andreas Jochens <aj@xxxxxxxxx>
Date: Fri, 18 Mar 2005 16:58:18 +0100
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham 
	version=3.0.2

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;
 


----- End forwarded message -----

-- 
Hamish Moffatt VK3SB <hamish@xxxxxxxxxx> <hamish@xxxxxxxxxxxx>