Summary: | sys-apps/net-tools-1.60_p20090728014017-r1 does not compile due to local headers in /usr/local/include/ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Wolfram Kahl <kahl> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | galtgendo, kahl |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | PPC64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log for net-tools-1.60_p20071202044231 with MAKEOPTS=-j1
interface.c preprocessor result |
Description
Wolfram Kahl
2009-09-05 14:50:38 UTC
post the full build log as an attachment. skfd is defined in ../include/sockets.h which interface.c includes unconditionally for all functions in global scope. Created attachment 203283 [details]
Build log for net-tools-1.60_p20071202044231 with MAKEOPTS=-j1
Created attachment 203286 [details]
interface.c preprocessor result
In /var/tmp/portage/sys-apps/net-tools-1.60_p20071202044231-r1/work/net-tools-1.60_p20071202044231/lib, I did:
powerpc-unknown-linux-gnu-gcc -O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -fno-strict-aliasing -Wall -I.. -idirafter ../include -D_GNU_SOURCE -I. -idirafter ./include/ -Ilib -E -o interface.cpp interface.c
PEBKAC # 1 "/usr/local/include/sockets.h" 1 3 I discovered that I have /usr/local/include/sockets.h from ASF-SDF. Changing -idirafter ../include to -I ../include in my CPP run picks up the local file. The include flags there seem to be cobbled together without too much thought --- there are ``-idirafter ./include/ -Ilib'' even inside ``lib''. -idirafter considered harmful... -idirafter is not "harmful". it is used in many many packages and the semantics it provides are absolutely necessary. net-tools used to be in that class, but it no longer provides fallback headers which necessitate -idirafter usage. so i will convert it to a -I. Thank you! (I forgot the smiley after the ``considered harmful...'' --- sorry!) |