Bug#646918: /usr/include/sys/nlist_aout.h:51: error: redefinition of ‘struct nlist’
Package: libc0.1-dev
Version: 2.11.2-10
Severity: normal
The following code compiles on FreeBSD but not on Debian GNU/kFreeBSD:
#include <a.out.h>
#include <sys/nlist_aout.h>
main ()
{
struct nlist nl;
nl.n_un.n_strx = 0;
}
It appears there are conflicting definitions of "struct nlist", one of them in
libc-dev and the other in kfreebsd-kernel-headers:
$ gcc /tmp/test.c -o /tmp/test
In file included from /tmp/test.c:2:
/usr/include/sys/nlist_aout.h:51: error: redefinition of �truct nlist�/tmp/test.c: In function �ain�
/tmp/test.c:7: error: �truct nlist�has no member named �_un�
-- System Information:
Debian Release: 6.0.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libc0.1-dev depends on:
ii kfreebsd-kernel-headers 0.53 kernel of FreeBSD headers for deve
ii libc-dev-bin 2.11.2-10 Embedded GNU C Library: Developmen
ii libc0.1 2.11.2-10 Embedded GNU C Library: Shared lib
Versions of packages libc0.1-dev recommends:
ii gcc [c-compiler] 4:4.4.5-1 The GNU C compiler
ii gcc-4.3 [c-compiler] 4.3.5-4 The GNU C compiler
ii gcc-4.4 [c-compiler] 4.4.5-8 The GNU C compiler
Versions of packages libc0.1-dev suggests:
pn glibc-doc <none> (no description available)
ii manpages-dev 3.27-1 Manual pages about using GNU/Linux
-- no debconf information
#include <a.out.h>
#include <sys/nlist_aout.h>
main ()
{
struct nlist nl;
nl.n_un.n_strx = 0;
}
Reply to: