[BusyBox] Build problems with hdparm

Erik Andersen andersen at codepoet.org
Sat Feb 14 21:35:49 UTC 2004


On Sat Feb 14, 2004 at 10:49:00AM -0500, Brian Bruns wrote:
> Hello all,
> 
> Hope this is the right place to report my issue.  Trying to build busybox from
> latest CVS snapshot (as of about 20 mins ago), getting the following error
> when trying to build the hdparm portion of the busybox binary:
> 
> gcc -I./include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=
> 64 -Wall -Wstrict-prototypes -Wshadow -Os -march=i386 -mpreferred-stack-bounda
> ry=2 -falign-functions=0 -falign-jumps=0 -falign-loops=0 -fomit-frame-pointer 
> -D_GNU_SOURCE -DNDEBUG   -O3  -c -o miscutils/hdparm.o miscutils/hdparm.c
> miscutils/hdparm.c:1241: error: `readahead' redeclared as different kind of
> symbol
> /usr/include/bits/fcntl.h:185: error: previous declaration of `readahead'
> miscutils/hdparm.c:1241: warning: `readahead' was declared `extern' and later
> `static'
> make: *** [miscutils/hdparm.o] Error 1

It looks like our glibc friends have added a function named
'readahead' to glibc, which conflicts with a variable name
in hdparm that is entirely unrelated.

I've changed the name in hdparm to avoid the conflict...

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the busybox mailing list