Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677676 - dev-lang/perl fails to compile during bootstrap due to missing -lperl
Summary: dev-lang/perl fails to compile during bootstrap due to missing -lperl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-10 19:56 UTC by Fabian Groffen
Modified: 2019-02-19 14:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2019-02-10 19:56:29 UTC
i386-pc-solaris2.11 and sparc-sun-solaris2.10 both fail in stage 3

* ERROR: dev-lang/perl-5.28.0::gentoo_prefix failed (compile phase): 

error is in the link phase:

i386-pc-solaris2.11-gcc -o libperl.so.5.28.0 -Wl,-E -shared  -Wl,-soname -Wl,libperl.so.5.28 op.o     perl.o  gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o dquote.o time64.o   DynaLoader.o -lpthread -lsocket -lnsl -ldl -lm -lc 
Processing extracted/DBidiClass.txt
i386-pc-solaris2.11-gcc -o perl  -Wl,-E perlmain.o   -lperl `cat ext.libs` -lpthread -lsocket -lnsl -ldl -lm -lc 
/gentoo/bootstrap32-20190207/usr/i386-pc-solaris2.11/binutils-bin/2.29.1/ld: cannot find -lperl
collect2: error: ld returned 1 exit status
gmake: *** [makefile:364: perl] Error 1
gmake: *** Waiting for unfinished jobs....

I seem to recall -L. used to be in flags, but this no longer is and history doesn't show it existing either.  Need to check if there's logic not triggered in Configure to enable linking to succeed in this case before we add -L. to ldflags.
Comment 1 Larry the Git Cow gentoo-dev 2019-02-19 14:49:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b091d65077af3b9bb7e286f741f7e1e684fe5eb9

commit b091d65077af3b9bb7e286f741f7e1e684fe5eb9
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2019-02-19 14:48:52 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2019-02-19 14:49:09 +0000

    dev-lang/perl: fix linking on Solaris, bug #677676
    
    Closes: https://bugs.gentoo.org/677676
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-lang/perl/perl-5.28.0.ebuild    | 7 +++++--
 dev-lang/perl/perl-5.28.9999.ebuild | 7 +++++--
 2 files changed, 10 insertions(+), 4 deletions(-)