Bug 217834 - sci-libs/geos-3.0.0 fails w/ gcc-4.3.0
Bug#: 217834 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sci-geosciences@gentoo.org Reported By: loki_val@gentoo.org
Component: GCC Porting
URL: 
Summary: sci-libs/geos-3.0.0 fails w/ gcc-4.3.0
Keywords:  
Status Whiteboard: 
Opened: 2008-04-15 19:29 0000
Description:   Opened: 2008-04-15 19:29 0000
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../source/headers
-I../../../source/headers/geos -I../../../source/headers -O2 -march=i686
-mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -DGEOS_INLINE -Wall -ansi -pedantic
-Wno-long-long -MT DoubleBits.lo -MD -MP -MF .deps/DoubleBits.Tpo -c
DoubleBits.cpp  -fPIC -DPIC -o .libs/DoubleBits.o
DoubleBits.cpp: In static member function 'static double
geos::index::quadtree::DoubleBits::powerOf2(int)':
DoubleBits.cpp:51: error: 'memcpy' was not declared in this scope
DoubleBits.cpp: In constructor
'geos::index::quadtree::DoubleBits::DoubleBits(double)':
DoubleBits.cpp:94: error: 'memcpy' was not declared in this scope
make[3]: *** [DoubleBits.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../source/headers
-I../../../source/headers/geos -I../../../source/headers -O2 -march=i686
-mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -DGEOS_INLINE -Wall -ansi -pedantic
-Wno-long-long -MT IntervalSize.lo -MD -MP -MF .deps/IntervalSize.Tpo -c
IntervalSize.cpp -o IntervalSize.o >/dev/null 2>&1
make[3]: Leaving directory
`/var/tmp/portage/sci-libs/geos-3.0.0/work/geos-3.0.0/source/index/quadtree'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/sci-libs/geos-3.0.0/work/geos-3.0.0/source/index'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/sci-libs/geos-3.0.0/work/geos-3.0.0/source'
make: *** [all-recursive] Error 1


Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Peter Alfredsen 2008-04-15 19:29:54 0000 -------
Created an attachment (id=149838) [details]
geos-3.0.0-gcc43.patch

Fixes the problem. Snatched from Debian.

------- Comment #2 From Sébastien Fabbro 2008-04-17 14:19:00 0000 -------
fixed in cvs. Thanks!