Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96431 - xmms-status-plugin GCC4 compat and ebuild update
Summary: xmms-status-plugin GCC4 compat and ebuild update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Luis Medinas (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-06-17 22:12 UTC by Ryan Hill (RETIRED)
Modified: 2005-11-17 11:01 UTC (History)
1 user (show)

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


Attachments
xmms-status-plugin-1.0.ebuild (xmms-status-plugin-1.0.ebuild,1.04 KB, text/plain)
2005-06-17 22:13 UTC, Ryan Hill (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2005-06-17 22:12:07 UTC
xmms-status-plugin-1.0 fails to build with GCC 4 due to two reasons.  first, the -Wsign-promo CFLAG defined in configure.in generates a warning:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -DLOCALEDIR=\"/usr/share/local\" -O2 -march=pentium3 -fomit-frame-pointer -pipe -fno-ident -Wall -Wno-uninitialized -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -Wsign-promo -c gtkplugxembed.c  -fPIC -DPIC -o gtkplugxembed.lo
cc1: warning: command line option "-Wsign-promo" is valid for C++/ObjC++ but not for C
cc1: warning: command line option "-Wsign-promo" is valid for C++/ObjC++ but not for C
cc1: warning: command line option "-Wsign-promo" is valid for C++/ObjC++ but not for C
cc1: warning: command line option "-Wsign-promo" is valid for C++/ObjC++ but not for C

second, -Werror is also defined, causing any warning to kill the compile.  GCC 4 generates some other harmless warnings that set this off.

fixing the second issue is enough to build successfully, but i figured that out only after i fixed the first so you get both. ;)

attached is an updated ebuild.  i added the src_unpack function and --disable-fatal-warnings to econf.  built and tested on x86.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2005-06-17 22:13:43 UTC
Created attachment 61426 [details]
xmms-status-plugin-1.0.ebuild
Comment 2 Luis Medinas (RETIRED) gentoo-dev 2005-11-17 11:01:26 UTC
-Werror was the problem of this package -Wsign-promo is just a warning. I
removed -Werror FLAG to be able to build with gcc-4.x.

Thanks for your report