[uClibc]Missing __NR_getpid in ldso for m68k?
Daniel Hallgren
x_dah at sectra.se
Mon Aug 19 15:09:23 UTC 2002
Hello,
I think there is a line missing in ldso/ldso/m68k/ld_syscall.h. Why:
I downloaded uclibc-0.9.14.tar.gz which I want to compile for my
cross-compiling environment. The target is m68k-linux and the host is
i686-pc-linux-gnu. I have built crossgcc, together with binutils and
glibc, and they are all working fine since I've used them for a while to
compile the linux kernel.
While building uclibc I got the following error message in ldso:
<snip>
m68k-linux-gcc -Wall -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-builtin -nostdinc -I../../include
-iwithprefix include -I. -D_LIBC -Wa,--bitwise-or
-I/opt2/src/linux-2.2.10-uclibc/include -DNDEBUG -DLD_TRACE
-DUCLIBC_TARGET_PREFIX=\"/\"
-DUCLIBC_DEVEL_PREFIX=\"/opt2/m68k-linux-uclibc\"
-DUCLIBC_BUILD_DIR=\"/opt2/uClibc-0.9.14\" -I. -I./m68k -I../libdl -c
ldso.c -o ldso.oIn file included from ldso.c:118:
ld_syscall.h: In function `_dl_getpid':
ld_syscall.h:133: `__NR_getpid' undeclared (first use in this function)
ld_syscall.h:133: (Each undeclared identifier is reported only once
ld_syscall.h:133: for each function it appears in.)
ldso.c: In function `_dl_boot':
ldso.c:235: warning: assignment from incompatible pointer type
make[2]: *** [ldso.o] Error 1
make[2]: Leaving directory `/opt2/uClibc-0.9.14/ldso/ldso'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt2/uClibc-0.9.14/ldso'
make: *** [_dir_ldso] Error 2
<snip>
It seemed to me that __NR_getpid was missing in
ldso/ldso/m68k/ld_syscall.h, so I added it there:
#define __NR_getpid 20
(The number coming from linux/include/asm/unistd.h) Now it works. Am I
missing something here or is it really missing in the file?
/ Daniel Hallgren
More information about the uClibc
mailing list