[klibc] Klibc 1.5.4 build issues

David A. Kennel
Wed, 29 Aug 2007 22:37:18 -0000

I'm working with klibc as a part of trying to port LTSP version 5 into
Red Hat 4 and 5. Red Hat does not  appear to have a very good set of
utilities for playing in early userspace like LTSP's boot process
requires so I thought I would try klibc since I could then base my port
more closely on the Ubuntu/Debian work. Problem is I can't seem to get
klibc to build against the RHEL 4 kernel (2.6.9 with a boatload of patches).

Here is the result of the make command:
[root@****** klibc-1.5.4]# make
  KLIBCCC usr/klibc/vsnprintf.o
In file included from linux/include/linux/linkage.h:4,
                 from linux/include/asm-generic/signal.h:5,
                 from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/linux/config.h:6:2: #error including kernel header in
userspace; use the glibc headers instead!
In file included from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/asm-generic/signal.h:30: error: conflicting types for
'sigset_t'
usr/include/arch/i386/klibc/archsignal.h:22: error: previous declaration
of 'sigset_t' was here
In file included from usr/include/arch/i386/klibc/archsignal.h:99,
                 from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
linux/include/asm-generic/signal.h:74:1: warning: "SIGRTMAX" redefined
In file included from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/include/arch/i386/klibc/archsignal.h:60:1: warning: this is the
location of the previous definition
In file included from usr/klibc/../include/signal.h:14,
                 from usr/klibc/../include/sys/select.h:11,
                 from usr/klibc/../include/unistd.h:12,
                 from usr/klibc/../include/stdio.h:11,
                 from usr/klibc/vsnprintf.c:13:
usr/include/arch/i386/klibc/archsignal.h:104: error: redefinition of
`struct sigaction'
usr/include/arch/i386/klibc/archsignal.h:106: warning: no semicolon at
end of struct or union
usr/include/arch/i386/klibc/archsignal.h:106: error: syntax error before
'.' token
usr/include/arch/i386/klibc/archsignal.h:106: warning: no semicolon at
end of struct or union
usr/include/arch/i386/klibc/archsignal.h:107: error: syntax error before
'.' token
usr/include/arch/i386/klibc/archsignal.h:112: error: syntax error before
'}' token
make[2]: *** [usr/klibc/vsnprintf.o] Error 1
make[1]: *** [all] Error 2
make: *** [klibc] Error 2

Thanks in advance for any help you can offer.

--
--
DKennel