Package: gpsim-dev Version: 0.20.14-7.3 Your package causes build failures in gpsim-lcd, gpsim-logic and gpsim-led with recent versions of the gcc-snapshot package, i.e. a pre-release of GCC 4.2. The problem is that external variables are defined both in a C and C++ context, as you can see in this simple example:
42059:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/g++ -c t.cc t.cc:1: error: previous declaration of 'int i' with 'C++' linkage t.cc:4: error: conflicts with new declaration with 'C' linkage 42060:[EMAIL PROTECTED]: ~] cat t.cc extern int i; extern "C" { extern int i; } The specific example of gpsim-dev is: 1682:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/g++ -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -c test.cc /usr/include/gpsim/pic-processor.h:147: error: previous declaration of 'int verbose' with 'C++' linkage /usr/include/gpsim/interface.h:69: error: conflicts with new declaration with 'C' linkage zsh: exit 1 /usr/lib/gcc-snapshot/bin/g++ -I/usr/include/glib-1.2 -I/usr/lib/glib/include 1683:[EMAIL PROTECTED]: ~] cat test.cc #include <gpsim/pic-processor.h> #include <gpsim/interface.h> 1684:[EMAIL PROTECTED]: ~] According to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27227#c8 this is not valid, so please investigate. > Automatic build of gpsim-lcd_0.1.1-11.1 on usurper by sbuild/amd64 0.46 ... > /bin/sh ./libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I. > -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g > -O2 -Wall -c lcdgui.cc > c++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/gtk-1.2 > -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -Wall > -Wp,-MD,.deps/lcdgui.pp -c lcdgui.cc -fPIC -DPIC -o lcdgui.lo > /usr/include/gpsim/pic-processor.h:147: error: previous declaration of 'int > verbose' with 'C++' linkage > /usr/include/gpsim/interface.h:69: error: conflicts with new declaration with > 'C' linkage > lcdgui.cc: In function 'gchar** CreateXPMdataFromLCDdata(LcdDisplay*, char > (*)[7][6])': > lcdgui.cc:83: warning: comparison between signed and unsigned integer > expressions > lcdgui.cc:88: warning: comparison between signed and unsigned integer > expressions > lcdgui.cc: In member function 'void LcdDisplay::update(GtkWidget*, guint, > guint)': > lcdgui.cc:252: warning: comparison between signed and unsigned integer > expressions > lcdgui.cc:253: warning: comparison between signed and unsigned integer > expressions > lcdgui.cc: In member function 'void LcdDisplay::CreateGraphics()': > lcdgui.cc:305: warning: unused variable 'style' > lcdgui.cc: At global scope: > lcdgui.cc:26: warning: 'xpm_template' defined but not used > make[3]: *** [lcdgui.lo] Error 1 -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]