[klibc] Problems with klibc 1.1.8

Jürg Billeter j at bitron.ch
Wed Dec 28 00:12:31 PST 2005


Hi,

trying to build klibc 1.1.8 on x86 fails on my machine as follows:

  KLIBCCC dash/trap.o
  KLIBCCC dash/output.o
dash/trap.c: In function 'trapcmd':
dash/trap.c:94: warning: unused parameter 'argc'
dash/trap.c:94: warning: unused parameter 'argv'
dash/trap.c: In function 'decode_signal':
dash/trap.c:398: error: 'SIGRTMIN' undeclared (first use in this
function)
dash/trap.c:398: error: (Each undeclared identifier is reported only
once
dash/trap.c:398: error: for each function it appears in.)
dash/trap.c:399: error: 'SIGRTMAX' undeclared (first use in this
function)
dash/trap.c: In function 'signal_name':
dash/trap.c:428: error: 'SIGRTMIN' undeclared (first use in this
function)
dash/trap.c:428: error: 'SIGRTMAX' undeclared (first use in this
function)
dash/trap.c:429: warning: implicit declaration of function 'snprintf'
dash/trap.c:429: warning: incompatible implicit declaration of built-in
function 'snprintf'
dash/trap.c:432: warning: incompatible implicit declaration of built-in
function 'snprintf'
make[2]: *** [dash/trap.o] Error 1

asm-i386/signal.h defines NSIG and therewith SIGRTMAX to 32, so the
condition SIGRTMAX <= SIGRTMIN in klibc's signal.h is fulfilled and
SIGRTMIN and SIGRTMAX get undefined.

Builds fine on x86_64, though.

Trying to build udev-079 on x86_64 with a system-installed klibc 1.1.8
results in the following error:

make USE_KLIBC=true
Creating udev_version.h
/usr/bin/klcc -c -g -Wall -pipe -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-Wstrict-prototypes -Wsign-compare -Wshadow -Wchar-subscripts
-Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -Wmissing-prototypes -Os
-I/usr/src/initramfs-2.6.15-rc7-paldo1/udev-079/libsysfs/sysfs
-I/usr/src/initramfs-2.6.15-rc7-paldo1/udev-079/libsysfs
libsysfs/sysfs_class.c -o libsysfs/sysfs_class.o
In file included from /usr/lib/klibc/include/sys/types.h:9,

from /usr/src/initramfs-2.6.15-rc7-paldo1/udev-079/libsysfs/sysfs/libsysfs.h:26,
                 from libsysfs/sysfs_class.c:23:
/usr/lib/klibc/include/stddef.h:9:3: error: #error "__KLIBC__ not
defined, compiler invocation error!"

I assume that klcc should define it but I don't know why it doesn't...

Regards,

Jürg
-- 
Jürg Billeter <j at bitron.ch>




More information about the klibc mailing list