LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   libexpat.so in wrong format when compiling Apache 2.2 under openSuSE 10 (https://www.linuxquestions.org/questions/linux-software-2/libexpat-so-in-wrong-format-when-compiling-apache-2-2-under-opensuse-10-a-423414/)

Basel 03-10-2006 02:29 AM

libexpat.so in wrong format when compiling Apache 2.2 under openSuSE 10
 
Hello,

What could have caused libexapt.so to be in a wrong format? I downloaded httpd-2.2.0.tar.bz2 from apache in order to install Apache 2.2 but trying to run 'make' after a simple configuration causes the error shown below:

Code:

/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [libaprutil-1.la] Error 1
make[3]: Leaving directory `/home/basel/temp/httpd-2.2.0/srclib/apr-util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/basel/temp/httpd-2.2.0/srclib/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/basel/temp/httpd-2.2.0/srclib'
make: *** [all-recursive] Error 1

basel@linux:~/temp/httpd-2.2.0> file -i /usr/lib/libexpat.so
/usr/lib/libexpat.so: application/x-not-regular-file
basel@linux:~> ls -l /usr/lib/libexpat.so
lrwxrwxrwx  1 root root 17 2006-03-10 11:08 /usr/lib/libexpat.so -> libexpat.so.0.5.0
basel@linux:~> ls -l /usr/lib/libexpat.so.0.5.0
-rwxr-xr-x  1 root root 127428 2005-09-09 19:05 /usr/lib/libexpat.so.0.5.0
basel@linux:~> file -i /usr/lib/libexpat.so.0.5.0
/usr/lib/libexpat.so.0.5.0: application/x-sharedlib, stripped
basel@linux:~>

I have both expat and expat-32bit installed under the 64 bit version of openSuSE 10. I did an update of these two packages under Yast but the error still shows up.

paulsm4 03-11-2006 12:49 AM

You answered your own question: your /usr/lib/libexpat.so is probably a 64-bit library, and it sounds like Apache wants a 32-bit ELF file. Or maybe vice versa.

The first step in building Apache after you download the source is to run "configure". There are certainly options for controlling 32-bit vs 64-bit, and for controlling which directory it will search for libraries.

'Hope that helps .. PSM


All times are GMT -5. The time now is 12:17 AM.