Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95002 - busybox-1.00-r4 can't be compiled by gcc4.1
Summary: busybox-1.00-r4 can't be compiled by gcc4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-04 04:17 UTC by Chen Xiangyang
Modified: 2005-06-04 16:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
a patch that should fix the bug (busybox-gcc4.patch,1.90 KB, patch)
2005-06-04 04:18 UTC, Chen Xiangyang
Details | Diff
GCC4 patch from upstream (gcc4.patch,915 bytes, patch)
2005-06-04 10:08 UTC, Mark Loeser (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chen Xiangyang 2005-06-04 04:17:54 UTC
1. archieval/gzip.c: declaration as 'static int' but implementation as 'static
const int'
2. networking/ifupdown.c: 'static char ** environ' conflicts with stddef.h

Reproducible: Always
Steps to Reproduce:
1.untar 
2.'make', when config, check 'Network Utilites->ifupdown'
3.'make' again

Actual Results:  
gcc -I../include -I../include -I../archival -Wall -Wstrict-prototypes -Wshadow
-Os -march=i386 -mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0
-falign-loops=0 -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG     -c -o
../archival/gzip.o ../archival/gzip.c
../archival/gzip.c:2166: warning: type qualifiers ignored on function return type
../archival/gzip.c:2166: error: conflicting types for 'build_bl_tree'
../archival/gzip.c:1643: error: previous declaration of 'build_bl_tree' was here
make: *** [../archival/gzip.o] Error 1

--------------------------------------------------

gcc -I../include -I../include -I../networking -Wall -Wstrict-prototypes -Wshadow
-Os -march=i386 -mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0
-falign-loops=0 -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG     -c -o
../networking/ifupdown.o ../networking/ifupdown.c
../networking/ifupdown.c:153: error: static declaration of 'environ' follows
non-static declaration
/usr/include/unistd.h:476: error: previous declaration of 'environ' was here
make: *** [../networking/ifupdown.o] Error 1


Expected Results:  
compiled successfully
Comment 1 Chen Xiangyang 2005-06-04 04:18:43 UTC
Created attachment 60569 [details, diff]
a patch that should fix the bug
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-06-04 10:08:00 UTC
Created attachment 60594 [details, diff]
GCC4 patch from upstream

Here's the patch from upstream's CVS.
Comment 3 SpanKY gentoo-dev 2005-06-04 16:26:19 UTC
added to portage