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

Bug 227377

Summary: net-libs/freenet6-5.1 fails to build with gcc-4.3
Product: Gentoo Linux Reporter: Adrian Bassett <Adrian.Bassett>
Component: Current packagesAssignee: Bernard Cafarelli <voyageur>
Status: RESOLVED FIXED    
Severity: normal CC: mlm
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: freenet6-5.1-gcc43.patch

Description Adrian Bassett 2008-06-16 07:06:40 UTC
Emerging freenet6-5.1 (no previous version on system) fails with following output:

...
make[2]: Entering directory `/tmp_portage/portage/net-misc/freenet6-5.1/work/gw6c-config'
mkdir -p objects
x86_64-pc-linux-gnu-g++ -c -O2 -march=nocona -mtune=nocona -mmmx -msse -msse2 -msse3 -mfpmath=sse -pipe -fomit-frame-pointer -I. -O2 -Wall -DNDEBUG   -o objects/namevalueparser.o src/namevalueparser.cc
src/namevalueparser.cc: In member function 'virtual bool gw6cconfig::NameValueParser::ReadConfigurationData(const std::string&)':
src/namevalueparser.cc:136: error: 'memset' was not declared in this scope
src/namevalueparser.cc:177: error: 'strtok' was not declared in this scope
src/namevalueparser.cc: In member function 'virtual bool gw6cconfig::NameValueParser::WriteConfigurationData(const std::string&)':
src/namevalueparser.cc:259: error: 'strlen' was not declared in this scope
src/namevalueparser.cc:259: error: 'strncmp' was not declared in this scope
make[2]: *** [objects/namevalueparser.o] Error 1
make[2]: Leaving directory `/tmp_portage/portage/net-misc/freenet6-5.1/work/gw6c-config'
make[1]: *** [export] Error 2
make[1]: Leaving directory `/tmp_portage/portage/net-misc/freenet6-5.1/work/gw6c-config'
make: *** [check-gw6cconfig] Error 2
 * 
 * ERROR: net-misc/freenet6-5.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2398:  Called die
 * The specific snippet of code:
 *       emake all configdir=/etc/freenet6 target=linux || die "Build Failed";
 *  The die message:
 *   Build Failed

Using gcc-4.3.1, glibc-2.8_p20080602, linux-headers-2.6.25-r4, vanilla-sources-2.6.26_rc6 

Reproducible: Always

Steps to Reproduce:
1.emerge freenet6
2.
3.

Actual Results:  
Build fails
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-06-16 13:42:30 UTC
Problem is with gcc, not glibc.
Comment 2 Marek Miller 2008-06-16 15:50:11 UTC
Again missing headers.

Steps to reproduce:
1. echo "=net-misc/freenet6-5.1" >> /etc/portage/package.keywords
2. USE="" emerge -v1 =net-misc/freenet6-5.1

The error messages:
1.
> src/clientmsgsender.cc:161: error: 'strlen' was not declared in this scope
> src/clientmsgsender.cc:161: error: 'memcpy' was not declared in this scope

2.
> src/servermsgsender.cc: In member function 'void gw6cmessaging::ServerMsgSender::Send_StatusInfo(const Gw6cStatusInfo*)':
> src/servermsgsender.cc:87: error: 'memcpy' was not declared in this scope

3.
> src/namevalueparser.cc: In member function 'virtual bool gw6cconfig::NameValueParser::ReadConfigurationData(const std::string&)':
> src/namevalueparser.cc:136: error: 'memset' was not declared in this scope

4.
> src/gw6cconfig.cc: In function 'void replace(std::string&, const char*, const char*)':
> src/gw6cconfig.cc:180: error: 'strlen' was not declared in this scope

etc. etc. etc.

My emerge --info: as in the bug 226663, comment 2.
Comment 3 Marek Miller 2008-06-16 15:50:28 UTC
Created attachment 157107 [details, diff]
freenet6-5.1-gcc43.patch
Comment 4 Bernard Cafarelli gentoo-dev 2008-06-16 18:06:06 UTC
Thanks for the patch! Added in CVS to 5.1 ebuild