Bug 225401 - [gcc-4.3] sci-libs/libghemical-2.10 fails to compile with gcc-4.3
Bug#: 225401 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sci-chemistry@gentoo.org Reported By: mlm@ngc17.pl
Component: Ebuilds
URL: 
Summary: [gcc-4.3] sci-libs/libghemical-2.10 fails to compile with gcc-4.3
Keywords:  
Status Whiteboard: 
Opened: 2008-06-08 17:28 0000
Description:   Opened: 2008-06-08 17:28 0000
Again missing headers.

Steps to reproduce:
1. echo '=sci-libs/libghemical-2.10' >> /etc/portage/package.keywords
2. emerge -v1 =sci-libs/libghemical-2.10

The error messages:
1. 
> atom.cpp:374: error: 'EXIT_FAILURE' was not declared in this scope
> atom.cpp:374: error: 'exit' was not declared in this scope

2.
> notice.cpp: In function 'const char* get_lib_intro_notice_line(int)':
> notice.cpp:31: error: 'strcpy' was not declared in this scope

My emerge --info: as in bug 225387.
I include the patch.

------- Comment #1 From Marek Miller 2008-06-08 17:29:10 0000 -------
Created an attachment (id=155979) [details]
libghemical-2.10_gcc43.patch

------- Comment #2 From Marek Miller 2008-06-08 17:32:17 0000 -------
The <cstring> in atom.h (see the patch above) is because of
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=417336

------- Comment #3 From Donnie Berkholz 2008-06-09 04:46:03 0000 -------
I think there's a newer version available, it might already work in that.

------- Comment #4 From Jeffrey Gardner 2008-06-09 09:17:06 0000 -------
Fixed in cvs, thanks!