Bug 218403 - dev-cpp/gtkmm-1.2.9-r2 fails w/ gcc-4.3.0
Bug#: 218403 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gnome-mm@gentoo.org Reported By: loki_val@gentoo.org
Component: GCC Porting
URL: 
Summary: dev-cpp/gtkmm-1.2.9-r2 fails w/ gcc-4.3.0
Keywords:  
Status Whiteboard: 
Opened: 2008-04-19 12:31 0000
Description:   Opened: 2008-04-19 12:31 0000
To the surprise of none:
make[3]: Entering directory
`/var/tmp/portage/dev-cpp/gtkmm-1.2.9-r2/work/gtkmm-1.2.9/src/gtkmmproc'
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../..   -D
MACRO_DIR=\"/usr/lib/gtkmm/proc\" -D M4=\"m4\"   -c parser.cc
/usr/lib/bison.simple: In function ‘int yyparse()’:
/usr/lib/bison.simple:358: warning: deprecated conversion from string constant
to ‘char*’
/usr/lib/bison.simple:643: warning: deprecated conversion from string constant
to ‘char*’
parser.yy: In function ‘int sig_attribute(std::string*)’:
parser.yy:510: warning: deprecated conversion from string constant to
‘char*’
parser.yy: In function ‘int member_attribute(std::string*)’:
parser.yy:529: warning: deprecated conversion from string constant to
‘char*’
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../..   -D
MACRO_DIR=\"/usr/lib/gtkmm/proc\" -D M4=\"m4\"   -c gtkmmproc.cc
gtkmmproc.cc: In constructor ‘OutputChannel::OutputChannel()’:
gtkmmproc.cc:757: error: ‘exit’ was not declared in this scope
gtkmmproc.cc:763: error: ‘exit’ was not declared in this scope
gtkmmproc.cc: In member function ‘void OutputChannel::process()’:
gtkmmproc.cc:817: error: ‘system’ was not declared in this scope
gtkmmproc.cc: In member function ‘void Environment::usage()’:
gtkmmproc.cc:874: error: ‘exit’ was not declared in this scope
make[3]: *** [gtkmmproc.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/dev-cpp/gtkmm-1.2.9-r2/work/gtkmm-1.2.9/src/gtkmmproc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/dev-cpp/gtkmm-1.2.9-r2/work/gtkmm-1.2.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/dev-cpp/gtkmm-1.2.9-r2/work/gtkmm-1.2.9'
make: *** [all-recursive-am] Error 2


Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Peter Alfredsen 2008-04-19 12:32:49 0000 -------
Created an attachment (id=150290) [details]
gtkmm-1.2.9-gcc43.patch

Remember to cd "${S}" before epatching.
Fixes the problem.Snatched from Debian.

------- Comment #2 From Rémi Cardona 2008-07-11 09:00:38 0000 -------
Thanks for the patch. :)

Fixed in portage without a revbump.