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

Bug#288981: busybox-cvs: FTBFS (amd64/gcc-4.0): conflicting types for 'build_bl_tree'

On 05-Apr-12 19:34, Colin Watson wrote:
> Current upstream (from Subversion, svn://busybox.net/trunk/busybox)
> compiles cleanly on amd64 with the gcc-4.0 in Ubuntu 5.04 (CVS
> 20050301), although the 'environ' which you changed to 'environm' is
> still 'environ' throughout; can you shed any light on this?

I replaced s/environ/environm/ in ifupdown.c to avoid 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 networking/ifupdown.o networkaing/ifupdown.c
networking/ifupdown.c:151: error: static declaration of 'environ' follows non-static declaration
/usr/include/unistd.h:474: error: previous declaration of 'environ' was here

'environ' seems to be defined by /usr/include/unistd.h:

/* NULL-terminated array of "NAME=VALUE" environment variables.  */
extern char **__environ;
#ifdef __USE_GNU
extern char **environ;

Andreas Jochens

Reply to: