Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 214138

Summary: x11-apps/ttmkfdir-3.0.9-r3 fails w/gcc 4.3.0
Product: Gentoo Linux Reporter: Peter Alfredsen (RETIRED) <loki_val>
Component: [OLD] GCC PortingAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: 1i5t5.duncan, clayne
Priority: High Keywords: Inclusion
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.redhat.com/show_bug.cgi?id=434301
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: ttmkfdir-3.0.9-gcc43.patch

Description Peter Alfredsen (RETIRED) gentoo-dev 2008-03-21 13:05:43 UTC
libtool --mode=compile i686-pc-linux-gnu-g++ -Wall -pedantic -I/usr/include/freetype2  -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -o commandline.o -c commandline.cpp
directory.cpp: In member function ‘virtual bool ttfdirectory::select(const char*) const’:
directory.cpp:52: error: ‘strlen’ was not declared in this scope
make: *** [directory.o] Error 1
make: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-g++ -Wall -pedantic -I/usr/include/freetype2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -c commandline.cpp  -fPIC -DPIC -o .libs/commandline.o
commandline.cpp:3:1: warning: "_GNU_SOURCE" redefined
<command-line>: warning: this is the location of the previous definition
commandline.cpp:3:1: warning: "_GNU_SOURCE" redefined
<command-line>:1:1: warning: this is the location of the previous definition
 i686-pc-linux-gnu-g++ -Wall -pedantic -I/usr/include/freetype2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -c commandline.cpp -o commandline.o >/dev/null 2>&1


Reproducible: Always
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-03-21 13:08:50 UTC
Created attachment 146764 [details, diff]
ttmkfdir-3.0.9-gcc43.patch

This solves the problem. Snatched from:
http://cvs.fedoraproject.org/viewcvs/*checkout*/devel/ttmkfdir/ttmkfdir-3.0.9-bug434301.patch?rev=1.1
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2008-04-21 01:54:28 UTC
applied a patch to include cstring.  i'm not sure why stdlib.h is included.