Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156791 - media-libs/libipoddevice fails to compile because of -Werror
Summary: media-libs/libipoddevice fails to compile because of -Werror
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Luis Medinas (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-01 05:15 UTC by Pierre Lejeune
Modified: 2006-12-04 03:08 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 Pierre Lejeune 2006-12-01 05:15:50 UTC
Hello,

The libipoddevice ebuild compiles with -Werror flag, causing the warnings to be treated as errors. And there is a warning.

[code]i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -Werror -ggdb3 -D_FORTIFY_SOURCE=2 -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/hal -I/usr/include/libgtop-2.0 -I/usr/include/libxml2 -O3 -march=prescott -pipe -falign-functions=4 -fprefetch-loop-arrays -fomit-frame-pointer -MT glib-compat.lo -MD -MP -MF .deps/glib-compat.Tpo -c glib-compat.c -o glib-compat.o >/dev/null 2>&1
cc1: warnings being treated as errors
hal-ipod-info.c: In function 
Comment 1 Pierre Lejeune 2006-12-01 05:15:50 UTC
Hello,

The libipoddevice ebuild compiles with -Werror flag, causing the warnings to be treated as errors. And there is a warning.

[code]i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -Wall -Werror -ggdb3 -D_FORTIFY_SOURCE=2 -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/hal -I/usr/include/libgtop-2.0 -I/usr/include/libxml2 -O3 -march=prescott -pipe -falign-functions=4 -fprefetch-loop-arrays -fomit-frame-pointer -MT glib-compat.lo -MD -MP -MF .deps/glib-compat.Tpo -c glib-compat.c -o glib-compat.o >/dev/null 2>&1
cc1: warnings being treated as errors
hal-ipod-info.c: In function hal_ipod_write_xml:
hal-ipod-info.c:137: attention : ignoring return value of asprintf, declared with attribute warn_unused_result[/code]

-Werror flags must therefore be removed from src/Makefile.[in|am].
Comment 2 Luis Medinas (RETIRED) gentoo-dev 2006-12-04 03:08:34 UTC
Yes it's normal, you shouldn't ever use -Werror CFLAG it only causes troubles. And all this are just warnings it doesn't mean it's wrong (errors) so there's no point to add -Werror to CFLAGS or build a patch to fix this. The upstream know when it should use -Werror or not.