develooper Front page | perl.perl5.porters | Postings from March 2013

[perl #113022] Configure misdetects strlcpy et al. with gcc -flto

From:
l.mai@web.de via RT
Date:
March 24, 2013 19:21
Subject:
[perl #113022] Configure misdetects strlcpy et al. with gcc -flto
Message ID:
rt-3.6.HEAD-28177-1364152874-793.113022-15-0@perl.org
On Wed Jul 04 03:06:14 2012, nicholas wrote:
> On Tue, Jul 03, 2012 at 06:56:20PM -0700, Ricardo SIGNES via RT wrote:
> > I would very much appreciate some opinions on the applicability of
> this change.
> 
> It looks sane, but it is an area that caused great fun before.
> 
> I think we push it to a smoke-me branch, but also try to ensure we
> test
> Configure with and without generates the same config.sh (no need to
> actually
> build) on as many compilers as we collectively have access to, at high
> optimisation levels.
> 
> (ie I think that's the vendor C and C++ compilers on Solaris, HP-UX
> and AIX.
> Test gcc and clang, but I don't think that they'll be the problem.
> icc, if
> anyone has access to it.)

Did anything happen in this area? My build is still failing with 5.16.3:

/tmp/cc9ZpvJt.ltrans13.ltrans.o: In function `Perl_magic_set':
cc9ZpvJt.ltrans13.o:(.text+0x2b48): undefined reference to `setproctitle'
cc9ZpvJt.ltrans13.o:(.text+0x372f): undefined reference to `setrgid'
cc9ZpvJt.ltrans13.o:(.text+0x374d): undefined reference to `setruid'
/tmp/cc9ZpvJt.ltrans22.ltrans.o: In function `Perl_more_bodies':
cc9ZpvJt.ltrans22.o:(.text+0x3c7): undefined reference to `malloc_good_size'
/tmp/cc9ZpvJt.ltrans22.ltrans.o: In function
`Perl_find_script.constprop.59':
cc9ZpvJt.ltrans22.o:(.text+0x417e): undefined reference to `strlcpy'
/tmp/cc9ZpvJt.ltrans19.ltrans.o: In function `Perl_av_extend':
cc9ZpvJt.ltrans19.o:(.text+0x348): undefined reference to `malloc_size'
/tmp/cc9ZpvJt.ltrans19.ltrans.o: In function `Perl_sv_usepvn_flags':
cc9ZpvJt.ltrans19.o:(.text+0x599b): undefined reference to `malloc_size'
cc9ZpvJt.ltrans19.o:(.text+0x5a70): undefined reference to `malloc_size'
/tmp/cc9ZpvJt.ltrans27.ltrans.o: In function `Perl_sv_grow':
cc9ZpvJt.ltrans27.o:(.text+0x1776): undefined reference to `malloc_size'
collect2: error: ld returned 1 exit status
make: *** [miniperl] Error 1


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=113022



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About