`__NR_vfork' undeclared
Geoff Keating
geoffk@ozemail.com.au
Thu Apr 1 15:37:00 GMT 1999
> From: "Jack Howarth" <howarth@bromo.med.uc.edu>
> Date: Thu, 1 Apr 1999 08:58:59 -0500
>
> Has anyone else run across this problem on glibc 2.1.1pre1. In building
> the strace 3.1 on linuxppc (egcs 1.1.2, binutils 2.9.1.0.22b, Linux 2.2.4 and
> glibc 2.1.1pre1) I am now finding a compile failure of...
>
> gcc -b ppc-redhat-linux -Wall -DHAVE_CONFIG_H -I. -Ilinux/ppc -I./linux/ppc -Ilinux -I./linux -O2 -fsigned-char -c syscall.c
> syscall.c: In function `internal_syscall':
> syscall.c:489: `__NR_vfork' undeclared (first use in this function)
> syscall.c:489: (Each undeclared identifier is reported only once
> syscall.c:489: for each function it appears in.)
> make: *** [syscall.o] Error 1
>
> ...which seems very odd since the header syscall.h in /usr/include/bits
> has..
>
> #define SYS_vfork __NR_vfork
>
> the /usr/include/sys/syscall.h indicates that the linux headers should
> provide these? Unfortunately I don't see this declared anywhere in
> /usr/include/linux. Is anyone seeing this on other platforms?
Perhaps you have an old version of the headers?
Mine have:
...
#define __NR_getpmsg 187 /* some people actually want streams */
#define __NR_putpmsg 188 /* some people actually want streams */
#define __NR_vfork 189
They are version 2.2.2.
--
Geoffrey Keating <geoffk@ozemail.com.au>
More information about the Libc-alpha
mailing list