Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171178 - file-4.20 fails to compile on ppc64
Summary: file-4.20 fails to compile on ppc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC64 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-16 18:41 UTC by SpanKY
Modified: 2007-03-19 03:21 UTC (History)
1 user (show)

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 2007-03-16 18:41:05 UTC
the powerpc sys/ucontext.h has a struct member named '__unused' in the 64bit case

file sets up a define '__unused' for using __attribute__((__unused__)) ... the two quickly conflict and cause a build failure:

if /bin/sh ../libtool --tag=CC --mode=compile powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/misc/file/magic"'   -O2 -pipe -D_GNU_SOURCE -MT compress.lo -MD -MP -MF ".deps/compress.Tpo" -c -o compress.lo compress.c; \
        then mv -f ".deps/compress.Tpo" ".deps/compress.Plo"; else rm -f ".deps/compress.Tpo"; exit 1; fi
 powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DMAGIC=\"/usr/share/misc/file/magic\" -O2 -pipe -D_GNU_SOURCE -MT compress.lo -MD -MP -MF .deps/compress.Tpo -c compress.c  -fPIC -DPIC -o .libs/compress.o
In file included from /usr/include/signal.h:351,
                 from /usr/include/sys/wait.h:31,
                 from compress.c:47:
/usr/include/sys/ucontext.h:101: error: expected identifier or '(' before '[' token
/usr/include/sys/ucontext.h:102: error: expected ';' before 'int'
make: *** [compress.lo] Error 1
Comment 1 SpanKY gentoo-dev 2007-03-19 03:21:07 UTC
fixed in cvs and mailed upstream