LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 06-21-2007, 02:01 PM   #1
GATTACA
Member
 
Registered: Feb 2002
Location: USA
Distribution: Fedora, CENTOS
Posts: 201

Rep: Reputation: 32
Fedora 7 64bit /usr/lib/libexpat.so: could not read symbols: File in wrong format


I tried to compile Apache 2.2 from source on my Fedora 7 workstation (64bit install), and during the 'make' step I got this error message:
Code:
/usr/lib/libexpat.so: could not read symbols: File in wrong format
I'm making this post to help anyone else who might run into this problem.

The workaround that I used was to configure apache2 to use the built in expat libraries. So after you untar apache2 use this configure command:
Code:
./configure --with-expat=builtin
After that you should be able to do make and make install without problem.

HTH.
 
Old 06-21-2007, 07:47 PM   #2
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
The problem was that /usr/lib/libexpat.so is a 32-bit library, but you need to link with /usr/lib64/libexpat.so, the 64-bit counterpart. I think that deleting the file libtool before running ./configure might help with this, the hope being that a more appropriate version of libtool will be generated that knows to look in /usr/lib64. A more desperate strategy is to temporarily substitute the 64 bit libraries libexpat.* in /usr/lib64 for the 32 bit libraries in /usr/lib. (Or, of course, in this particular case, you can sidestep the issue.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
oops, I stripped /usr/lib and /usr/X11R6/lib ! H_TeXMeX_H Slackware 2 02-08-2007 09:27 PM
/usr/lib/libfontconfig.so: could not read symbols: File in wrong format TrekJunky Linux - Newbie 2 10-01-2006 06:05 PM
libexpat.so in wrong format when compiling Apache 2.2 under openSuSE 10 Basel Linux - Software 1 03-11-2006 12:49 AM
kdevelop, hello world, /usr/lib/libkdeui.so: could not read symbols: File in wrong fo runlevel: 6 Programming 2 05-04-2005 12:37 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM


All times are GMT -5. The time now is 08:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration