[klibc] Re: arch/ia64/pipe.c:5:23: syscommon.h: No such file or directory

H. Peter Anvin hpa at zytor.com
Mon Oct 18 11:34:35 PDT 2004


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



More information about the klibc mailing list