Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding Perl installation #16458

Open
p5pRT opened this issue Mar 8, 2018 · 5 comments
Open

Regarding Perl installation #16458

p5pRT opened this issue Mar 8, 2018 · 5 comments

Comments

@p5pRT
Copy link

p5pRT commented Mar 8, 2018

Migrated from rt.perl.org#132954 (status was 'open')

Searchable as RT132954$

@p5pRT
Copy link
Author

p5pRT commented Mar 8, 2018

From Ravi.Avireneni@sita.aero

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.

@p5pRT
Copy link
Author

p5pRT commented Mar 8, 2018

From @jkeenan

On Thu, 08 Mar 2018 12​:56​:59 GMT, Ravi.Avireneni@​sita.aero wrote​:

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.

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.

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.

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.

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

[skipping discussion of mod_perl problems]

Please help me resolve above perl issue first .

Thanks and Regrads
Ravi Teja

Thank you very much.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Mar 8, 2018

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Mar 8, 2018

From @craigberry

On Thu, Mar 8, 2018 at 9​:27 AM, James E Keenan via RT
<perlbug-followup@​perl.org> wrote​:

On Thu, 08 Mar 2018 12​:56​:59 GMT, Ravi.Avireneni@​sita.aero wrote​:

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.

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 -

@p5pRT
Copy link
Author

p5pRT commented Mar 12, 2018

From @tonycoz

On Thu, 08 Mar 2018 04​:56​:59 -0800, Ravi.Avireneni@​sita.aero wrote​:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants