Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27349 - clanlib-0.7.2-r1 fails to build with gcc-3.3
Summary: clanlib-0.7.2-r1 fails to build with gcc-3.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-26 04:51 UTC by Andreas Simon
Modified: 2003-09-02 09:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to make clanlib compile with gcc-3.3 (clanlib-0.7.2-gcc3.3.patch,422 bytes, patch)
2003-08-26 04:52 UTC, Andreas Simon
Details | Diff
Patch for clanlib ebuild (clanlib-0.7.2-r1.ebuild.patch,349 bytes, patch)
2003-08-26 04:54 UTC, Andreas Simon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Simon 2003-08-26 04:51:48 UTC
clanlib fails to compile with gcc-3.3.1.
Cause for this failure is a missing include of assert.h.

# emerge clanlib
...
...
if /bin/sh ../../libtool --mode=compile g++ -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ClanLib\" -DVERSION=\"0.7.0\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FSTAB_H=1
-DHAVE_LIBZ=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_KD_H=1
-DHAVE_SYS_VT_H=1 -DUSE_X11=1 -DUSE_OPENGL=1 -DUSE_VIDMODE=1 -DUSE_CLANSOUND=1
-DUSE_NETWORK=1 -DUSE_I386_ASSEMBLER=1 -DUSE_DYN=1 -DUSE_GUI=1 -DUSE_MIKMOD=1
-DUSE_PNG=1 -DUSE_JPEG=1 -DUSE_SMALLJPEG=1 -DUSE_GETADDR=1 -DUSE_VOICE=1
-DUSE_VORBIS=1  -I. -I.   -I/usr/X11R6/include  -march=athlon-xp -O2    -pipe
-I../../Sources/ -DDEBUG=1 -g3 -ggdb3 -MT IOData/outputsource_memory.lo -MD -MP
-MF "IOData/.deps/outputsource_memory.Tpo" \
  -c -o IOData/outputsource_memory.lo `test -f 'IOData/outputsource_memory.cpp'
|| echo './'`IOData/outputsource_memory.cpp; \
then mv -f "IOData/.deps/outputsource_memory.Tpo"
"IOData/.deps/outputsource_memory.Plo"; \
else rm -f "IOData/.deps/outputsource_memory.Tpo"; exit 1; \
fi
IOData/Unix/directory_scanner_unix.cpp: In member function `virtual bool
   CL_DirectoryScanner_Unix::next()':
IOData/Unix/directory_scanner_unix.cpp:111: error: `assert' undeclared (first
   use this function)
IOData/Unix/directory_scanner_unix.cpp:111: error: (Each undeclared identifier
   is reported only once for each function it appears in.)
make[2]: *** [IOData/Unix/directory_scanner_unix.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ClanLib\"
-DVERSION=\"0.7.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DHAVE_FSTAB_H=1 -DHAVE_LIBZ=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1
-DHAVE_SYS_KD_H=1 -DHAVE_SYS_VT_H=1 -DUSE_X11=1 -DUSE_OPENGL=1 -DUSE_VIDMODE=1
-DUSE_CLANSOUND=1 -DUSE_NETWORK=1 -DUSE_I386_ASSEMBLER=1 -DUSE_DYN=1 -DUSE_GUI=1
-DUSE_MIKMOD=1 -DUSE_PNG=1 -DUSE_JPEG=1 -DUSE_SMALLJPEG=1 -DUSE_GETADDR=1
-DUSE_VOICE=1 -DUSE_VORBIS=1 -I. -I. -I/usr/X11R6/include -march=athlon-xp -O2
-pipe -I../../Sources/ -DDEBUG=1 -g3 -ggdb3 -MT IOData/outputsource_memory.lo
-MD -MP -MF IOData/.deps/outputsource_memory.Tpo -c
IOData/outputsource_memory.cpp  -fPIC -DPIC
mv -f outputsource_memory.o IOData/outputsource_memory.lo
make[2]: Leaving directory
`/var/tmp/portage/clanlib-0.7.2-r1/work/ClanLib-0.7.2/Sources/Core'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/clanlib-0.7.2-r1/work/ClanLib-0.7.2/Sources'
make: *** [all-recursive] Error 1

!!! ERROR: dev-games/clanlib-0.7.2-r1 failed.
!!! Function src_compile, Line 53, Exitcode 2
!!! (no error message)
Comment 1 Andreas Simon 2003-08-26 04:52:51 UTC
Created attachment 16629 [details, diff]
Patch to make clanlib compile with gcc-3.3

Here is a patch to make clanlib compile with gcc-3.3.1.
Comment 2 Andreas Simon 2003-08-26 04:54:00 UTC
Created attachment 16630 [details, diff]
Patch for clanlib ebuild

Here is the diff for the ebuild to apply the patch from the ebuild.
Comment 3 SpanKY gentoo-dev 2003-09-02 09:05:39 UTC
added your patch to all the ebuilds

thanks :)