redefinition of 'struct iovec' problem with new libc-ports
Thu Jun 22 05:27:00 GMT 2006
I checked out the latest libc-ports from cvs. I met building problem
when using it to build arm-linux toolchain. I used crosstool. The
error appeared at building glibc startfiles which are required by
shared libgcc. In detail, it appeared at compiling
glibc-2.4/sysdeps/unix/sysv/linux/init-first.c. The error is
In file included from ../ports/sysdeps/unix/sysv/linux/arm/bits/fcntl.h:26,
../sysdeps/unix/sysv/linux/bits/uio.h:20:3: error: #error "Never include <bits/u
io.h> directly; use <sys/uio.h> instead."
In file included from ../misc/sys/uio.h:29,
../sysdeps/unix/sysv/linux/bits/uio.h:43: error: redefinition of 'struct iovec'
This is because fcntl.h added below code snippet. If I removed these
three lines, I can get the final toolchain successfully.
# include <bits/uio.h>
I'm not clear why this code snippet is needed? If I must use it, do I
miss anything else?
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc