develooper Front page | perl.perl5.porters | Postings from September 2011

[perl #100374] Can't build 5.14.2 on Ubuntu 11.04 with user-installed gcc

From:
Robin Barker
Date:
September 29, 2011 07:42
Subject:
[perl #100374] Can't build 5.14.2 on Ubuntu 11.04 with user-installed gcc
Message ID:
rt-3.6.HEAD-31297-1317307327-1588.100374-75-0@perl.org
# New Ticket Created by  Robin Barker 
# Please include the string:  [perl #100374]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=100374 >


This is a bug report for perl from rmbarker.cpan@btinternet.com,
generated with the help of perlbug 1.39 running under perl 5.14.2.


-----------------------------------------------------------------
[Please describe your issue here]

When I try to build perl 5.14.2 on Ubuntu 11.04 and gcc 4.6
I get errors due to missing libm.so

I fixed this with Configure -Dplibpth=/usr/lib/i386-linux-gnu

The problem is because I have installed gcc 4.6 but this does 
not find find /usr/lib/i386-linux-gnu with gcc -print-search-dirs

This is fixed in blead with commit dcffd848632a and I think this
should be cherry-picked for maint-5.14

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=install
    severity=medium
---
Site configuration information for perl 5.14.2:

Configured by robin at Wed Sep 28 00:38:43 BST 2011.

Summary of my perl5 (revision 5 version 14 subversion 2) configuration:
  Commit id: dc281e6088d189558b79a5121119b7196c8b3db0
  Platform:
    osname=linux, osvers=2.6.38-11-generic, archname=i686-linux-64int
    uname='linux spade-ubuntu 2.6.38-11-generic #50-ubuntu smp mon sep
12 21:18:14 utc 2011 i686 i686 i386 gnulinux '
    config_args='-des -Dcc=gcc -Doptimize=-O2
-Wno-unused-but-set-variable -DDEBUGGING -Duse64bitint -Dman3dir=none
-Dcf_email=rmbarker.cpan@btinternet.com
-Dplibpth=/usr/lib/i386-linux-gnu'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-DDEBUGGING -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O2 -Wno-unused-but-set-variable -g',
    cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include'
    ccversion='', gccversion='4.6.1', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -fstack-protector -L/usr/local/lib'

libpth=/usr/local/lib /usr/lib/i386-linux-gnu /lib /usr/lib /usr/lib64
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.13'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2
-Wno-unused-but-set-variable -g -L/usr/local/lib -fstack-protector'

Locally applied patches:
    

---
@INC for perl 5.14.2:
    /usr/local/lib/perl5/site_perl/5.14.2/i686-linux-64int
    /usr/local/lib/perl5/site_perl/5.14.2
    /usr/local/lib/perl5/5.14.2/i686-linux-64int
    /usr/local/lib/perl5/5.14.2
    /usr/local/lib/perl5/site_perl/5.14.1/i686-linux-64int
    /usr/local/lib/perl5/site_perl/5.14.1
    /usr/local/lib/perl5/site_perl/5.14.0/i686-linux-64int
    /usr/local/lib/perl5/site_perl/5.14.0
    /usr/local/lib/perl5/site_perl/5.12.3
    /usr/local/lib/perl5/site_perl/5.12.1
    /usr/local/lib/perl5/site_perl/5.12.0
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl 5.14.2:
    HOME=/home/robin
    LANG=en_GB.UTF-8
    LANGUAGE=en_GB:en
    LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/lib/i386-linux-gnu
    LOGDIR (unset)

PATH=/home/robin/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh




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