Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70001 - tbz2tool segfaults / freaks out on ia64
Summary: tbz2tool segfaults / freaks out on ia64
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-11-03 19:44 UTC by SpanKY
Modified: 2005-01-30 04:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2004-11-03 19:44:52 UTC
i2 ~ # quickpkg portage
< snip >
/usr/bin/quickpkg: line 45: 11962 Segmentation fault      tbz2tool join ${MYDIR}/bin.tar.bz2 ${MYDIR}/inf.xpak ${MYDIR}/$1.tbz2

narrowing this down it's because tbz2tool.c doesnt include enough header files ... function prototypes are assumed for many functions (which are wrong) and things break

the fix is to simply add '#include <stdlib.h>' to the file

i2 ~ # tar -jxf /usr/portage/distfiles/portage-2.0.51-r2.tar.bz2
i2 ~ # gcc portage-2.0.51-r2/src/tbz2tool.c -Wall
portage-2.0.51-r2/src/tbz2tool.c: In function `main':
portage-2.0.51-r2/src/tbz2tool.c:61: warning: implicit declaration of function `malloc'
portage-2.0.51-r2/src/tbz2tool.c:61: warning: cast to pointer from integer of different size
portage-2.0.51-r2/src/tbz2tool.c:64: warning: cast to pointer from integer of different size
portage-2.0.51-r2/src/tbz2tool.c:65: warning: implicit declaration of function `free'
portage-2.0.51-r2/src/tbz2tool.c:134: warning: implicit declaration of function `exit'
Comment 1 theboywho 2004-11-06 09:03:47 UTC
Same problem on AMD64 with portage-2.0.51-r3. Same solution works.
Comment 2 theboywho 2004-11-06 09:18:24 UTC
Removed buildpkg from FEATURES. Portage installs ok now.
Comment 3 SpanKY gentoo-dev 2005-01-30 04:06:59 UTC
2.0.51-r15 fixes this for sure