I tried building with linux-2.6.0-test7
build dies with:
make[1]: Entering directory `/home/rogelio/src/klibc-0.80/klibc'
gcc -Wp,-MD,./.fork.d -march=i386 -Os -fomit-frame-pointer
-malign-functions=0
-malign-jumps=0 -malign-loops=0 -nostdinc -iwithprefix include
-I../klibc -I../klibc/arch/i386/include -I../klibc/include/bits32
-D__KLIBC__ -DBITSIZE=32 -I../klibc/include -I../linux/include -W
-Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -c
-o fork.o fork.c
In file included from ../linux/include/linux/signal.h:4,
from ../klibc/include/signal.h:12,
from fork.c:9:
../linux/include/linux/list.h:576:2: warning: #warning "don't include
kernel headers in userspace"
In file included from ../linux/include/linux/signal.h:5,
from ../klibc/include/signal.h:12,
from fork.c:9:
../linux/include/linux/spinlock.h: In function `bit_spin_lock':
../linux/include/linux/spinlock.h:413: warning: implicit declaration
of function `current_thread_info'
../linux/include/linux/spinlock.h:413: invalid type argument of `->'
../linux/include/linux/spinlock.h:404: warning: unused parameter
`bitnum'
../linux/include/linux/spinlock.h:404: warning: unused parameter `addr'
../linux/include/linux/spinlock.h: In function `bit_spin_trylock':
../linux/include/linux/spinlock.h:436: invalid type argument of `->'
../linux/include/linux/spinlock.h:425: warning: unused parameter
`bitnum'
../linux/include/linux/spinlock.h:425: warning: unused parameter `addr'
../linux/include/linux/spinlock.h: In function `bit_spin_unlock':
../linux/include/linux/spinlock.h:451: invalid type argument of `->'
../linux/include/linux/spinlock.h:451: warning: implicit declaration
of function `test_thread_flag'
../linux/include/linux/spinlock.h:451: `TIF_NEED_RESCHED' undeclared
(first use in this function)
../linux/include/linux/spinlock.h:451: (Each undeclared identifier is
reported only once
../linux/include/linux/spinlock.h:451: for each function it appears
in.)
../linux/include/linux/spinlock.h:444: warning: unused parameter
`bitnum'
../linux/include/linux/spinlock.h:444: warning: unused parameter `addr'
../linux/include/linux/spinlock.h: In function `bit_spin_is_locked':
../linux/include/linux/spinlock.h:462: invalid type argument of `->'
../linux/include/linux/spinlock.h:457: warning: unused parameter
`bitnum'
../linux/include/linux/spinlock.h:457: warning: unused parameter `addr'
make[1]: *** [fork.o] Error 1
make[1]: Leaving directory `/home/rogelio/src/klibc-0.80/klibc'
make: *** [all] Error 2
Hi, I am a klibc newbie - , but as it happens I was just building against the same kernel version (Linux-2.6.0-test7) , without any problem. Did you by any chance include the wrong set of kernel headers with the symbolic link? Greetings, On Thu, 2003-10-16 at 11:20, Rogelio M.Serrano Jr. wrote:> I tried building with linux-2.6.0-test7 > > build dies with: > > make[1]: Entering directory `/home/rogelio/src/klibc-0.80/klibc' > gcc -Wp,-MD,./.fork.d -march=i386 -Os -fomit-frame-pointer > -malign-functions=0 > -malign-jumps=0 -malign-loops=0 -nostdinc -iwithprefix include > -I../klibc -I../klibc/arch/i386/include -I../klibc/include/bits32 > -D__KLIBC__ -DBITSIZE=32 -I../klibc/include -I../linux/include -W > -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -c > -o fork.o fork.c > In file included from ../linux/include/linux/signal.h:4, > from ../klibc/include/signal.h:12, > from fork.c:9: > ../linux/include/linux/list.h:576:2: warning: #warning "don't include > kernel headers in userspace" > In file included from ../linux/include/linux/signal.h:5, > from ../klibc/include/signal.h:12, > from fork.c:9: > ../linux/include/linux/spinlock.h: In function `bit_spin_lock': > ../linux/include/linux/spinlock.h:413: warning: implicit declaration > of function `current_thread_info' > ../linux/include/linux/spinlock.h:413: invalid type argument of `->' > ../linux/include/linux/spinlock.h:404: warning: unused parameter > `bitnum' > ../linux/include/linux/spinlock.h:404: warning: unused parameter `addr' > ../linux/include/linux/spinlock.h: In function `bit_spin_trylock': > ../linux/include/linux/spinlock.h:436: invalid type argument of `->' > ../linux/include/linux/spinlock.h:425: warning: unused parameter > `bitnum' > ../linux/include/linux/spinlock.h:425: warning: unused parameter `addr' > ../linux/include/linux/spinlock.h: In function `bit_spin_unlock': > ../linux/include/linux/spinlock.h:451: invalid type argument of `->' > ../linux/include/linux/spinlock.h:451: warning: implicit declaration > of function `test_thread_flag' > ../linux/include/linux/spinlock.h:451: `TIF_NEED_RESCHED' undeclared > (first use in this function) > ../linux/include/linux/spinlock.h:451: (Each undeclared identifier is > reported only once > ../linux/include/linux/spinlock.h:451: for each function it appears > in.) > ../linux/include/linux/spinlock.h:444: warning: unused parameter > `bitnum' > ../linux/include/linux/spinlock.h:444: warning: unused parameter `addr' > ../linux/include/linux/spinlock.h: In function `bit_spin_is_locked': > ../linux/include/linux/spinlock.h:462: invalid type argument of `->' > ../linux/include/linux/spinlock.h:457: warning: unused parameter > `bitnum' > ../linux/include/linux/spinlock.h:457: warning: unused parameter `addr' > make[1]: *** [fork.o] Error 1 > make[1]: Leaving directory `/home/rogelio/src/klibc-0.80/klibc' > make: *** [all] Error 2 > > > _______________________________________________ > klibc mailing list > klibc@zytor.com > http://rd.mailshell.com/www.zytor.com/mailman/listinfo/klibc
On 2003-10-16 11:58:49 +0800 Daniel Toussaint <daniel@dmhome.net> wrote:> Hi, > I am a klibc newbie - , but as it happens I was just building against > the same kernel version (Linux-2.6.0-test7) , without any problem. > Did you by > any chance include the wrong set of kernel headers with the > symbolic link? > Greetings, > >Or maybe im using an old version of klibc. Im using klibc-0.80. Where and how can i get the latest?
I got it with bitkeeper from http://klibc.bkbits.net/, as the README in the kernel docs suggests. Greetings, On Thu, 2003-10-16 at 12:04, Rogelio M.Serrano Jr. wrote:> On 2003-10-16 11:58:49 +0800 Daniel Toussaint <daniel@dmhome.net> > wrote: > > > Hi, > > I am a klibc newbie - , but as it happens I was just building against > > the same kernel version (Linux-2.6.0-test7) , without any problem. > > Did you by > > any chance include the wrong set of kernel headers with the > > symbolic link? > > Greetings, > > > > > > Or maybe im using an old version of klibc. Im using klibc-0.80. Where > and how can i get the latest? > > _______________________________________________ > klibc mailing list > klibc@zytor.com > http://rd.mailshell.com/www.zytor.com/mailman/listinfo/klibc