Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583242 - net-firewall/iptables: QA Notice: Files built without respecting CFLAGS have been detected: /lib64/libiptc.so.0.0.0
Summary: net-firewall/iptables: QA Notice: Files built without respecting CFLAGS have ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 669896 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-05-16 21:35 UTC by Coacher
Modified: 2019-12-10 08:58 UTC (History)
1 user (show)

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


Attachments
emerge --info (info,4.97 KB, text/plain)
2016-05-16 21:35 UTC, Coacher
Details
build.log (build.log,139.90 KB, text/plain)
2016-05-16 22:11 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2016-05-16 21:35:13 UTC
Hello.

 * Messages for package net-firewall/iptables-1.6.0:

 * QA Notice: Files built without respecting CFLAGS have been detected
 *  Please include the following list of files in your report:
 * /lib64/libiptc.so.0.0.0

Please fix.
Comment 1 Coacher 2016-05-16 21:35:35 UTC
Created attachment 434480 [details]
emerge --info
Comment 2 SpanKY gentoo-dev 2016-05-16 21:45:34 UTC
you must attach full build logs in every report.  i'm not seeing this in my builds.
Comment 3 Coacher 2016-05-16 22:11:29 UTC
Created attachment 434482 [details]
build.log

(In reply to SpanKY from comment #2)
> you must attach full build logs in every report.  i'm not seeing this in my
> builds.
Done.
Comment 4 Coacher 2016-05-16 22:12:32 UTC
Whatever happened with assignee was a mistake.
Comment 5 Felix Janda 2016-10-06 23:13:57 UTC
This isn't a bug for net-firewall/iptables but a gcc bug:

The detection for the QA warning uses gcc's '-frecord-gcc-switches'
option, which records the flags into the ELF section .GCC.command.line.

Minimal example for the bug:

$ echo 'int f(void) { return 0; }' > a.c
$ gcc -frecord-gcc-switches -fPIC -shared a.c -o a.so
$ readelf -a a.so | grep GCC
  [20] .GCC.command.line PROGBITS        00000000 00105e 000070 01  MS  0   0  1
$ echo 'int g(void) { return 0; }' > b.c
$ gcc -frecord-gcc-switches -fPIC -shared b.c -o b.so
$ readelf -a b.so | grep GCC
  [20] .GCC.command.line PROGBITS        00000000 00105e 000070 01  MS  0   0  1
$ gcc -frecord-gcc-switches -fPIC -shared a.so b.so -o c.so
$ readelf -a c.so | grep GCC
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2018-11-20 15:28:34 UTC
*** Bug 669896 has been marked as a duplicate of this bug. ***
Comment 7 Thomas Deutschmann (RETIRED) gentoo-dev 2018-11-20 15:30:04 UTC
I can confirm the message but I cannot confirm the problem yet. Maybe a false positive.
Comment 8 Arfrever Frehtes Taifersar Arahesis 2019-12-10 08:58:45 UTC
libiptc.so was an empty library, which was only supposed to be linked against libip4tc.so and libip6tc.so, exposing their symbols.

libiptc.so has been removed:
https://git.netfilter.org/iptables/commit/?id=a84b12c69dcd57eb7df19e59b85af0fb5d98a81b
"build: remove -Wl,--no-as-needed and libiptc.so"

This change is included in recently released net-firewall/iptables-1.8.4.