/usr/lib/libexpat.so: could not read symbols: File in wrong format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

We are having Apache 2.2.9 installed on a Red Hat 64-bit machine. 

I get an error when attempting to:

cpan> install Apache2::Request

The error is:

=============================
gcc -shared  .libs/util.o .libs/version.o .libs/cookie.o .libs/param.o .libs/parser.o .libs/parser_urlencoded.o .libs/parser_header.o .libs/parser_multipart.o .libs/module.o .libs/module_custom.o .libs/module_cgi.o 
.libs/error.o  -Wl,--rpath -Wl,/usr/local/apache2/lib -Wl,--rpath -Wl,/usr/local/apache2/lib /usr/local/apache2/lib/libapr-1.so /usr/local/apache2/lib/libaprutil-1.so -L/usr/lib64 -L/usr/local/apache2/lib /usr/lib/libexpat.so 
-luuid -lrt -lcrypt -lpthread -ldl  -Wl,-soname -Wl,libapreq2.so.3 -o .libs/libapreq2.so.3.6.0
/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [libapreq2.la] Error 1
make[2]: Leaving directory `/root/.cpan/build/libapreq2-2.08-h8GWKD/library'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/.cpan/build/libapreq2-2.08-h8GWKD/library'
make: *** [all-recursive] Error 1
=============================

I went looking for it on google and if I understand correctly then this is 
looking at the wrong library, it uses the 32bit  (/usr/lib/libexpat.so) 
instead of 64bit version of it (/usr/lib64/libexpat.so).

I tried various command line flags when running the ./configure file (directly 
from the /root/.cpan/build/... directory). For 
example --with-expat=xml/expat, --with-expat=builtin, --enable-lib64 --with-expat=/usr/lib64/...

I always get exactly the same error as above. 

I also saw this patch:
    
http://blog.chaos-co.de/index.php?/archives/2-Apache-patch-for-libexpat.so-could-not-read-symbols-File-in-wrong-format.html

However the link to the Apache 2.2.4 version is dead and I am running 2.2.9.

Thanks in advance for any help.

Regards

Bianca
-- 
Unisolve Pty Ltd - 
Melbourne Australia
Ph +61 3 9568 2005

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux