This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

struct ustat conflict between kernel headers and glibc-2.3.2 headerson sh4


While building glibc-2.3.2 for sh4 using linux-2.4.19 headers, I got the following:

sh4-linux-gcc ../sysdeps/unix/sysv/linux/ustat.c ...
In file included from sys/ustat.h:30,
                 from ../sysdeps/unix/sysv/linux/ustat.c:21:
../sysdeps/generic/bits/ustat.h:26: error: redefinition of `struct ustat'
make[2]: *** [/home3/dank/crosstool/build/sh4-linux/gcc-3.3/build-glibc/misc/ustat.o] Error 1

GOTO Masanori wrote about this error in March on linux.debian.maint.glibc, archived at
http://groups.google.com/groups?selm=20030322165012%247208%40gated-at.bofh.it :

S390 can't be compiled (some header is polluted with kernel headers,
it needs investigation):

 In file included from sys/ustat.h:30,
                  from ../sysdeps/unix/sysv/linux/ustat.c:21:
 ../sysdeps/generic/bits/ustat.h:26: redefinition of `struct ustat'
 make[2]: *** [/home/gotom/glibc/glibc-2.3.2/build/misc/ustat.o] Error 1
 make[2]: Leaving directory `/home/gotom/glibc/glibc-2.3.2/glibc-2.3.2/misc'

ARM can't be compiled (Daniel Jacobowitz and Phil Blundell are fixing this problem):

Looks like the problem isn't just S390. Daniel/Phil, what did you end up doing about this?

Thanks,
Dan


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]