[uCsimm] src compile problem?

From: Andrew Kohlsmith (akohlsmith@benshaw.com)
Date: Sun Sep 24 2000 - 10:08:36 EDT


I've recently got my uCsimm and while I bought the CD as well, I loathe
binary installs. I'm using the tarballs in the src/ directory and have the
kernel compiled, compilers compiled and the libraries compiled properly.

(an aside, it's not quite as they say in the FAQ, you need to make a
symbolic link to the libc include directory in your uClinux directory and I
decided to use the gcckit instead of patching manually)

Anyway I've managed to compile a kernel, use the tarballed romfs and make a
booting image which runs in RAM. Now I want to compile the distributed
binaries. Here's the problem:

$ make
cc -I../include -DL_writeall serial.c -c -o writeall.o
In file included from /usr/include/linux/fs.h:12,
                 from serial.c:26:
/usr/include/linux/wait.h:4: warning: `WNOHANG' redefined
/usr/include/bits/waitflags.h:26: warning: this is the location of the
previous definition
/usr/include/linux/wait.h:5: warning: `WUNTRACED' redefined
/usr/include/bits/waitflags.h:27: warning: this is the location of the
previous definition
In file included from serial.c:36:
/usr/include/netinet/in.h:117: warning: `IN_CLASSA' redefined
/usr/include/linux/in.h:129: warning: this is the location of the previous
definition
/usr/include/netinet/in.h:123: warning: `IN_CLASSB' redefined
/usr/include/linux/in.h:135: warning: this is the location of the previous
definition
/usr/include/netinet/in.h:129: warning: `IN_CLASSC' redefined
/usr/include/linux/in.h:141: warning: this is the location of the previous
definition
/usr/include/netinet/in.h:134: warning: `IN_CLASSD' redefined
/usr/include/linux/in.h:146: warning: this is the location of the previous
definition
/usr/include/netinet/in.h:137: warning: `IN_EXPERIMENTAL' redefined
/usr/include/linux/in.h:150: warning: this is the location of the previous
definition

... and so on and so on and so on.

I *think* I've specified to use the ../include directory instead of
/usr/include but the redefinitions are killing me.

Can anyone lend a hand?

Regards,
Anderw
This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:38 EST