Re: __32 from capability.h abd types.h differ...

"Tom 'spot' Callaway" <[email protected]>
Newsgroups gmane.linux.aurora.devel
Organization Red Hat
Message-ID <1057700003.30651.435.camel@zorak>
On Tue, 2003-07-08 at 16:04, Christian Joensson wrote:

> When trying to rpm build samba-3.0.0beta2 from 
> http://www.mirror.ac.uk/sites/ftp.samba.org/Binary_Packages/RedHat/SRPMS/
> I get a warning, many times, that comcerns me...
> 
> 
> Compiling lib/sysacls.c
> In file included from /usr/include/asm/types.h:4,
>                  from include/sysquotas.h:32,
>                  from include/smb.h:417,
>                  from include/includes.h:783,
>                  from lib/sysacls.c:21:
> /usr/include/asm-sparc/types.h:27: warning: redefinition of `__u32'
> /usr/include/sys/capability.h:32: warning: `__u32' previously declared 
> here

This will happen on every arch:

[root@fry include]# grep -r "__u32;" *
asm/types.h:typedef unsigned int __u32;
asm-alpha/types.h:typedef unsigned int __u32;
asm-arm/types.h:typedef unsigned int __u32;
asm-cris/types.h:typedef unsigned int __u32;
asm-i386/types.h:typedef unsigned int __u32;
asm-ia64/types.h:typedef unsigned int __u32;
asm-m68k/types.h:typedef unsigned int __u32;
asm-mips/types.h:typedef unsigned int __u32;
asm-mips64/types.h:typedef unsigned int __u32;
asm-parisc/types.h:typedef unsigned int __u32;
asm-ppc/types.h:typedef unsigned int __u32;
asm-ppc64/types.h:typedef unsigned int __u32;
asm-s390/types.h:typedef unsigned int __u32;
asm-s390x/types.h:typedef unsigned int __u32;
asm-sh/types.h:typedef unsigned int __u32;
asm-sh64/types.h:typedef unsigned int __u32;
asm-sparc/types.h:typedef unsigned int __u32;
asm-sparc64/types.h:typedef unsigned int __u32;
asm-x86_64/types.h:typedef unsigned int __u32;

> and in typedef uint32_t __u32;
> 
> is there anything to do about this?

Fix libcap? Specifically, Red Hat has a patch to libcap that adds that
typedef. I'll fix the patch so that it matches the kernel definition in
the Corona tree.

Also, I've filed it with Red Hat:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=98801

~spot
---
Tom "spot" Callaway <tcallawa(a)redhat*com> SAIR LCA, RHCE
Red Hat Enterprise Architect :: http://www.redhat.com
Project Leader for Aurora Sparc Linux :: http://auroralinux.org
GPG: D786 8B22 D9DB 1F8B 4AB7  448E 3C5E 99AD 9305 4260

The words and opinions reflected in this message do not necessarily
reflect those of my employer, Red Hat, and belong solely to me.

"Immature poets borrow, mature poets steal." --- T. S. Eliot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.