mod_perl-2.0.4 for Apache httpd-2.2.17 on Solaris10 64bit - ld: wrongELF class: ELFCLASS64 - CC=&qu
am 08.12.2010 14:25:39 von kamil.stas--Boundary_(ID_YmQ5nFo2KmtkEIU/fbSAGQ)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Hello,
I am trying to compile mod_perl-2.0.4 for Apache httpd-2.2.17 on Solaris10 SunOS 5.10 Generic_141414-10 sun4v sparc SUNW,SPARC-Enterprise-T5120
I am facing ld: wrong ELF class: ELFCLASS64 problem.
Everyting was compiled in m -64 mode, generated .so 64bit, with export CC="gcc -m64"
When compiling mod_perl it looks its trying to compile in 32bit mode, dont understand why.
How to forse it to compile in 64bit mode? Till now gcc -m64 was good to use, with exported LD_LIBRARY_PATH and PATH for sparcv9
CFLAGS="-L/usr/sfw/lib/sparcv9 -R/usr/sfw/lib/sparcv9"
Perl Version: perl-5.12.2
Can you advise, please?
No error log under t/logs/error_log
ld: fatal: file /pkg/products/httpd_test/httpd/httpd-2.2.17a/apr-util//lib/l ibaprutil-1.so: wrong ELF class: ELFCLASS64
ld: fatal: file /pkg/products/httpd_test/httpd/httpd-2.2.17a/apr-util//lib/l ibexpat.so: wrong ELF class: ELFCLASS64
ld: fatal: file /pkg/products/httpd_test/httpd/httpd-2.2.17a/apr/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 /home/admin/kstas/httpd/modules/mod_perl/mod_perl-2.0.4/xs/A PR/APR
*** Error code 1
The following command caused the error:
cd APR && make -f Makefile all LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-fPIC" PREFIX="/pkg/products/perl/perl-5.12.2" PASTHRU_INC=""
make: Fatal error: Command failed for target `subdirs'
Current working directory /home/admin/kstas/httpd/modules/mod_perl/mod_perl-2.0.4/xs/A PR
*** Error code 1
The following command caused the error:
cd APR && make -f Makefile all LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-fPIC" PREFIX="/pkg/products/perl/perl-5.12.2" PASTHRU_INC=""
make: Fatal error: Command failed for target `subdirs'
Current working directory /home/admin/kstas/httpd/modules/mod_perl/mod_perl-2.0.4/xs
*** Error code 1
The following command caused the error:
cd xs && make -f Makefile all LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-fPIC" PREFIX="/pkg/products/perl/perl-5.12.2" PASTHRU_DEFINE="" PASTHRU_INC="" PERL="/pkg/products/perl/perl-5.12.2/bin/perl" DEFINE="-DMP_HAVE_APR_LIBS"
make: Fatal error: Command failed for target `subdirs'
--Boundary_(ID_YmQ5nFo2KmtkEIU/fbSAGQ)
Content-type: text/html; charset=us-ascii
Content-transfer-encoding: quoted-printable
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" xmlns:p=3D"urn:schemas-m=
icrosoft-com:office:powerpoint" xmlns:a=3D"urn:schemas-microsoft-com:office=
:access" xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s=3D"=
uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs=3D"urn:schemas-microsof=
t-com:rowset" xmlns:z=3D"#RowsetSchema" xmlns:b=3D"urn:schemas-microsoft-co=
m:office:publisher" xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadshee=
t" xmlns:c=3D"urn:schemas-microsoft-com:office:component:spread sheet" xmlns=
:odc=3D"urn:schemas-microsoft-com:office:odc" xmlns:oa=3D"urn:schemas-micro=
soft-com:office:activation" xmlns:html=3D"http://www.w3.org/TR/REC-html40" =
xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc=3D"http://m=
icrosoft.com/officenet/conferencing" xmlns:D=3D"DAV:" xmlns:Repl=3D"http://=
schemas.microsoft.com/repl/" xmlns:mt=3D"http://schemas.microsoft.com/share=
point/soap/meetings/" xmlns:x2=3D"http://schemas.microsoft.com/office/excel=
/2003/xml" xmlns:ppda=3D"http://www.passport.com/NameSpace.xsd" xmlns:ois=
=3D"http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir=3D"http://=
schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds=3D"http://www.w3=
..org/2000/09/xmldsig#" xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint=
/dsp" xmlns:udc=3D"http://schemas.microsoft.com/data/udc" xmlns:xsd=3D"http=
://www.w3.org/2001/XMLSchema" xmlns:sub=3D"http://schemas.microsoft.com/sha=
repoint/soap/2002/1/alerts/" xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#"=
xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" xmlns:sps=3D"http://=
schemas.microsoft.com/sharepoint/soap/" xmlns:xsi=3D"http://www.w3.org/2001=
/XMLSchema-instance" xmlns:udcs=3D"http://schemas.microsoft.com/data/udc/so=
ap" xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile " xmlns:udc=
p2p=3D"http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf=3D"http:/=
/schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss=3D"http://sche=
mas.microsoft.com/office/2006/digsig-setup" xmlns:dssi=3D"http://schemas.mi=
crosoft.com/office/2006/digsig" xmlns:mdssi=3D"http://schemas.openxmlformat=
s.org/package/2006/digital-signature" xmlns:mver=3D"http://schemas.openxmlf=
ormats.org/markup-compatibility/2006" xmlns:m=3D"http://schemas.microsoft.c=
om/office/2004/12/omml" xmlns:mrels=3D"http://schemas.openxmlformats.org/pa=
ckage/2006/relationships" xmlns:spwp=3D"http://microsoft.com/sharepoint/web=
partpages" xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/service s/20=
06/types" xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/service s/200=
6/messages" xmlns:pptsl=3D"http://schemas.microsoft.com/sharepoint/soap/ Sli=
deLibrary/" xmlns:spsl=3D"http://microsoft.com/webservices/SharePointPor tal=
Server/PublishedLinksService" xmlns:Z=3D"urn:schemas-microsoft-com:" xmlns:=
st=3D"" xmlns=3D"http://www.w3.org/TR/REC-html40">
>
Hello,
I am trying to compile mod_perl-2.0.4 for Apache
httpd-2.2.17 on Solaris10 SunOS 5.10 Generic_141414-10 sun4v sparc
SUNW,SPARC-Enterprise-T5120
I am facing ld: wrong ELF class: ELFCLASS64 probl=
em.
Everyting was compiled in m -64 mode, generated .so 64=
bit,
with export CC=3D"gcc -m64"
When compiling mod_perl it looks its trying to compile=
in
32bit mode, dont understand why.
How to forse it to compile in 64bit mode? Till now gcc=
-m64
was good to use, with exported LD_LIBRARY_PATH and PATH for sparcv9
CFLAGS=3D“-L/usr/sfw/lib/sparcv9
-R/usr/sfw/lib/sparcv9“
Perl Version: perl-5.12.2
Can you advise, please?
No error log under t/logs/error_log
ld: fatal: file
/pkg/products/httpd_test/httpd/httpd-2.2.17a/apr-util//lib/l ibaprutil-1.so:
wrong ELF class: ELFCLASS64
ld: fatal: file
/pkg/products/httpd_test/httpd/httpd-2.2.17a/apr-util//lib/l ibexpat.so: wro=
ng
ELF class: ELFCLASS64
ld: fatal: file
/pkg/products/httpd_test/httpd/httpd-2.2.17a/apr/lib/libapr- 1.so: wrong ELF
class: ELFCLASS64
ld: fatal: File processing errors. No output written t=
o
.../../../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 /home/admin/kstas/httpd/modu=
les/mod_perl/mod_perl-2.0.4/xs/APR/APR
*** Error code 1
The following command caused the error:
cd APR && make -f Makefile all
LIBPERL_A=3D"libperl.a" LINKTYPE=3D"dynamic"
OPTIMIZE=3D"-fPIC" PREFIX=3D"/pkg/products/perl/perl-5.12.2&=
quot;
PASTHRU_INC=3D""
make: Fatal error: Command failed for target `subdirs'=
Current working directory
/home/admin/kstas/httpd/modules/mod_perl/mod_perl-2.0.4/xs/A PR
p>
*** Error code 1
The following command caused the error:
cd APR && make -f Makefile all LIBPERL_A=3D&qu=
ot;libperl.a"
LINKTYPE=3D"dynamic" OPTIMIZE=3D"-fPIC"
PREFIX=3D"/pkg/products/perl/perl-5.12.2" PASTHRU_INC=3D"&qu=
ot;
make: Fatal error: Command failed for target `subdirs'=
Current working directory
/home/admin/kstas/httpd/modules/mod_perl/mod_perl-2.0.4/xs
*** Error code 1
The following command caused the error:
cd xs && make -f Makefile all
LIBPERL_A=3D"libperl.a" LINKTYPE=3D"dynamic"
OPTIMIZE=3D"-fPIC" PREFIX=3D"/pkg/products/perl/perl-5.12.2&=
quot;
PASTHRU_DEFINE=3D"" PASTHRU_INC=3D"" PERL=3D"/pkg/=
products/perl/perl-5.12.2/bin/perl"
DEFINE=3D"-DMP_HAVE_APR_LIBS"
make: Fatal error: Command failed for target `subdirs'=
--Boundary_(ID_YmQ5nFo2KmtkEIU/fbSAGQ)--