[uClibc]Compile error: uClibs 0.9.11

Jens Andersen rayman at skumler.net
Mon May 27 20:12:32 UTC 2002


Hey
When trying to compile uClibs 0.9.11 I get this error:
gcc -Wall -Os  -march=i386 -mpreferred-stack-boundary=2 -malign-functions=0 -mal
ign-jumps=0 -malign-loops=0 -fno-builtin -nostdinc -pipe -nostdinc -I../../../..
/include -I/usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include -I. -D_LIBC  -DN
DEBUG  -D_LIBC_REENTRANT -DL__exit syscalls.c -c -o _exit.o
syscalls.c:35: parse error before `__STR_NR__exit'
make[4]: *** [_exit.o] Error 1
make[4]: Leaving directory
`/home/rayman/uClibc-0.9.11/libc/sysdeps/linux/common'
make[3]: *** [_dir_common] Error 2
make[3]: Leaving directory `/home/rayman/uClibc-0.9.11/libc/sysdeps/linux'
make[2]: *** [_dir_linux] Error 2
make[2]: Leaving directory `/home/rayman/uClibc-0.9.11/libc/sysdeps'
make[1]: *** [_dir_sysdeps] Error 2
make[1]: Leaving directory `/home/rayman/uClibc-0.9.11/libc'
make: *** [_dir_libc] Error 2

This is on an i386 system with these options on (at first glance they seem to be
the only relevant to this error):
UNIFIED_SYSCALL = true
DOPIC = false
HAVE_SHARED = false
As far as I have figured it seems to be this function thats called:
#define _syscall1(type,name,type1,arg1) \
unified_syscall_body(name)
->
#define unified_syscall_body(name) \
__asm__ ( \
".text\n.align 4\n.global "###name"\n.type "###name", at function\n" \
#name":\nmovb $"__STR_NR_##name \
",%al;\n jmp __uClibc_syscall\n.Lfe1"###name":\n.size "###name \
",.Lfe1"###name"-"###name \
)

Which fits fairly well to the error above, but unfortunately I do not know much
C or assembly programming yet so I'm hoping you can help me fix this error :)

Additional info that might be usefull:
Linux rayman 2.4.18-grsec-1.9.4 #3 Wed Mar 27 20:09:38 CET 2002 i686 unknown
Slackware linux 8.0 (with some stuff replaced...)

# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)

Thank you in behalf
Jens Andersen





More information about the uClibc mailing list