[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#240918: __NR__llseek undeclared when compiling on amd64.



Package: busybox-cvs
Version: 20040101

When trying to build the package I get the following error:
gcc -I./include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -Wstrict-prototypes -Wshadow -Os -fomit-frame-pointer -DNDEBUG     -c -o
util-linux/fdisk.o util-linux/fdisk.c
util-linux/fdisk.c: In function `my_llseek':
util-linux/fdisk.c:873: error: `__NR__llseek' undeclared (first use in this function)
util-linux/fdisk.c:873: error: (Each undeclared identifier is reported only onceutil-linux/fdisk.c:873: error: for each function it appears in.)
make[1]: *** [util-linux/fdisk.o] Error 1
make[1]: Leaving directory `/usr/src/busybox-cvs-20040101'
make: *** [build-arch-static-stamp] Error 2


Patch:
--- fdisk.c.old 2004-03-29 16:19:12.491937714 -0600
+++ fdisk.c     2004-03-29 16:20:14.076090497 -0600
@@ -856,7 +856,7 @@
  */


-#if defined(__alpha__) || defined(__ia64__) || defined(__s390x__)
+#if defined(__alpha__) || defined(__ia64__) || defined(__s390x__) || defined (__x86_64__)

 #define my_llseek lseek



Kurt




Reply to: