Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219633 - app-admin/xstow-0.5.1 fails w/ gcc-4.3.0
Summary: app-admin/xstow-0.5.1 fails w/ gcc-4.3.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-04-28 21:05 UTC by Peter Alfredsen (RETIRED)
Modified: 2008-04-28 21:23 UTC (History)
0 users

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


Attachments
xstow-0.5.1-gcc43.patch (xstow-0.5.1-gcc43.patch,1.97 KB, patch)
2008-04-28 21:06 UTC, Peter Alfredsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Alfredsen (RETIRED) gentoo-dev 2008-04-28 21:05:16 UTC
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
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-28 21:06:08 UTC
Created attachment 151277 [details, diff]
xstow-0.5.1-gcc43.patch

Fixes the problem. Snatched from Debian.
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-28 21:08:17 UTC
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.
Comment 3 Samuli Suominen gentoo-dev 2008-04-28 21:22:40 UTC
+  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.
+
Comment 4 Samuli Suominen gentoo-dev 2008-04-28 21:23:45 UTC
(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