Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263516 - net-dns/libidn-1.13 fails to compile with CFLAGS="-fdirectives-only"
Summary: net-dns/libidn-1.13 fails to compile with CFLAGS="-fdirectives-only"
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-23 17:11 UTC by Andrew Savchenko
Modified: 2009-03-23 17:46 UTC (History)
0 users

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


Attachments
Proposed fix. (libidn-1.13.ebuild.patch,665 bytes, patch)
2009-03-23 17:13 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2009-03-23 17:11:20 UTC
CFLAGS="-fdirectives-only" may not be used for net-dns/libidn-1.13:

Essential from build.log:
libtool: compile:  i686-pc-linux-gnu-gcc -std=gnu99 -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I./gl -Igl -DLIBIDN_BUILDING -Wall -W -Wformat-y2k -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused -Wunknown-pragmas -Wstrict-aliasing -Wstrict-overflow -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wshadow -Wunsafe-loop-optimizations -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Winline -Winvalid-pch -Wlong-long -Wvla -Wvolatile-register-var -Wdisabled-optimization -Wstack-protector -Wattributes -Wcoverage-mismatch -Wmultichar -Wunused-macros -Wno-missing-field-initializers -fdiagnostics-show-option -fvisibility=hidden -march=athlon-xp -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -fomit-frame-pointer -pipe -fdirectives-only -MT toutf8.lo -MD -MP -MF .deps/toutf8.Tpo -c toutf8.c  -fPIC -DPIC -o .libs/toutf8.o
cc1: error: -fdirectives-only is incompatible with -Wunused_macros
cc1: error: -fdirectives-only is incompatible with -Wunused_macros
make[3]: *** [nfkc.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [toutf8.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-dns/libidn-1.13/work/libidn-1.13/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-dns/libidn-1.13/work/libidn-1.13/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-dns/libidn-1.13/work/libidn-1.13'
make: *** [all] Error 2

Solution: filter this flag.
Comment 1 Andrew Savchenko gentoo-dev 2009-03-23 17:13:24 UTC
Created attachment 186013 [details, diff]
Proposed fix.
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2009-03-23 17:46:13 UTC
Sorry, we can't accomodate all the possible CFLAGS combinations that exist. I suggest you add  -Wno-unused-macros to your CFLAGS so you won't encounter this issue.