Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504090 - bootstrapping fails because configure of dev-lang/perl fails
Summary: bootstrapping fails because configure of dev-lang/perl fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Solaris
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-10 14:53 UTC by tao
Modified: 2014-04-24 19:48 UTC (History)
0 users

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


Attachments
build.log (build.log,11.17 KB, text/plain)
2014-03-10 14:54 UTC, tao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tao 2014-03-10 14:53:18 UTC
Configure of dev-lang/perl-5.16.3 failed with
︙
  Any additional ld flags (NOT including libraries)?
  [-L/rpool/gentoo/usr/lib -R/rpool/gentoo/usr/lib -L/rpool/gentoo/lib -R/rpool/gentoo/lib -L/rpool/gentoo/tmp/usr/lib -R/rpool/gentoo/tmp/usr/lib]  
  Checking your choice of C compiler and flags for coherency...
  I've tried to compile and run the following simple program:
  
  #include <stdio.h>
  int main() { printf("Ok\n"); return(0); }
  
  I used the command:
  
          i386-pc-solaris2.11-gcc -o try -O -fno-strict-aliasing -pipe -I/rpool/gentoo/usr/include -L/rpool/gentoo/usr/lib -R/rpool/gentoo/usr/lib -L/rpool/gentoo/lib -R/rpool/gentoo/lib -L/rpool/gentoo/tmp/usr/lib -R/rpool/gentoo/tmp/usr/lib try.c -lsocket -lnsl -lgdbm -ldb -ldl -lm -lc
         ./try
  
  and I got the following output:
  
  /lib/libelf.so.1: undefined reference to `inflate@SUNW_1.1'
  /lib/libelf.so.1: undefined reference to `deflateEnd@SUNW_1.1'
  /lib/libelf.so.1: undefined reference to `inflateInit_@SUNW_1.1'
  /lib/libelf.so.1: undefined reference to `deflateInit_@SUNW_1.1'
  /lib/libelf.so.1: undefined reference to `deflateReset@SUNW_1.1'
  /lib/libelf.so.1: undefined reference to `inflateReset@SUNW_1.1'
  /lib/libelf.so.1: undefined reference to `inflateEnd@SUNW_1.1'
  /lib/libelf.so.1: undefined reference to `deflate@SUNW_1.1'
  collect2: ld returned 1 exit status
  I can't compile the test program.


Reproducible: Always




I tried bootsrap SunOS solaris 5.11 11.2 Ultra 27 workstation using bootstrap-prefix.sh 61818.
Comment 1 tao 2014-03-10 14:54:28 UTC
Created attachment 372298 [details]
build.log
Comment 2 Fabian Groffen gentoo-dev 2014-03-11 12:23:34 UTC
Hmmm, it's looking for zlib, but -lz wasn't given on the link line.
Comment 3 Fabian Groffen gentoo-dev 2014-03-11 12:26:23 UTC
Ok, I think it's a gdbm dependency.  During bootstrap I'd love to see Perl not relying on libs as much as possible.
Comment 4 Fabian Groffen gentoo-dev 2014-03-11 12:36:20 UTC
scratch that, it should already be off, it just seems like the perl build insists on using gdbm/db when it finds it
Comment 5 Ruud Koolen (RETIRED) archtester gentoo-dev Security 2014-03-12 07:13:28 UTC
Not quite -- it first searches for all libraries that it might possibly use, even when all modules using it are disabled, and then tests whether they work and fails to build if they don't.

A patch that mostly fixes this broken behavior is in the works, and will become active when perl-5.18.2 is unmasked.
Comment 6 Ruud Koolen (RETIRED) archtester gentoo-dev Security 2014-04-24 19:48:21 UTC
Fixed perl is in the tree by now.