Olaf Hering
2004-Oct-18 10:30 UTC
[klibc] arch/ia64/pipe.c:5:23: syscommon.h: No such file or directory
Peter, current klibc does not compile in ia64: gcc -Wp,-MT,arch/ia64/pipe.o,-MD,arch/ia64/.pipe.o.d -Os -fomit-frame-pointer -nostdinc -iwithprefix include -D__KLIBC__ -DBITSIZE=64 -I../include/arch/ia64 -I../include/bits64 -I../include -I../linux/include -I../linux/include2 -I../linux/include -DWITH_ERRLIST -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -c -o arch/ia64/pipe.o arch/ia64/pipe.c arch/ia64/pipe.c:5:23: syscommon.h: No such file or directory arch/ia64/pipe.c: In function `pipe': arch/ia64/pipe.c:25: error: `__NR_pipe' undeclared (first use in this function) arch/ia64/pipe.c:25: error: (Each undeclared identifier is reported only once arch/ia64/pipe.c:25: error: for each function it appears in.) arch/ia64/pipe.c:34: error: `errno' undeclared (first use in this function) make[2]: *** [arch/ia64/pipe.o] Error 1 How should pipe.c include syscommon.h? Whats your prefered fix? -- USB is for mice, FireWire is for men! sUse lINUX ag, n?RNBERG
H. Peter Anvin
2004-Oct-18 10:34 UTC
[klibc] Re: arch/ia64/pipe.c:5:23: syscommon.h: No such file or directory
Olaf Hering wrote:> Peter, > > current klibc does not compile in ia64: > > gcc -Wp,-MT,arch/ia64/pipe.o,-MD,arch/ia64/.pipe.o.d -Os -fomit-frame-pointer -nostdinc -iwithprefix include -D__KLIBC__ -DBITSIZE=64 -I../include/arch/ia64 -I../include/bits64 -I../include -I../linux/include -I../linux/include2 -I../linux/include -DWITH_ERRLIST -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -c -o arch/ia64/pipe.o arch/ia64/pipe.c > arch/ia64/pipe.c:5:23: syscommon.h: No such file or directory > arch/ia64/pipe.c: In function `pipe': > arch/ia64/pipe.c:25: error: `__NR_pipe' undeclared (first use in this function) > arch/ia64/pipe.c:25: error: (Each undeclared identifier is reported only once > arch/ia64/pipe.c:25: error: for each function it appears in.) > arch/ia64/pipe.c:34: error: `errno' undeclared (first use in this function) > make[2]: *** [arch/ia64/pipe.o] Error 1 > > How should pipe.c include syscommon.h? Whats your prefered fix? >syscommon.h is long gone. #include <sys/syscall.h> ... would be the right thing if it works. -hpa
Olaf Hering
2004-Oct-18 10:48 UTC
[klibc] Re: arch/ia64/pipe.c:5:23: syscommon.h: No such file or directory
On Mon, Oct 18, H. Peter Anvin wrote:> syscommon.h is long gone.Its hiding in klibc/ :)> #include <sys/syscall.h>I will try this now. -- USB is for mice, FireWire is for men! sUse lINUX ag, n?RNBERG
Olaf Hering
2004-Oct-18 11:36 UTC
[klibc] Re: arch/ia64/pipe.c:5:23: syscommon.h: No such file or directory
On Mon, Oct 18, H. Peter Anvin wrote:> #include <sys/syscall.h> > > ... would be the right thing if it works.It does. But linking fails, __clone() is not define. This fixes it for me. No idea if thats correct, looks like only ia64 has no __NR_fork --- klibc/fork.c 6 Jun 2004 02:26:30 -0000 1.7 +++ klibc/fork.c 18 Oct 2004 18:28:57 -0000 @@ -15,7 +15,7 @@ extern pid_t __clone(unsigned long flags pid_t fork(void) { - return __clone(SIGCHLD, 0); + return __clone2(SIGCHLD, 0); } #endif /* __NR_fork */ -- USB is for mice, FireWire is for men! sUse lINUX ag, n?RNBERG