Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47455 - shadow (shadow-4.0.4.1) fails to compile with gcc 3.4
Summary: shadow (shadow-4.0.4.1) fails to compile with gcc 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-04-10 13:20 UTC by Tamran Lengyel
Modified: 2004-04-22 14:33 UTC (History)
1 user (show)

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


Attachments
Removes extern char *malloc (); (gcc-3.4-xmallocfix.diff,431 bytes, patch)
2004-04-10 13:21 UTC, Tamran Lengyel
Details | Diff
correct the declaration of malloc (shadow-4.0.4.1-xmalloc.patch,341 bytes, patch)
2004-04-22 01:07 UTC, Ioan Marius Curelariu
Details | Diff
correct the declaration of malloc - ebuild patch (shadow-4.0.4.1.ebuild-xmalloc.patch,416 bytes, patch)
2004-04-22 01:08 UTC, Ioan Marius Curelariu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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