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

[perl #129368] Error while trying to install perl 5.8.7 on RHEL 6

Thread Previous | Thread Next
From:
absouthpoint .
Date:
September 27, 2016 05:27
Subject:
[perl #129368] Error while trying to install perl 5.8.7 on RHEL 6
Message ID:
rt-4.0.24-15519-1474953671-766.129368-75-0@perl.org
# New Ticket Created by  absouthpoint . 
# Please include the string:  [perl #129368]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=129368 >


Hello,


            My name is Avik. I am from India. I work as a junior system
administrator. I am trying to install *perl 5.8.7 on Red Hat Linux *
*6 *. I am trying to compile it from source. My configuration is as follows
(I got this after running *.\myconfig* in the perl5.8.7 folder).



*Summary of my perl5 (revision 5 version 8 subversion 7) configuration:*
*  Platform:*
*    osname=linux, osvers=2.6.32-504.el6.x86_64, archname=x86_64-linux*
*    uname='linux localhost.localdomain 2.6.32-504.el6.x86_64 #1 smp tue
sep 16 01:56:35 edt 2014 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 -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',*
*    optimize='-O2',*
*    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include
-I/usr/include/gdbm'*
*    ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-11)',
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.12.so <http://libc-2.12.so>, so=so, useshrplib=false,
libperl=libperl.a*
*    gnulibc_version='2.12'*
*  Dynamic Linking:*
*    dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags=''*
*    cccdlflags='', lddlflags=''*



         Initially I was getting the following error while running the make
command .

make: *** No rule to make target `<command-line>', needed
by`miniperlmain.o'.


      So I commented all the lines containg the word <command-line> in the
makefile in the perl5.8.7 directory and also in the makefile in

the x2p subdirecotory under perl5.8.7. After this *I was able to get around
the above error.*

       But now I am getting *a new error* while running the make command.



*Error*

*cc -L/usr/local/lib -o miniperl \*
*    miniperlmain.o opmini.o libperl.a *
*libperl.a(pp.o): In function `Perl_pp_int':*
*pp.c:(.text+0x9e61): undefined reference to `floor'*
*pp.c:(.text+0x9e81): undefined reference to `ceil'*
*libperl.a(pp.o): In function `Perl_pp_sqrt':*
*pp.c:(.text+0x9fe1): undefined reference to `sqrt'*
*libperl.a(pp.o): In function `Perl_pp_log':*
*pp.c:(.text+0xa0e9): undefined reference to `log'*
*libperl.a(pp.o): In function `Perl_pp_exp':*
*pp.c:(.text+0xa273): undefined reference to `exp'*
*libperl.a(pp.o): In function `Perl_pp_cos':*
*pp.c:(.text+0xa5b3): undefined reference to `cos'*
*libperl.a(pp.o): In function `Perl_pp_sin':*
*pp.c:(.text+0xa713): undefined reference to `sin'*
*libperl.a(pp.o): In function `Perl_pp_atan2':*
*pp.c:(.text+0xa8ed): undefined reference to `atan2'*
*libperl.a(pp.o): In function `Perl_pp_modulo':*
*pp.c:(.text+0xcd94): undefined reference to `floor'*
*pp.c:(.text+0xcdca): undefined reference to `floor'*
*pp.c:(.text+0xce2e): undefined reference to `fmod'*
*libperl.a(pp.o): In function `Perl_pp_pow':*
*pp.c:(.text+0xd48e): undefined reference to `pow'*
*libperl.a(pp_pack.o): In function `S_pack_rec':*
*pp_pack.c:(.text+0x23fc): undefined reference to `floor'*
*pp_pack.c:(.text+0x242f): undefined reference to `floor'*
*collect2: ld returned 1 exit status*
*make: *** [miniperl] Error 1*

     can you please help me out?


Thanks ,
Avik.


Thread Previous | Thread Next


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