Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4343 - gcc 3.1 + perl (or is it objects?)
Summary: gcc 3.1 + perl (or is it objects?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 4981
  Show dependency tree
 
Reported: 2002-06-30 07:25 UTC by Spider (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments
Perl ebuild with Bjorn's patch (perl-5.6.1-r5.ebuild,6.09 KB, text/plain)
2002-07-22 16:20 UTC, Andrew Sayman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Spider (RETIRED) gentoo-dev 2002-06-30 07:25:27 UTC
okay, I'm having something of a showstopper for my system here:
emerge perl fails with :
          CCCMD =  cc -DPERL_CORE -c -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=athlon-tbird -O2 -pipe 
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
`sh  cflags libperl.so pp_sys.o` -fPIC pp_sys.c
          CCCMD =  cc -DPERL_CORE -c -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=athlon-tbird -O2 -pipe 
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
pp_sys.c: In function `Perl_pp_sysread':
pp_sys.c:1499: incompatible type for argument 5 of `recvfrom'
pp_sys.c: In function `Perl_pp_send':
pp_sys.c:1693: incompatible type for argument 5 of `sendto'
pp_sys.c: In function `Perl_pp_bind':
pp_sys.c:2189: incompatible type for argument 2 of `bind'
pp_sys.c: In function `Perl_pp_connect':
pp_sys.c:2227: incompatible type for argument 2 of `connect'
pp_sys.c: In function `Perl_pp_accept':
pp_sys.c:2296: incompatible type for argument 2 of `accept'
pp_sys.c: In function `Perl_pp_getpeername':
pp_sys.c:2469: incompatible type for argument 2 of `getsockname'
pp_sys.c:2473: incompatible type for argument 2 of `getpeername'
make: *** [pp_sys.o] Error 1


gcc 3.1, march=athlon-tbird -O2 -pipe

the reason I'm trying to rebuild is that xchat crashes with a libperl link error
 in the bactkrace
Comment 1 Bjorn 2002-07-07 12:36:30 UTC
I am running into this problem also, and found this, 
http://archive.develooper.com/perl5-porters@perl.org/msg80452.html

maybe the link would help shed some light on this matter
Comment 2 Bjorn 2002-07-07 13:03:43 UTC
the link in my earlier comment said something about gcc's auto lib include 
thing or whatever, and to add -Dlocincpth=' ' to the Configure.

did and done that and compile went as expected, here's a a small diff of the 
changes.

--- perl-5.6.1-r4.ebuild        Thu Jun 20 16:50:31 2002
+++ perl-5.6.1-r4.ebuild.new    Sun Jul  7 18:19:24 2002
@@ -33,6 +33,7 @@
                -Dcccdlflags='-fPIC' \
                -Dccdlflags='-rdynamic' \
                -Dprefix=/usr \
+               -Dlocincpth=' ' \
                -Doptimize="${CFLAGS}" \
                -Duselargefiles \
                -Duseshrplib \
@@ -90,6 +91,7 @@
                -Darchname=${CHOST%%-*}-linux \
                -Duselargefiles \
                -Dd_dosuid \
+               -Dlocincpth=' ' \
                -Dd_semctl_semun \
                ${myconf} || die
Comment 3 Andrew Sayman 2002-07-22 16:20:11 UTC
Created attachment 2471 [details]
Perl ebuild with Bjorn's patch

I had the same problem as the reporter and the patch by Bjorn fixed it. I've
attached a perl ebuild with this applied. What needs to be done to get this
into gentoo and mark this bug fixed?
Comment 4 Spider (RETIRED) gentoo-dev 2002-07-25 06:51:20 UTC
ok, this patch worked for me and I released an updated perl revision thats
masked.. closing this now Matthew.


could people please test it ?
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2002-07-25 18:41:02 UTC
spider, i just tested -r5 and it works fine for me.

Matt