Re: unable to include capability.h

2009-06-16 Thread Daniel Lezcano
Steve Grubb wrote: On Friday 12 June 2009 09:02:39 am Daniel Lezcano wrote: As I only need the CAP_SYS_BOOT, I will define it manually in the source code and will remove the include, that's ugly but anyway... :/ Alternatelyas of today, libcap-ng is now in Fedora. It has a far

Re: unable to include capability.h

2009-06-13 Thread Steve Grubb
On Friday 12 June 2009 09:02:39 am Daniel Lezcano wrote: As I only need the CAP_SYS_BOOT, I will define it manually in the source code and will remove the include, that's ugly but anyway... :/ Alternatelyas of today, libcap-ng is now in Fedora. It has a far simpler API and you should be

Re: unable to include capability.h

2009-06-12 Thread Kyle McMartin
On Fri, Jun 12, 2009 at 01:48:15PM +0200, Daniel Lezcano wrote: In file included from /usr/include/sys/capability.h:23, from myinclude.c:1: /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

Re: unable to include capability.h

2009-06-12 Thread Ondřej Vašík
Daniel P. Berrange wrote: On Fri, Jun 12, 2009 at 01:48:15PM +0200, Daniel Lezcano wrote: Is there a trick for that or is it a bug ? Adding #include sys/types.h seems to fix it, so I reckon its a bug in libcap-devel's header files. Actually already reported and closed rawhide, so it

Re: unable to include capability.h

2009-06-12 Thread Daniel Lezcano
Kyle McMartin wrote: On Fri, Jun 12, 2009 at 01:48:15PM +0200, Daniel Lezcano wrote: In file included from /usr/include/sys/capability.h:23, from myinclude.c:1: /usr/include/stdint.h:41: error: conflicting types for ?int64_t? /usr/include/linux/types.h:98: note: previous declaration of

Re: unable to include capability.h

2009-06-12 Thread Kyle McMartin
On Fri, Jun 12, 2009 at 03:02:39PM +0200, Daniel Lezcano wrote: Grumf ! that's annoying :( Thank you very much for your quick answer ! :) As I only need the CAP_SYS_BOOT, I will define it manually in the source code and will remove the include, that's ugly but anyway... :/ As I

Re: unable to include capability.h

2009-06-12 Thread Daniel Lezcano
Kyle McMartin wrote: On Fri, Jun 12, 2009 at 03:02:39PM +0200, Daniel Lezcano wrote: Grumf ! that's annoying :( Thank you very much for your quick answer ! :) As I only need the CAP_SYS_BOOT, I will define it manually in the source code and will remove the include, that's ugly but

Re: unable to include capability.h

2009-06-12 Thread Kyle McMartin
On Fri, Jun 12, 2009 at 03:24:45PM +0200, Daniel Lezcano wrote: Correct. I tried with different distro lenny, ubuntu 8.04, fedora 10, opensuse 11 and I hadn't this problem. It was a local Fedora patch that tickled it with recent kernels, Karsten has sorted it out (but too late for Fedora 11

Re: unable to include capability.h

2009-06-12 Thread Bill Crawford
Kyle McMartin wrote: ... Someone else suggested including sys/types.h first, which should work around it. That's what GNU coreutils did... (a change in the include ordering broke it.) I'm surprised the man page for cap_get_flag etc don't show an include of sys/types.h before sys/capability.h