Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531058 - dev-lang/perl-5.24.0-r1 with USE=-gdbm still tries to use gdbm (and fails during configure phase on multilib portage)
Summary: dev-lang/perl-5.24.0-r1 with USE=-gdbm still tries to use gdbm (and fails dur...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: perl-5.24
  Show dependency tree
 
Reported: 2014-11-28 22:56 UTC by Thomas Sachau
Modified: 2017-03-24 20:07 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 Thomas Sachau gentoo-dev 2014-11-28 22:56:38 UTC
on request by dilfridge, this is a minimal reminder bug, just some basic details:

compiled perl with multilib-portage for x86, gdbm was only installed for amd64, so it may be detected, but not used for linking, as seen in the configure output:

What installation prefix should I use for installing files? (~name ok) [/usr]  
Getting the current patchlevel...
Build a threading Perl? [n]  
Build Perl for multiplicity? [n]  
Use which C compiler? [x86_64-pc-linux-gnu-gcc]  
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
Directories to use for library searches? [/usr/local/lib32 /lib32 /usr/lib32 /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include-fixed /usr/lib /lib/../lib32 /usr/lib/../lib32 /lib]  
What is the file extension used for shared libraries? [so]  
Make shared library basenames unique? [n]  
Build Perl for SOCKS? [n]  
Try to use long doubles if available? [n]  
Checking for optional libraries...
What libraries to use? [-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat]  
What optimizer/debugger flag should be used? [-march=native -O2 -pipe -ggdb -m32]  
Any additional cc flags? [-fwrapv -fno-strict-aliasing -pipe]  
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)? [-Wl,--as-needed -Wl,--hash-style=gnu -m32]  
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:

        x86_64-pc-linux-gnu-gcc -o try -march=native -O2 -pipe -ggdb -m32 -fwrapv -fno-strict-aliasing -pipe -Wl,--as-needed -Wl,--hash-style=gnu -m32 try.c -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
         ./try

and I got the following output:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../libgdbm.so when searching for -lgdbm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libgdbm.so when searching for -lgdbm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgdbm
collect2: error: ld returned 1 exit status
I can't compile the test program.
You have a BIG problem.  Shall I abort Configure [y]  
Ok.  Stopping Configure.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2016-10-02 15:44:56 UTC
Confirmed for 5.24.0-r1
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2017-01-05 20:23:46 UTC
This might be fixed by commit f0ea8f639d34f881b8325dfa4b8c7d2d876915c4
 - could you please test again? Any of 

 dev-lang/perl/perl-5.22.3_rc4.ebuild | 4 +++-
 dev-lang/perl/perl-5.24.0-r2.ebuild  | 4 +++-
 dev-lang/perl/perl-5.24.1_rc4.ebuild | 4 +++-
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2017-03-24 20:07:17 UTC
(In reply to Andreas K. Hüttel from comment #2)
> This might be fixed by commit f0ea8f639d34f881b8325dfa4b8c7d2d876915c4
>  - could you please test again? Any of 
> 
>  dev-lang/perl/perl-5.22.3_rc4.ebuild | 4 +++-
>  dev-lang/perl/perl-5.24.0-r2.ebuild  | 4 +++-
>  dev-lang/perl/perl-5.24.1_rc4.ebuild | 4 +++-

Definitively fixed for dev-lang/perl-5.24.1-r1