Skip Menu |
Report information
Id: 55980
Status: resolved
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: shanthi.m.srinivasan [at] convergys.com
Cc:
AdminCc:

Operating System: (no value)
PatchStatus: (no value)
Severity: low
Type: unknown
Perl Version: (no value)
Fixed In: (no value)



Subject: problem with miniperl
Date: Wed, 18 Jun 2008 12:42:48 +0530
To: perlbug [...] perl.org
From: shanthi.m.srinivasan [...] convergys.com
Download (untitled) / with headers
text/plain 1.4k

Hi,

I configured perl5.8.8 on Linux machine,

when I rum make getting the below error, I searched many sites but cannot get the solution.

Is there any solution
make : at the end


gcc -L/usr/local/lib64 -o miniperl \
            miniperlmain.o opmini.o libperl.a
libperl.a(pp.o): In function `Perl_pp_int':
pp.c:(.text+0x9681): undefined reference to `floor'
pp.c:(.text+0x96b5): undefined reference to `ceil'
libperl.a(pp.o): In function `Perl_pp_sqrt':
pp.c:(.text+0x9825): undefined reference to `sqrt'
libperl.a(pp.o): In function `Perl_pp_log':
pp.c:(.text+0x9924): undefined reference to `log'
libperl.a(pp.o): In function `Perl_pp_exp':
pp.c:(.text+0x9a95): undefined reference to `exp'
libperl.a(pp.o): In function `Perl_pp_cos':
pp.c:(.text+0x9da5): undefined reference to `cos'
libperl.a(pp.o): In function `Perl_pp_sin':
pp.c:(.text+0x9ef5): undefined reference to `sin'
libperl.a(pp.o): In function `Perl_pp_atan2':
pp.c:(.text+0xa0c5): undefined reference to `atan2'
libperl.a(pp.o): In function `Perl_pp_modulo':
pp.c:(.text+0xc64f): undefined reference to `floor'
pp.c:(.text+0xc697): undefined reference to `fmod'
pp.c:(.text+0xc8a5): undefined reference to `floor'
libperl.a(pp.o): In function `Perl_pp_pow':
pp.c:(.text+0xca48): undefined reference to `pow'
libperl.a(pp_pack.o): In function `S_pack_rec':
pp_pack.c:(.text+0x258d): undefined reference to `floor'
pp_pack.c:(.text+0x25cf): undefined reference to `floor'
collect2: ld returned 1 exit status
make: *** [miniperl] Error 1

Regards
Srini


CC: <bugs-bitbucket [...] netlabs.develooper.com>, <perl5-porters [...] perl.org>
Subject: RE: [perl #55980] problem with miniperl
Date: Wed, 18 Jun 2008 15:12:35 +0100
To: <shanthi.m.srinivasan [...] convergys.com>
From: "Robin Barker" <Robin.Barker [...] npl.co.uk>
Download (untitled) / with headers
text/plain 315b
Hi Your problem seems to be a missing maths library, perhaps a missing 64 bit maths library. Please run the ./myconfig shell script, and mail its output (with subject "RE: [perl #55980]") to perlbug@perl.org. This will allow us to see what libraries and flags your build was configured to use. Robin
CC: perlbug-followup [...] perl.org, bugs-bitbucket [...] netlabs.develooper.com
Subject: Re: [perl #55980] problem with miniperl
Date: Wed, 18 Jun 2008 16:40:43 +0200
To: perl5-porters [...] perl.org
From: "H.Merijn Brand" <h.m.brand [...] xs4all.nl>
Download (untitled) / with headers
text/plain 2.8k
On Wed, 18 Jun 2008 00:18:44 -0700, "shanthi.m.srinivasan@convergys.com (via RT)" <perlbug-followup@perl.org> wrote: Show quoted text
> # New Ticket Created by shanthi.m.srinivasan@convergys.com > # Please include the string: [perl #55980] > # in the subject line of all future correspondence about this issue. > # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=55980 > > > > Hi, > > I configured perl5.8.8 on Linux machine, > > when I rum make getting the below error, I searched many sites but cannot > get the solution.
Is that an AIX machine? Show quoted text
> Is there any solution
Install the correct libm.so, libm.sl, or libm.a If it is an AIX box, install this patch, and see if Configure exists nicely: --8<--- --- hints/aix.sh 2007-06-22 16:56:42 +0200 +++ hints/aix.sh.new 2008-04-29 17:47:47 +0200 @@ -80,6 +80,12 @@ EOF ;; esac + s=`lslpp -lc bos.adt.libm >/dev/null` +if [ $? != 0 ]; then + echo "You cannot build perl without the bos.adt.libm package installed" >&4 + exit + fi + # uname -m output is too specific and not appropriate here case "$archname" in '') archname="$osname" ;; -->8--- Show quoted text
> make : at the end > > > gcc -L/usr/local/lib64 -o miniperl \ > miniperlmain.o opmini.o libperl.a > libperl.a(pp.o): In function `Perl_pp_int': > pp.c:(.text+0x9681): undefined reference to `floor' > pp.c:(.text+0x96b5): undefined reference to `ceil' > libperl.a(pp.o): In function `Perl_pp_sqrt': > pp.c:(.text+0x9825): undefined reference to `sqrt' > libperl.a(pp.o): In function `Perl_pp_log': > pp.c:(.text+0x9924): undefined reference to `log' > libperl.a(pp.o): In function `Perl_pp_exp': > pp.c:(.text+0x9a95): undefined reference to `exp' > libperl.a(pp.o): In function `Perl_pp_cos': > pp.c:(.text+0x9da5): undefined reference to `cos' > libperl.a(pp.o): In function `Perl_pp_sin': > pp.c:(.text+0x9ef5): undefined reference to `sin' > libperl.a(pp.o): In function `Perl_pp_atan2': > pp.c:(.text+0xa0c5): undefined reference to `atan2' > libperl.a(pp.o): In function `Perl_pp_modulo': > pp.c:(.text+0xc64f): undefined reference to `floor' > pp.c:(.text+0xc697): undefined reference to `fmod' > pp.c:(.text+0xc8a5): undefined reference to `floor' > libperl.a(pp.o): In function `Perl_pp_pow': > pp.c:(.text+0xca48): undefined reference to `pow' > libperl.a(pp_pack.o): In function `S_pack_rec': > pp_pack.c:(.text+0x258d): undefined reference to `floor' > pp_pack.c:(.text+0x25cf): undefined reference to `floor' > collect2: ld returned 1 exit status > make: *** [miniperl] Error 1
-- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11, & 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org http://mirrors.develooper.com/hpux/ http://www.test-smoke.org http://www.goldmark.org/jeff/stupid-disclaimers/
CC: bugs-bitbucket [...] netlabs.develooper.com, perl5-porters [...] perl.org
Subject: RE: [perl #55980] problem with miniperl
Date: Thu, 19 Jun 2008 10:41:24 +0530
To: "Robin Barker" <Robin.Barker [...] npl.co.uk>, perlbug [...] perl.org
From: shanthi.m.srinivasan [...] convergys.com
Download (untitled) / with headers
text/plain 2.2k

Thanks for the support,

Attaching the output

gulch% ./myconfig
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=linux, osvers=2.6.18-8.el5, archname=x86_64-linux
    uname='linux gulch 2.6.18-8.el5 #1 smp fri jan 26 14:15:14 est 2007 x86_64 x86_64 x86_64 gnulinux '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFIL
E_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include'
    ccversion='', gccversion='4.1.1 20070105 (Red Hat 4.1.1-52)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=
    perllibs=
    libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.5'
  Dynamic Linking:
    dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags=''
    cccdlflags='', lddlflags=''

gulch% uname -a
Linux gulch 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64



Regards
S.Muthu.Srinivasan
VOIP :1.513-78-42562





"Robin Barker" <Robin.Barker@npl.co.uk>

06/18/2008 07:42 PM

To
Shanthi M Srinivasan/CIMG/CVG@CVG
cc
<bugs-bitbucket@netlabs.develooper.com>, <perl5-porters@perl.org>
Subject
RE: [perl #55980] problem with miniperl




Hi

Your problem seems to be a missing maths library, perhaps a missing 64 bit maths library.

Please run the ./myconfig shell script,
and mail its output (with subject "RE: [perl #55980]") to perlbug@perl.org.  
This will allow us to see what libraries and flags your build was configured to use.

Robin

CC: "Robin Barker" <Robin.Barker [...] npl.co.uk>, perlbug [...] perl.org, bugs-bitbucket [...] netlabs.develooper.com, perl5-porters [...] perl.org
Subject: Re: [perl #55980] problem with miniperl
Date: Fri, 20 Jun 2008 06:24:24 -0500
To: shanthi.m.srinivasan [...] convergys.com
From: "Steve Peters" <steve [...] fisharerojo.org>
Download (untitled) / with headers
text/plain 1.9k
On Thu, Jun 19, 2008 at 12:11 AM, <shanthi.m.srinivasan@convergys.com> wrote: Show quoted text
> Thanks for the support, > > Attaching the output > > gulch% ./myconfig > Summary of my perl5 (revision 5 version 8 subversion 8) configuration: > Platform: > osname=linux, osvers=2.6.18-8.el5, archname=x86_64-linux > uname='linux gulch 2.6.18-8.el5 #1 smp fri jan 26 14:15:14 est 2007 > x86_64 x86_64 x86_64 gnulinux ' > config_args='' > hint=recommended, useposix=true, d_sigaction=define > usethreads=undef use5005threads=undef useithreads=undef > usemultiplicity=undef > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=define use64bitall=define uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='cc', ccflags ='-fno-strict-aliasing -pipe > -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFIL > E_SOURCE -D_FILE_OFFSET_BITS=64', > optimize='-O2', > cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement > -I/usr/local/include' > ccversion='', gccversion='4.1.1 20070105 (Red Hat 4.1.1-52)', > gccosandvers='' > intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 > ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='ld', ldflags =' -L/usr/local/lib' > libpth=/usr/local/lib /lib /usr/lib > libs= > perllibs= > libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a > gnulibc_version='2.5' > Dynamic Linking: > dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags='' > cccdlflags='', lddlflags='' > > gulch% uname -a > Linux gulch 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 > >
OK, do you have a /usr/lib and a /usr/lib64 on that computer? Is there a libm in one or both of those directories? Steve Peters steve@fisharerojo.org
CC: perlbug-followup [...] perl.org
Subject: Re: [perl #55980] problem with miniperl
Date: Mon, 23 Jun 2008 08:31:23 -0500
To: shanthi.m.srinivasan [...] convergys.com
From: "Steve Peters" <steve [...] fisharerojo.org>
On Mon, Jun 23, 2008 at 1:16 AM, <shanthi.m.srinivasan@convergys.com> wrote: Show quoted text
> > Below are the files under /usr/lib and /usr/lib64 > > /usr/lib64 > gulch% ls libm* > libm.a libmagic.so.1.0.0 libmenuw.so.5 > libmetacity-private.so.0 libmp.so.3 > libmagic.a libmcheck.a libmenuw.so.5.5 > libmetacity-private.so.0.0.0 libmp.so.3.1.7 > libmagic.so libmenu.so.5 libmetacity-private.a libmng.so.1 > libm.so > libmagic.so.1 libmenu.so.5.5 libmetacity-private.so libmng.so.1.0.0 > > /usr/lib > gulch% ls libm* > libmenu.so.5 libmenu.so.5.5 libmenuw.so.5 libmenuw.so.5.5 > > Thanks > Muthu > > > > > > "Steve Peters via RT" <perlbug-followup@perl.org> > > 06/20/2008 04:55 PM > > Please respond to > perlbug-followup@perl.org > To > Shanthi M Srinivasan/CIMG/CVG@CVG > cc > Subject > Re: [perl #55980] problem with miniperl > > > > > On Thu, Jun 19, 2008 at 12:11 AM, <shanthi.m.srinivasan@convergys.com> > wrote:
>> Thanks for the support, >> >> Attaching the output >> >> gulch% ./myconfig >> Summary of my perl5 (revision 5 version 8 subversion 8) configuration: >> Platform: >> osname=linux, osvers=2.6.18-8.el5, archname=x86_64-linux >> uname='linux gulch 2.6.18-8.el5 #1 smp fri jan 26 14:15:14 est 2007 >> x86_64 x86_64 x86_64 gnulinux ' >> config_args='' >> hint=recommended, useposix=true, d_sigaction=define >> usethreads=undef use5005threads=undef useithreads=undef >> usemultiplicity=undef >> useperlio=define d_sfio=undef uselargefiles=define usesocks=undef >> use64bitint=define use64bitall=define uselongdouble=undef >> usemymalloc=n, bincompat5005=undef >> Compiler: >> cc='cc', ccflags ='-fno-strict-aliasing -pipe >> -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFIL >> E_SOURCE -D_FILE_OFFSET_BITS=64', >> optimize='-O2', >> cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement >> -I/usr/local/include' >> ccversion='', gccversion='4.1.1 20070105 (Red Hat 4.1.1-52)', >> gccosandvers='' >> intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 >> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 >> ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', >> lseeksize=8 >> alignbytes=8, prototype=define >> Linker and Libraries: >> ld='ld', ldflags =' -L/usr/local/lib' >> libpth=/usr/local/lib /lib /usr/lib >> libs= >> perllibs= >> libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a >> gnulibc_version='2.5' >> Dynamic Linking: >> dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags='' >> cccdlflags='', lddlflags='' >> >> gulch% uname -a >> Linux gulch 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 >> >>
> > OK, do you have a /usr/lib and a /usr/lib64 on that computer? Is > there a libm in one or both of those directories? > > Steve Peters > steve@fisharerojo.org > > >
OK, looking at your system, you have your libm in /usr/lib64, but only /usr/lib is included. I thought this problem had been handled in bleadperl at least by now. Let me check into that. Steve Peters steve@fisharerojo.org
Subject: Re: [perl #55980] problem with miniperl
Date: Mon, 23 Jun 2008 11:46:03 +0530
To: perlbug-followup [...] perl.org, steve [...] fisharerojo.org
From: shanthi.m.srinivasan [...] convergys.com
Download (untitled) / with headers
text/plain 2.6k
Below are the files under /usr/lib and /usr/lib64 /usr/lib64 gulch% ls libm* libm.a libmagic.so.1.0.0 libmenuw.so.5 libmetacity-private.so.0 libmp.so.3 libmagic.a libmcheck.a libmenuw.so.5.5 libmetacity-private.so.0.0.0 libmp.so.3.1.7 libmagic.so libmenu.so.5 libmetacity-private.a libmng.so.1 libm.so libmagic.so.1 libmenu.so.5.5 libmetacity-private.so libmng.so.1.0.0 /usr/lib gulch% ls libm* libmenu.so.5 libmenu.so.5.5 libmenuw.so.5 libmenuw.so.5.5 Thanks Muthu "Steve Peters via RT" <perlbug-followup@perl.org> 06/20/2008 04:55 PM Please respond to perlbug-followup@perl.org To Shanthi M Srinivasan/CIMG/CVG@CVG cc Subject Re: [perl #55980] problem with miniperl On Thu, Jun 19, 2008 at 12:11 AM, <shanthi.m.srinivasan@convergys.com> wrote: Show quoted text
> Thanks for the support, > > Attaching the output > > gulch% ./myconfig > Summary of my perl5 (revision 5 version 8 subversion 8) configuration: > Platform: > osname=linux, osvers=2.6.18-8.el5, archname=x86_64-linux > uname='linux gulch 2.6.18-8.el5 #1 smp fri jan 26 14:15:14 est 2007 > x86_64 x86_64 x86_64 gnulinux ' > config_args='' > hint=recommended, useposix=true, d_sigaction=define > usethreads=undef use5005threads=undef useithreads=undef > usemultiplicity=undef > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=define use64bitall=define uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='cc', ccflags ='-fno-strict-aliasing -pipe > -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFIL > E_SOURCE -D_FILE_OFFSET_BITS=64', > optimize='-O2', > cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement > -I/usr/local/include' > ccversion='', gccversion='4.1.1 20070105 (Red Hat 4.1.1-52)', > gccosandvers='' > intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 > ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='ld', ldflags =' -L/usr/local/lib' > libpth=/usr/local/lib /lib /usr/lib > libs= > perllibs= > libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a > gnulibc_version='2.5' > Dynamic Linking: > dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags='' > cccdlflags='', lddlflags='' > > gulch% uname -a > Linux gulch 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 > >
OK, do you have a /usr/lib and a /usr/lib64 on that computer? Is there a libm in one or both of those directories? Steve Peters steve@fisharerojo.org
CC: shanthi.m.srinivasan [...] convergys.com, perlbug-followup [...] perl.org
Subject: Re: [perl #55980] problem with miniperl
Date: Tue, 24 Jun 2008 12:51:50 -0400 (EDT)
To: Steve Peters <steve [...] fisharerojo.org>
From: Andy Dougherty <doughera [...] lafayette.edu>
Download (untitled) / with headers
text/plain 896b
On Mon, 23 Jun 2008, Steve Peters wrote: Show quoted text
> On Mon, Jun 23, 2008 at 1:16 AM, <shanthi.m.srinivasan@convergys.com> wrote:
> > > > Below are the files under /usr/lib and /usr/lib64 > >
Show quoted text
> OK, looking at your system, you have your libm in /usr/lib64, but only > /usr/lib is included. I thought this problem had been handled in > bleadperl at least by now. Let me check into that.
Yes, This problem is fixed in perl-5.10.0, which was released 6 months ago. If you still want to build 5.8.8 for some reason, the fix is easy. If you run Configure interactively, then when it prompts you Directories to use for library searches? [/usr/local/lib /lib /usr/lib] you can just add in /lib64 and /usr/lib64. If you want to do it from the Configure command line, you can do sh Configure -Dplibpth='/lib64 /usr/lib64' Hope this helps, -- Andy Dougherty doughera@lafayette.edu


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org