source='cppdir.cpp' object='cppdir.o' libtool=no \ depfile='.deps/cppdir.Po' tmpdepfile='.deps/cppdir.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.. -O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -DNDEBUG -DNFORMAT -DSYSCONFDIR='"/etc"' -c -o cppdir.o `test -f cppdir.cpp || echo './'`cppdir.cpp In file included from cppdir.cpp:2: cppdir.h:45: warning: ‘typedef’ was ignored in this declaration cppdir.cpp: In function ‘std::string CppDir::pwd()’: cppdir.cpp:358: error: ‘malloc’ was not declared in this scope cppdir.cpp:365: error: ‘realloc’ was not declared in this scope cppdir.cpp:372: error: ‘free’ was not declared in this scope cppdir.cpp:378: error: ‘free’ was not declared in this scope cppdir.cpp: In function ‘std::string CppDir::readlink(const std::string&)’: cppdir.cpp:490: error: ‘malloc’ was not declared in this scope cppdir.cpp:500: error: ‘realloc’ was not declared in this scope cppdir.cpp:506: error: ‘free’ was not declared in this scope make[2]: *** [cppdir.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/app-admin/xstow-0.5.1/work/xstow-0.5.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-admin/xstow-0.5.1/work/xstow-0.5.1' make: *** [all] Error 2
Created attachment 151277 [details, diff] xstow-0.5.1-gcc43.patch Fixes the problem. Snatched from Debian.
Btw, whoever does this bug, could you please remove the backticks in the ebuild and use $(). Also, I see nobody needing xstow-0.4.6-configure-ncurses.diff in files dir.
+ 28 Apr 2008; Samuli Suominen <drac@gentoo.org> + +files/xstow-0.5.1-gcc43.patch, xstow-0.5.1.ebuild: + Fix building with GCC 4.3 wrt #219633, thanks to Peter Alfredsen. Also fix + USE ncurses handling and pass --without-curses instead of + --without-ncurses to configure. +
(In reply to comment #2) > Btw, whoever does this bug, could you please remove the backticks in the ebuild > and use $(). > Also, I see nobody needing xstow-0.4.6-configure-ncurses.diff in files dir. > 2 fast for u :-p old patch punted, used $() among other things in the revised ebuild