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
Problem is with gcc, not glibc.
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.
Created attachment 157107 [details, diff] freenet6-5.1-gcc43.patch
Thanks for the patch! Added in CVS to 5.1 ebuild