Bug 1240533

Summary: perl-IPTables-libiptc-0.52-13.fc23 FTBFS: Cannot find required header file: "xtables.h"
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-IPTables-libiptcAssignee: Petr Pisar <ppisar>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: mmaslano, perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://koji.fedoraproject.org/koji/taskinfo?taskID=10223525
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-01 15:55:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1239213    
Bug Blocks:    

Description Petr Pisar 2015-07-07 08:14:17 UTC
perl-IPTables-libiptc-0.52-13.fc23 fails to build in F23:

+ perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor 'OPTIMIZE=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
Checking if your kit is complete...
Looks good
Detect iptables version via command: "iptables -V"
Detect the xtables libdir path of: "iptables"
 - detected xtables libdir: "/usr/libexec/xtables"
Detected iptables version: 1.4.21 (vercode:66581)
Using iptables version: 1.4.21
Checking for header files
 - detected include path: "/usr/include"
 - check-header: xtables.h
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-        *** ERROR: Missing header file ***       -=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
   Cannot find required header file: "xtables.h"
   You must install the systems software package 
   containing the header file, usually a "dev" package.
   Hint, under Debian/Ubuntu install "iptables-dev" package
     apt-get install iptables-dev
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Difference between working and failing build root:

        perl-Encode 	3:2.73-3.fc23 	> 	3:2.74-1.fc23
	perl-Socket 	3:2.019-3.fc23 	> 	3:2.020-1.fc23
	emacs-filesystem 		> 	1:24.5-5.fc23
	gdb 	7.9.50.20150531-2.fc23 	> 	7.9.50.20150531-3.fc23
	krb5-libs 	1.13.2-4.fc23 	> 	1.13.2-6.fc23
	libidn 	1.30-3.fc23 	> 	1.30-4.fc23
	gnat-srpm-macros 	1-2.fc23 	> 	2-1.fc23
	tar 	2:1.28-5.fc23 	> 	2:1.28-6.fc23
	zip 	3.0-14.fc23 	> 	3.0-15.fc23
	python-setuptools 	17.1.1-3.fc23 	> 	18.0.1-1.fc23
	pam 	1.2.0-2.fc23 	> 	1.2.1-1.fc23
	kernel-headers 	4.1.0-1.fc23 	> 	4.2.0-0.rc0.git1.1....
	python3-setuptools 	17.1.1-3.fc23 	> 	18.0.1-1.fc23

Comment 1 Petr Pisar 2015-07-07 08:47:09 UTC
The compiler complains:

In file included from /usr/include/xtables.h:15:0,
                 from tmp_2073.c:1:
/usr/include/linux/in.h:26:3: error: redeclaration of enumerator ‘IPPROTO_IP’
   IPPROTO_IP = 0,  /* Dummy protocol for TCP  */
   ^

This is caused by iptables/kernel bug #1239213.

Comment 2 Jan Kurik 2015-07-15 13:21:05 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 3 Petr Pisar 2016-02-01 15:55:09 UTC
This works for me now with:

kernel-headers-4.3.3-303.fc23.x86_64
glibc-devel-2.22-7.fc23.x86_64