lkml.org 
[lkml]   [1997]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectCompile error under 2.1.46
While compiling 2.1.46 using glibc I noticed the following error
while compiling ftape:

gcc -D__KERNEL__ -I/usr/src/linux-2.1.46/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DMODULE -DVERIFY_HEADERS -DNR_BUFFERS=3 -DCLK_48MHZ=1 -DNO_TRACE -DFDC_82078SL -c -o ecc.o ecc.c
In file included from /usr/include/_G_config.h:9,
from /usr/include/libio.h:31,
from /usr/include/stdio.h:29,
from ecc.c:36:
/usr/include/gnu/types.h:75: warning: `__NFDBITS' redefined
/usr/src/linux-2.1.46/include/linux/posix_types.h:30: warning: this is the location of the previous definition
/usr/include/gnu/types.h:77: warning: `__FDMASK' redefined
/usr/src/linux-2.1.46/include/linux/posix_types.h:42: warning: this is the location of the previous definition


The file /usr/include/gnu/types.h is part of the GNU C library
(I have version 2.0.4 installed). I looks like the kernel header
linux/posix_types.h is conflicting.

While on the subject, I was wondering also if it is now time to
change the 2.1.x series README file. It currently says:

" - Make sure your /usr/include/asm, /usr/include/linux, and /usr/include/scsi
directories are just symlinks to the kernel sources:

cd /usr/include
rm -rf asm linux scsi
ln -s /usr/src/linux/include/asm-i386 asm
ln -s /usr/src/linux/include/linux linux
ln -s /usr/src/linux/include/scsi scsi
"
If you happin to have GNU libc installed this is not a good thing. User
space apps shouldn't use the kernel headers. If they need kernel header
type stuff (like compiling pcmcia tools for instance) they should
provide their own local copy. Any chance of getting this changed?

-Erik

--
Erik B. Andersen Web: http://www.inconnect.com/~andersen/
email: andersee@debian.org
--This message was written using 73% post-consumer electrons--

\
 
 \ /
  Last update: 2005-03-22 13:39    [from the cache]
©2003-2011 Jasper Spaans