Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 47455

Summary: shadow (shadow-4.0.4.1) fails to compile with gcc 3.4
Product: Gentoo Linux Reporter: Tamran Lengyel <tamran.lengyel>
Component: [OLD] Core systemAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED FIXED    
Severity: normal CC: amd64
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 48528    
Attachments: Removes extern char *malloc ();
correct the declaration of malloc
correct the declaration of malloc - ebuild patch

Description Tamran Lengyel 2004-04-10 13:20:14 UTC
when compiling with the following use flags:

Calculating dependencies ...done!
[ebuild     U ] sys-apps/shadow-4.0.4.1 [4.0.4.1] +nls +pam -(selinux)

I get the following error:

.....beginning deleted
14:58 <tamran>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -O3 -pipe -msse 
               -msse2 -ftracer -fweb -march=k8 -MT xmalloc.lo -MD -MP -MF 
               .deps/xmalloc.Tpo -c xmalloc.c -o xmalloc.o
14:58 <tamran> xmalloc.c:16: error: conflicting types for 'malloc'
14:58 <tamran> xmalloc.c:16: error: conflicting types for 'malloc'
14:58 <tamran> make[2]: *** [xmalloc.lo] Error 1
14:58 <tamran> make[2]: Leaving directory 
               `/var/tmp/portage/shadow-4.0.4.1/work/shadow-4.0.4.1/libmisc'
14:58 <tamran> make[1]: *** [all-recursive] Error 1
14:58 <tamran> make[1]: Leaving directory 
               `/var/tmp/portage/shadow-4.0.4.1/work/shadow-4.0.4.1'
14:58 <tamran> make: *** [all] Error 2
14:58 <tamran> !!! ERROR: sys-apps/shadow-4.0.4.1 failed.
14:58 <tamran> !!! Function src_compile, Line 79, Exitcode 2
14:58 <tamran> !!! compile problem
Comment 1 Tamran Lengyel 2004-04-10 13:21:58 UTC
Created attachment 29043 [details, diff]
Removes extern char *malloc ();
Comment 2 Tamran Lengyel 2004-04-10 15:26:22 UTC
My attachment should fix this problem.
Comment 3 Joshua Kinard gentoo-dev 2004-04-11 03:51:58 UTC
Just out of curiosity, is there some gcc-3.4 package in portage I'm not seeing?
Comment 4 Travis Tilley (RETIRED) gentoo-dev 2004-04-11 06:12:40 UTC
with gcc 3.4 in pre-release, there's certainly nothing wrong with getting a head start. ;)

I've actually played around with 3.4 myself and have been messing around with fixes for various apps. gcc 3.4 will be pretty important for amd64... there are some extreme performance gains to be had. I sent tamran an e-build for it and he went nuts with it, probably for this exact reason. ^_^

my glib 1.2.10 fix is already in portage, which suprised me... seeing how we dont actually have gcc 3.4 in the tree yet. but nothing breaks 3.3 so far, so it cant really hurt to be prepared.
Comment 5 Travis Tilley (RETIRED) gentoo-dev 2004-04-20 08:18:55 UTC
oh yeah, btw, gcc 3.4 is in portage now. ^_^
Comment 6 Ioan Marius Curelariu 2004-04-22 01:07:39 UTC
Created attachment 29801 [details, diff]
correct the declaration of malloc
Comment 7 Ioan Marius Curelariu 2004-04-22 01:08:09 UTC
Created attachment 29802 [details, diff]
correct the declaration of malloc - ebuild patch
Comment 8 Travis Tilley (RETIRED) gentoo-dev 2004-04-22 04:23:20 UTC
in the tree. give it some time to reach rsync mirrors