Bug 225479 - [gcc-4.3] app-text/sword-1.5.10-r2 fails to compile w/ gcc-4.3
Bug#: 225479 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: theology@gentoo.org Reported By: mlm@ngc17.pl
Component: Applications
URL: 
Summary: [gcc-4.3] app-text/sword-1.5.10-r2 fails to compile w/ gcc-4.3
Keywords:  
Status Whiteboard: 
Opened: 2008-06-08 23:12 0000
Description:   Opened: 2008-06-08 23:12 0000
Again missing headers.

Steps to reproduce:
1. echo "=app-text/sword-1.5.10-r2" >> /etc/portage/package.keywords
2. USE="debug curl doc icu lucene" emerge -v1 =app-text/sword-1.5.10-r2

The error messages:
1.
> ../src/modules/filters/gbfwordjs.cpp: In member function 'virtual char sword::GBFWordJS::processText(sword::SWBuf&, const sword::SWKey*, const sword::SWModule*)':
> ../src/modules/filters/gbfwordjs.cpp:79: error: 'sprintf' was not declared in this scope

2.
> ../bindings/flatapi.cpp:369: error: 'intptr_t' was not declared in this scope
> ../bindings/flatapi.cpp:376: error: 'intptr_t' does not name a type

3.
> corediatheke.h:42: error: 'ostream' has not been declared

4.
> osiscgi.cpp:102: error: 'isdigit' was not declared in this scope
> osiscgi.cpp:129: error: 'isdigit' was not declared in this scope


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

------- Comment #1 From Marek Miller 2008-06-08 23:12:28 0000 -------
Created an attachment (id=156023) [details]
sword-1.5.10-r2-gcc43.patch

------- Comment #2 From Diego E. 'Flameeyes' Pettenò 2008-06-09 12:52:44 0000 -------
Thanks, committed.