Skip Menu |
Report information
Id: 132954
Status: open
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: Ravi.Avireneni [at] sita.aero
Cc:
AdminCc:

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



To: "perlbug [...] perl.org" <perlbug [...] perl.org>
From: Ravi Avireneni <Ravi.Avireneni [...] sita.aero>
Subject: Regarding Perl installation
Date: Thu, 8 Mar 2018 12:56:34 +0000
CC: DataCenter Weblogic Support <DataCenter.Weblogic.Support [...] sita.aero>
Download (untitled) / with headers
text/plain 4.2k
Download (untitled) / with headers
text/html 13.3k

Hi,

 

OS is SunOS uamqmyy002l 5.10 Generic_150400-21 sun4v sparc sun4v.

 

Our apache version is 2.4.29

 

We are trying to install perl and mod and perl but we are getting errors while installing perl itself, while doing make test throwing below error.

 

Perl version we are installing is perl-5.26.1.

 

Steps we did to install perl

 

Downloaded from perl version perl-5.26.1.tar from http://www.cpan.org/src/README.html

 

Untar perl

 

Run below command to install perl

 

/Configure -des -Dprefix=/www/perl/perl-5.26.1 -Dcc=gcc -Dusethreads -A ccflags=-fPIC

 

I tried setting below environment variables but no use.

 

export LDFLAGS=" -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/X/lib -R/usr/X/lib -L/usr/X11/lib -R/usr/X11/lib -L/usr/ccs/lib -R/usr/ccs/lib "

export PATH=/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/sfw/sbin

export LD_LIBRARY_PATH=/usr/lib:/usr/sfw/lib

export LD_LIBRARY_PATH_64=/usr/lib/sparcv9:/usr/lib/64:/usr/sfw/lib/64

export CC=gcc

export CFLAGS=-m64

export CPP_FLAGS=-m64

 

 

 

lib/warnings ................................................... ok

Failed 1 test out of 2437, 99.96% okay.

        ../ext/POSIX/t/math.t

### Since not all tests were successful, you may want to run some of

### them individually and examine any diagnostic messages they produce.

### See the INSTALL document's section on "make test".

### You have a good chance to get more information by running

###   ./perl harness

### in the 't' directory since most (>=80%) of the tests succeeded.

### You may have to set your dynamic library search path,

### LD_LIBRARY_PATH, to point to the build directory:

###   setenv LD_LIBRARY_PATH `pwd`:$LD_LIBRARY_PATH; cd t; ./perl harness

###   LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd t; ./perl harness

###   export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH; cd t; ./perl harness

### for csh-style shells, like tcsh; or for traditional/modern

### Bourne-style shells, like bash, ksh, and zsh, respectively.

Elapsed: 4384 sec

u=57.06  s=13.27  cu=3401.84  cs=167.87  scripts=2437  tests=1243077

*** Error code 1

make: Fatal error: Command failed for target `test'

[root@uamqmyy002l]#

 

I have taken perl harness report I did not see any  failed errors report  no use.

 

Note: I am able to install perl with lower version perl-5.20.0 without any problem, but getting errors while building mod_perl.so. Mod_perl.so we are trying to compile is mod_perl-2.0.10.tar.

 

\

   -L/www/apache_2.4.29/lib -laprutil-1 -lexpat -L/www/apache_2.4.29/lib -lapr-1 -luuid -lsendfile -lrt -lsocket -lnsl -lpthread        \

 

ld: fatal: file /www/apache_2.4.29/lib/libaprutil-1.so: wrong ELF class: ELFCLASS64

ld: fatal: file /www/apache_2.4.29/lib/libapr-1.so: wrong ELF class: ELFCLASS64

ld: fatal: file processing errors. No output written to ../../../blib/arch/auto/APR/APR.so

collect2: ld returned 1 exit status

*** Error code 1

make: Fatal error: Command failed for target `../../../blib/arch/auto/APR/APR.so'

Current working directory /www/mod_perl-2.0.10/xs/APR/APR

*** Error code 1

 

I checked the files are they compiling  with 64 bit or 32 bit they are compiling with 64 bit.

 

libaprutil-1.so:        ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped, no debugging information available

[sramireddy@uamqmyy002l]$ file libapr-1.so.0

libapr-1.so.0:  ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped, no debugging information available

 

My collogue send me below matrix of perl compatibility.

mod_perl 2.0.8 and older support neither Apache 2.4 nor Perl 5.22 and newer.

mod_perl 2.0.9 added support for Apache 2.4, but did not support Perl 5.22.

mod_perl 2.0.10 also added support for Perl 5.22 and newer.

 

 

Please help me resolve above perl issue first .

 

 

Thanks and Regrads

Ravi Teja

 

 

Confidential Communication: The contents of this e-mail including any attachment are confidential and intended solely for the person(s) to whom they are addressed. Any reader of this email who is not the intended recipient is notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete all copies from your computer system. Subsequent alterations to this email after its transmission will be disregarded.
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 3.4k
On Thu, 08 Mar 2018 12:56:59 GMT, Ravi.Avireneni@sita.aero wrote: Show quoted text
> Hi, > > OS is SunOS uamqmyy002l 5.10 Generic_150400-21 sun4v sparc sun4v.
Thank you for this report. Unfortunately, as you can see from a search at http://perl5.test-smoke.org/search, we have not gotten smoke test reports for perl on SunOS for several years. Nevertheless, we will try our best to assist you. Show quoted text
> > Our apache version is 2.4.29 > > We are trying to install perl and mod and perl but we are getting > errors while installing perl itself, while doing make test throwing > below error. >
Note that in this response I won't touch upon your mod_perl issues, as mod_perl is outside the Perl 5 core distribution and not maintained by Perl 5 Porters. Show quoted text
> Perl version we are installing is perl-5.26.1. > > Steps we did to install perl > > Downloaded from perl version perl-5.26.1.tar from > http://www.cpan.org/src/README.html > > Untar perl > > Run below command to install perl > > /Configure -des -Dprefix=/www/perl/perl-5.26.1 -Dcc=gcc -Dusethreads > -A ccflags=-fPIC >
I believe it is customary not to have whitespace between '-A' and 'ccflags'. This probably is not the source of your problem, but you may want to try it with the space closed up. Show quoted text
> I tried setting below environment variables but no use. > > export LDFLAGS=" -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/X/lib > -R/usr/X/lib -L/usr/X11/lib -R/usr/X11/lib -L/usr/ccs/lib > -R/usr/ccs/lib " > export PATH=/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/sfw/sbin > export LD_LIBRARY_PATH=/usr/lib:/usr/sfw/lib > export LD_LIBRARY_PATH_64=/usr/lib/sparcv9:/usr/lib/64:/usr/sfw/lib/64 > export CC=gcc > export CFLAGS=-m64 > export CPP_FLAGS=-m64 > > > > lib/warnings ................................................... ok > Failed 1 test out of 2437, 99.96% okay. > ../ext/POSIX/t/math.t > ### Since not all tests were successful, you may want to run some of > ### them individually and examine any diagnostic messages they > produce. > ### See the INSTALL document's section on "make test". > ### You have a good chance to get more information by running > ### ./perl harness > ### in the 't' directory since most (>=80%) of the tests succeeded. > ### You may have to set your dynamic library search path, > ### LD_LIBRARY_PATH, to point to the build directory: > ### setenv LD_LIBRARY_PATH `pwd`:$LD_LIBRARY_PATH; cd t; ./perl > harness > ### LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; > cd t; ./perl harness > ### export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH; cd t; ./perl > harness > ### for csh-style shells, like tcsh; or for traditional/modern > ### Bourne-style shells, like bash, ksh, and zsh, respectively. > Elapsed: 4384 sec > u=57.06 s=13.27 cu=3401.84 cs=167.87 scripts=2437 tests=1243077 > *** Error code 1 > make: Fatal error: Command failed for target `test' > [root@uamqmyy002l]# >
If you got this far, then you built perl-5.26.1 successfully, but one test file has failed. That's actually quite a good result for an operating system we haven't been tested on in five years. In the directory where you built perl-5.26.1, please try: $> cd t; ./perl harness -v ../ext/POSIX/t/math.t; cd - ... then send the output as an attachment to your response. Show quoted text
> I have taken perl harness report I did not see any failed errors > report no use. > > [skipping discussion of mod_perl problems]
Show quoted text
> > > Please help me resolve above perl issue first . > > > Thanks and Regrads > Ravi Teja >
Thank you very much. -- James E Keenan (jkeenan@cpan.org)
Date: Thu, 8 Mar 2018 11:00:23 -0600
Subject: Re: [perl #132954] Regarding Perl installation
From: "Craig A. Berry" <craig.a.berry [...] gmail.com>
CC: "Perl5 Porters (E-mail)" <perl5-porters [...] perl.org>
To: Craig Berry via RT <perlbug-followup [...] perl.org>
Download (untitled) / with headers
text/plain 630b
On Thu, Mar 8, 2018 at 9:27 AM, James E Keenan via RT <perlbug-followup@perl.org> wrote: Show quoted text
> On Thu, 08 Mar 2018 12:56:59 GMT, Ravi.Avireneni@sita.aero wrote:
Show quoted text
> In the directory where you built perl-5.26.1, please try: > > $> cd t; ./perl harness -v ../ext/POSIX/t/math.t; cd - > > ... then send the output as an attachment to your response.
Show quoted text
>> I have taken perl harness report I did not see any failed errors >> report no use.
I took this to mean that he already tried harness and the test does not fail under harness. So it might be more instructive to see the output of: $ cd t; ./perl TEST -v ../ext/POSIX/t/math.t; cd -
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 370b
On Thu, 08 Mar 2018 04:56:59 -0800, Ravi.Avireneni@sita.aero wrote: Show quoted text
> Run below command to install perl > > /Configure -des -Dprefix=/www/perl/perl-5.26.1 -Dcc=gcc -Dusethreads > -A ccflags=-fPIC
I expect adding -Duse64bitall will fix your errors linking with the apache libraries. I don't expect it to fix the math.t failure, we need more information for that. Tony


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