BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001153 [buildroot] Architecture Specific minor always 01-09-07 23:31 06-19-07 04:30
Reporter Steven_Carr View Status public  
Assigned To buildroot
Priority normal Resolution open  
Status assigned   Product Version
Summary 0001153: sfdisk fails to compile
Description Buildroot failes when compiling sfdisk
Additional Information make[1]: Entering directory `/home/scarr/bnr/buildroot/build_i686/sfdisk'
/home/scarr/bnr/buildroot/build_i686/staging_dir/bin/i686-linux-uclibc-gcc -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wmissing-prototypes -Wstrict-prototypes -Os -pipe -fomit-frame-pointer -D_GNU_SOURCE -c sfdisk.c -o sfdisk.o
sfdisk.c:141: error: parse error before "_llseek"
sfdisk.c:142: warning: type defaults to `int' in declaration of `_syscall5'
sfdisk.c:142: warning: function declaration isn't a prototype
sfdisk.c: In function `sseek':
sfdisk.c:152: warning: implicit declaration of function `_llseek'
sfdisk.c: At top level:
sfdisk.c:142: warning: '_syscall5' declared `static' but never defined
make[1]: *** [sfdisk.o] Error 1
make[1]: Leaving directory `/home/scarr/bnr/buildroot/build_i686/sfdisk'
make: *** [/home/scarr/bnr/buildroot/build_i686/sfdisk/sfdisk] Error 2
Attached Files  sfdisk.002.fix-lseek.patch [^] (1,080 bytes) 06-19-07 04:24
 sfdisk.mk.patch [^] (464 bytes) 06-19-07 04:26

- Relationships

- Notes
(0002487)
tsoutherwood
06-19-07 04:30

Hi

I have a solution to this bug, verified on an x86 target, though I don't see why it wouldn't work in the general case:

Remove: buildroot/package/sfdisk/sfdisk.001.include_sys_syscalls_h.patch
Add: buildroot/package/sfdisk/sfdisk.002.fix-lseek.patch

from the attachment to this bug note.

Patch sfdisk.mk with sfdisk.mk.patch as attached to this bug note.

rebuild, et voila!

HTH and comments welcome if there are any issues with that.

Tim Southerwood.
 

- Issue History
Date Modified Username Field Change
01-09-07 23:31 Steven_Carr New Issue
01-09-07 23:31 Steven_Carr Status new => assigned
01-09-07 23:31 Steven_Carr Assigned To  => uClibc
02-12-07 05:33 vapier Assigned To uClibc => buildroot
06-19-07 04:24 tsoutherwood File Added: sfdisk.002.fix-lseek.patch
06-19-07 04:26 tsoutherwood File Added: sfdisk.mk.patch
06-19-07 04:30 tsoutherwood Note Added: 0002487


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker