Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 503927

Summary: header-fix.patch is not correct
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: libcapAssignee: Karsten Hopp <karsten>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: karsten, rrakus
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.16-4.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-09 15:34:28 UTC Type: ---
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:    
Bug Blocks: 467765    

Description Dan Horák 2009-06-03 12:07:29 UTC
libcap with header-fix.patch applied breaks building of applications that are using libcap or the detection of libcap presence, an example is cdrkit in both primary and s390x architectures.

https://koji.fedoraproject.org/koji/taskinfo?taskID=1389393

https://s390.koji.fedoraproject.org/koji/taskinfo?taskID=73154

The check fails with:

...
Building C object CMakeFiles/cmTryCompileExec.dir/CheckIncludeFiles.c.o
/usr/bin/gcc   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -march=z9-109 -mtune=z10 -Wall -Werror -Wno-unused-function -Wno-unused-variable -fno-strict-aliasing      -o CMakeFiles/cmTryCompileExec.dir/CheckIncludeFiles.c.o   -c /builddir/build/BUILD/cdrkit-1.1.9/fedora/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
In file included from /usr/include/sys/capability.h:23,
                 from /builddir/build/BUILD/cdrkit-1.1.9/fedora/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:
/usr/include/stdint.h:41: error: conflicting types for 'int64_t'
/usr/include/linux/types.h:98: note: previous declaration of 'int64_t' was here
/usr/include/stdint.h:56: error: conflicting types for 'uint64_t'
/usr/include/linux/types.h:96: note: previous declaration of 'uint64_t' was here
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckIncludeFiles.c.o] Error 1
gmake[1]: Leaving directory `/builddir/build/BUILD/cdrkit-1.1.9/fedora/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2

Source:
/* */
#include <sys/capability.h>


int main(){return 0;}

After replacing <linux/types.h> back with <sys/types.h> in /usr/include/sys/capability.h this check is successful.

Comment 1 Karsten Hopp 2009-06-09 15:34:28 UTC
I've dropped the patch again.

Comment 2 Bug Zapper 2009-06-09 17:02:26 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

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

Comment 3 Roman Rakus 2009-06-15 12:01:31 UTC
Will this be build in koji soon?

Comment 4 Fedora Update System 2009-06-15 13:06:18 UTC
libcap-2.16-4.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/libcap-2.16-4.fc11

Comment 5 Fedora Update System 2009-07-11 17:17:12 UTC
libcap-2.16-4.fc11, libcap-2.16-4.fc11.1 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.