Your message dated Fri, 29 Jun 2007 10:38:35 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#377170: FTBFS with GCC 4.2: C/C++ linkage declarations 
conflict
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: gpsim
Version: 0.20.14-7.3

Your package fails to build 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;
}

According to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27227#c8 this is
not valid, so please investgate.


> Automatic build of gpsim_0.20.14-7.3 on test.track.rz.uni-augsburg.de by 
> sbuild/powerpc 0.47
...
> 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/cmd_break.pp -c cmd_break.cc  -fPIC -DPIC -o cmd_break.lo
> ../src/pic-instructions.h: In member function 'virtual char* 
> invalid_instruction::name(char*)':
> ../src/pic-instructions.h:136: warning: deprecated conversion from string 
> constant to 'char*''
> ../src/pic-processor.h: At global scope:
> ../src/pic-processor.h:147: error: previous declaration of 'int verbose' with 
> 'C++' linkage
> ../src/interface.h:69: error: conflicts with new declaration with 'C' linkage

> cmd_break.cc:58: warning: missing braces around initializer for 'cmd_options'
> cmd_break.cc:58: warning: missing braces around initializer for 'cmd_options'
> cmd_break.cc:58: warning: missing braces around initializer for 'cmd_options'
> cmd_break.cc:58: warning: missing braces around initializer for 'cmd_options'
> cmd_break.cc:58: warning: missing braces around initializer for 'cmd_options'
> cmd_break.cc:58: warning: missing braces around initializer for 'cmd_options'
> cmd_break.cc:58: warning: missing braces around initializer for 'cmd_options'
> cmd_break.cc:58: warning: missing braces around initializer for 'cmd_options'
> cmd_break.cc:58: warning: missing braces around initializer for 'cmd_options'
> cmd_break.cc:58: warning: missing braces around initializer for 'cmd_options'
> cmd_break.cc:58: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc:58: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc:58: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc:58: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc:58: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc:58: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc:58: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc:58: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc:58: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc: In constructor 'cmd_break::cmd_break()':
> cmd_break.cc:63: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc: In member function 'void cmd_break::set_break(int, int, int, 
> int)':
> cmd_break.cc:212: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc:231: warning: deprecated conversion from string constant to 
> 'char*''
> cmd_break.cc:239: warning: deprecated conversion from string constant to 
> 'char*''
> make[3]: *** [cmd_break.lo] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/


--- End Message ---
--- Begin Message ---
* Steffen Joeris <[EMAIL PROTECTED]> [2007-01-14 13:02]:
> > Now I get the following but I'm not sure what this is caused by:
> No idea, I will forward the problem to upstream as he is normally aware of 
> such errors. Here it build just fine, probably an arch issue?

It's building fine now, so I'm closing this bug.
-- 
Martin Michlmayr
http://www.cyrius.com/

--- End Message ---

Reply via email to