__NR__llseek undeclared
Christian Perst <[email protected]> Thu, 5 Apr 2007 14:38:58 +0200
| Newsgroups | gmane.comp.security.forensics.tct |
|---|---|
| Message-ID | <[email protected]> |
Hi tct-users list, I tried to compile on Opensuse 10.1 uname: Linux majestix 2.6.16.27-0.9-default #1 Tue Feb 13 09:35:18 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux Here is what I got: ---8<--- chmod 700 . cd src/aux; make "CC=gcc" MAKELEVEL= gcc -DLINUX2 -O -g -c -o mymalloc.o mymalloc.c gcc -DLINUX2 -O -g -c -o error.o error.c gcc -DLINUX2 -O -g -c -o strerror.o strerror.c gcc -DLINUX2 -O -g -c -o split_at.o split_at.c ar rv aux_lib.a mymalloc.o error.o strerror.o split_at.o ar: creating aux_lib.a a - mymalloc.o a - error.o a - strerror.o a - split_at.o ranlib aux_lib.a cd src/misc; make "CC=gcc" MAKELEVEL= gcc -O -g -I. -DLINUX2 -c -o md5.o md5.c gcc -O -g -I. -DLINUX2 -c -o md5c.o md5c.c gcc -O -g -I. -DLINUX2 -o ../../bin/md5 md5.o md5c.o gcc -O -g -I. -DLINUX2 -c -o timeout.o timeout.c gcc -O -g -I. -DLINUX2 -o ../../bin/timeout timeout.o cd src/fstools; make "CC=gcc" MAKELEVEL= gcc -DLINUX2 -I../aux -O -g -c -o fs_buf.o fs_buf.c gcc -DLINUX2 -I../aux -O -g -c -o fs_inode.o fs_inode.c gcc -DLINUX2 -I../aux -O -g -c -o fs_io.o fs_io.c gcc -DLINUX2 -I../aux -O -g -c -o fs_copy_file.o fs_copy_file.c gcc -DLINUX2 -I../aux -O -g -c -o fs_open.o fs_open.c gcc -DLINUX2 -I../aux -O -g -c -o ffs.o ffs.c gcc -DLINUX2 -I../aux -O -g -c -o ffs2.o ffs2.c gcc -DLINUX2 -I../aux -O -g -c -o ext2fs.o ext2fs.c gcc -DLINUX2 -I../aux -O -g -c -o mylseek.o mylseek.c mylseek.c: In function '_llseek': mylseek.c:35: error: '__NR__llseek' undeclared (first use in this function) mylseek.c:35: error: (Each undeclared identifier is reported only once mylseek.c:35: error: for each function it appears in.) make: *** [mylseek.o] Error 1 make: *** [what] Error 2 make: *** [compile] Error 2 ---8<--- I have __NR__llseek defined in some files: ./asm-i386/unistd.h #define __NR__llseek 140 ./bits/syscall.h #define SYS__llseek __NR__llseek But a manual #include just gets another error. Does anybody have a hint? Thanks, Chris