[BusyBox] why is socklen_t defined twice ?

Mark Whitley markw at lineo.com
Tue Mar 27 18:28:26 UTC 2001


On Tue, Mar 27, 2001 at 12:58:56PM +0200, Robert Kaiser wrote:
> Hi,
> 
> trying to build busybox (from current CVS) with libc5, I got this error:
> 
> linux-gnulibc1-gcc -Wall -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE 
> -DBB_VER='"0.51pre"' -DBB_BT='"2001.03.27-11:00+0000"' -DUSE_SYSTEM_PWD_GRP 
> -Ilibbb -c libbb/recursive_action.c -o libbb/recursive_action.o In file
> included from libbb/../messages.c:39,                  from
> libbb/recursive_action.c:37: libbb/../busybox.h:43: redefinition of `socklen_t'
> libbb/libbb.h:41: `socklen_t' previously declared here make: ***
> [libbb/recursive_action.o] Error 1
> 
> Removing the "typedef unsigned int socklen_t;" in libbb.h "fixed" the problem
> for me, though I doubt it is a clean solution...

Clean enough to count. I just checked in a change to this effect and one more
with the Makefile that was preventing busybox from linking against libc5. Grab
the latest from CVS, try again, and post any problems (or successes?) to the
list.

Thanks for spotting this one.

Mark Whitley
markw at lineo.com





More information about the busybox mailing list