[uClibc]Problem compiling userland/libns against uClibc

David Beamonte dbeamonte at intelnet.es
Thu Apr 19 07:34:31 UTC 2001


Hi,

I am trying to compile the userland from CVS. I have also downloaded the latest version of uClinux-2.0.x and uClibc from CVS.

The compilation of the uClibc worked more or less fine, i only had to change the following files:
- include/sys/syscall.h --> remove the #ifndef _LIBC/#endif, so that the file "bits/syscall.h" can be included
- unistd/daemon.c --> adding #include <stdio.h>

Once noted that, i can follow with the plot of my message. When trying to compile the libns from userland, i get the following errors (the log is at the end of the message), there is obviously something redefined in the header files, but i won't dare to touch them as there are many redefinitions, so hope anyone could tell me what's the problem and how can i solve it.

Thanks,

David Beamonte

---------------

for i in libns ; do make -C $i; done
make[1]: Entering directory `/mnt/hd2A/uClinux_CVS/userland/libns'
m68k-elf-gcc -v -Wall -msep-data -O2 -m68000 -I../include -DL_makerawtty serial.c -c -o makerawtty.o -lc
Reading specs from /usr/local/lib/gcc-lib/m68k-elf/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/local/lib/gcc-lib/m68k-elf/2.95.2/cpp -lang-c -v -I../include -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dmc68000 -D__embedded__ -D__mc68000__ -D__embedded__ -D__mc68000 -Asystem(embedded) -Amachine(mc68000) -D__OPTIMIZE__ -Wall -D__PIC__ -D__pic__ -DL_makerawtty serial.c /tmp/ccEfsCUR.i
GNU CPP version 2.95.2 19991024 (release) (68k, MIT syntax)
#include "..." search starts here:
#include <...> search starts here:
 ../include
 /usr/local/lib/gcc-lib/m68k-elf/2.95.2/include
 /usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include
 /usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/include
End of search list.
The following default directories have been omitted from the search path:
 /usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../include/g++-3
End of omitted list.
In file included from /usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/fs.h:13,
                 from serial.c:26:
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/wait.h:4: warning: `WNOHANG' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/waitflags.h:26: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/wait.h:5: warning: `WUNTRACED' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/waitflags.h:27: warning: this is the location of the previous definition
In file included from /usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:27,
                 from serial.c:36:
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:42: warning: `SOCK_STREAM' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:41: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:45: warning: `SOCK_DGRAM' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:42: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:47: warning: `SOCK_RAW' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:43: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:49: warning: `SOCK_RDM' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:44: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:52: warning: `SOCK_SEQPACKET' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:45: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:56: warning: `SOCK_PACKET' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:46: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:60: warning: `PF_UNSPEC' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:71: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:62: warning: `PF_UNIX' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:72: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:64: warning: `PF_INET' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:73: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:65: warning: `PF_AX25' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:74: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:66: warning: `PF_IPX' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:75: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:67: warning: `PF_APPLETALK' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:76: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:68: warning: `PF_NETROM' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:77: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:69: warning: `PF_BRIDGE' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:78: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:71: warning: `PF_X25' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:80: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:73: warning: `PF_ROSE' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:84: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:80: warning: `PF_PACKET' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:86: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:86: warning: `PF_MAX' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:85: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:89: warning: `AF_UNSPEC' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:53: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:91: warning: `AF_UNIX' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:54: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:93: warning: `AF_INET' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:55: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:94: warning: `AF_AX25' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:56: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:95: warning: `AF_IPX' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:57: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:96: warning: `AF_APPLETALK' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:58: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:97: warning: `AF_NETROM' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:59: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:98: warning: `AF_BRIDGE' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:60: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:100: warning: `AF_X25' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:62: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:102: warning: `AF_ROSE' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:66: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:109: warning: `AF_PACKET' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:68: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:115: warning: `AF_MAX' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:67: warning: this is the location of the previous definition
In file included from /usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:27,
                 from serial.c:36:
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:165: warning: `MSG_OOB' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:91: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:167: warning: `MSG_PEEK' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:92: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:169: warning: `MSG_DONTROUTE' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:93: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:178: warning: `MSG_PROXY' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:95: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:277: warning: `SCM_RIGHTS' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/socket.h:38: warning: this is the location of the previous definition
In file included from serial.c:36:
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:117: warning: `IN_CLASSA' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:78: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:123: warning: `IN_CLASSB' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:84: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:129: warning: `IN_CLASSC' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:90: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:134: warning: `IN_CLASSD' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:95: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:137: warning: `IN_EXPERIMENTAL' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:99: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:138: warning: `IN_BADCLASS' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:100: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:141: warning: `INADDR_ANY' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:103: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:143: warning: `INADDR_BROADCAST' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:106: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:145: warning: `INADDR_NONE' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:109: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:155: warning: `INADDR_UNSPEC_GROUP' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:119: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:156: warning: `INADDR_ALLHOSTS_GROUP' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:120: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:158: warning: `INADDR_MAX_LOCAL_GROUP' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:121: warning: this is the location of the previous definition
In file included from serial.c:36:
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:247: warning: `ntohl' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/asm/byteorder.h:40: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:248: warning: `ntohs' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/asm/byteorder.h:41: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:249: warning: `htonl' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/asm/byteorder.h:42: warning: this is the location of the previous definition
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:250: warning: `htons' redefined
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/asm/byteorder.h:43: warning: this is the location of the previous definition
 /usr/local/lib/gcc-lib/m68k-elf/2.95.2/cc1 /tmp/ccEfsCUR.i -quiet -dumpbase serial.c -msep-data -m68000 -O2 -Wall -version -o /tmp/cczTEnIU.s
GNU C version 2.95.2 19991024 (release) (m68k-elf) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
In file included from /usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:27,
                 from serial.c:36:
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:40: parse error before `1'
In file included from /usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:27,
                 from serial.c:36:
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:137: redefinition of `struct sockaddr'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:164: parse error before `1'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:177: parse error before `16'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:205: redefinition of `struct msghdr'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:276: parse error before `1'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/socket.h:300: redefinition of `struct linger'
In file included from serial.c:36:
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:35: conflicting types for `IPPROTO_IP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:25: previous declaration of `IPPROTO_IP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:37: conflicting types for `IPPROTO_ICMP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:26: previous declaration of `IPPROTO_ICMP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:38: conflicting types for `IPPROTO_IGMP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:27: previous declaration of `IPPROTO_IGMP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:39: conflicting types for `IPPROTO_IPIP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:28: previous declaration of `IPPROTO_IPIP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:40: conflicting types for `IPPROTO_TCP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:29: previous declaration of `IPPROTO_TCP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:41: conflicting types for `IPPROTO_EGP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:30: previous declaration of `IPPROTO_EGP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:42: conflicting types for `IPPROTO_PUP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:31: previous declaration of `IPPROTO_PUP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:43: conflicting types for `IPPROTO_UDP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:32: previous declaration of `IPPROTO_UDP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:44: conflicting types for `IPPROTO_IDP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:33: previous declaration of `IPPROTO_IDP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:50: conflicting types for `IPPROTO_GRE'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:34: previous declaration of `IPPROTO_GRE'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:51: conflicting types for `IPPROTO_ESP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:35: previous declaration of `IPPROTO_ESP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:52: conflicting types for `IPPROTO_AH'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:36: previous declaration of `IPPROTO_AH'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:59: conflicting types for `IPPROTO_COMP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:37: previous declaration of `IPPROTO_COMP'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:60: conflicting types for `IPPROTO_RAW'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:39: previous declaration of `IPPROTO_RAW'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:62: conflicting types for `IPPROTO_MAX'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/linux/in.h:41: previous declaration of `IPPROTO_MAX'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:107: redefinition of `struct in_addr'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:193: redefinition of `struct sockaddr_in'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:207: redefinition of `struct sockaddr_in6'
In file included from /usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:225,
                 from serial.c:36:
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/bits/in.h:74: redefinition of `struct ip_mreq'
In file included from serial.c:36:
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:234: conflicting types for `ntohl'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/asm/byteorder.h:17: previous declaration of `ntohl'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/netinet/in.h:236: conflicting types for `htonl'
/usr/local/lib/gcc-lib/m68k-elf/2.95.2/../../../../m68k-elf/sys-include/asm/byteorder.h:19: previous declaration of `htonl'
make[1]: *** [libns.a(makerawtty.o)] Error 1
make[1]: Leaving directory `/mnt/hd2A/uClinux_CVS/userland/libns'
make: *** [all] Error 2






More information about the uClibc mailing list