- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: /usr/lib/libexpat.so: could not read symbols: ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2007 07:35 PM
тАО04-24-2007 07:35 PM
/usr/lib/libexpat.so: could not read symbols: File in wrong format
I am getting the following error while building apache 2059. Please suggest.
$ more /etc/redhat-release
Red Hat Enterprise Linux Server release 5 (Tikanga)
$ uname -a
Linux lclnx34 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64
$
/tmp/apache/httpd-2.0.59/srclib/apr/libtool --silent --mode=link gcc -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER -I/tmp/apache/httpd-2.0.59/srclib/apr/include -I/tmp/apache/httpd-2.0.59/srclib/apr-util/include -I. -I/tmp/apache/httpd-2.0.59/os/unix -I/tmp/apache/httpd-2.0.59/server/mpm/prefork -I/tmp/apache/httpd-2.0.59/modules/http -I/tmp/apache/httpd-2.0.59/modules/filters -I/tmp/apache/httpd-2.0.59/modules/proxy -I/tmp/apache/httpd-2.0.59/include -I/tmp/apache/httpd-2.0.59/modules/generators -I/tmp/apache/httpd-2.0.59/modules/dav/main -export-dynamic -o htpasswd htpasswd.lo /tmp/apache/httpd-2.0.59/srclib/pcre/libpcre.la /tmp/apache/httpd-2.0.59/srclib/apr-util/libaprutil-0.la -lexpat /tmp/apache/httpd-2.0.59/srclib/apr/libapr-0.la -lrt -lm -lcrypt -lnsl -lpthread -ldl
/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/tmp/apache/httpd-2.0.59/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/apache/httpd-2.0.59/support'
make: *** [all-recursive] Error 1
Thanks & Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2007 09:17 PM
тАО04-24-2007 09:17 PM
Re: /usr/lib/libexpat.so: could not read symbols: File in wrong format
- file: to check file type
- rpm -Va: to check file integrity
- ldd: check library dependancy
Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2007 09:51 PM
тАО04-24-2007 09:51 PM
Re: /usr/lib/libexpat.so: could not read symbols: File in wrong format
$ file /usr/lib/libexpat.so
-ksh: hist_flush: EOF seek failed errno=116
/usr/lib/libexpat.so: symbolic link to `../../lib/libexpat.so.0.5.0'
$ file /lib/libexpat.so.0.5.0
/lib/libexpat.so.0.5.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
$ rpm -Va /lib/libexpat.so.0.5.0
$ ldd /lib/libexpat.so.0.5.0
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/libc.so.6 (0x4564e000)
/lib/ld-linux.so.2 (0x56555000)
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2007 02:58 PM
тАО04-25-2007 02:58 PM
Re: /usr/lib/libexpat.so: could not read symbols: File in wrong format
The output for the first command looks weird. Check integrity of the file using rpm -Vv, OR if you had other server with same 'expat' version, compare its md5 signature (hint: md5sum command).
the result should look something like example below. first column should only contains dots.
$ rpm -Vv expat
........ /usr/bin/xmlwf
........ /usr/lib/libexpat.so.0
........ /usr/lib/libexpat.so.0.5.0
........ /usr/share/doc/expat-1.95.7
........ d /usr/share/doc/expat-1.95.7/COPYING
........ d /usr/share/doc/expat-1.95.7/README
........ d /usr/share/man/man1/xmlwf.1.gz
$
hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2007 05:11 PM
тАО04-25-2007 05:11 PM
Re: /usr/lib/libexpat.so: could not read symbols: File in wrong format
$ rpm -Vv expat
........ /lib64/libexpat.so.0
........ /lib64/libexpat.so.0.5.0
........ /usr/bin/xmlwf
........ /usr/share/doc/expat-1.95.8
........ d /usr/share/doc/expat-1.95.8/COPYING
........ d /usr/share/doc/expat-1.95.8/README
.......T d /usr/share/man/man1/xmlwf.1.gz
........ /lib/libexpat.so.0
........ /lib/libexpat.so.0.5.0
........ /usr/bin/xmlwf
........ /usr/share/doc/expat-1.95.8
........ d /usr/share/doc/expat-1.95.8/COPYING
........ d /usr/share/doc/expat-1.95.8/README
........ d /usr/share/man/man1/xmlwf.1.gz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2007 05:17 PM
тАО04-25-2007 05:17 PM
Re: /usr/lib/libexpat.so: could not read symbols: File in wrong format
Probably this will helps:
http://www.weblogs.uhi.ac.uk/sm00ay/?p=196
EF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2007 09:09 PM
тАО04-25-2007 09:09 PM
Re: /usr/lib/libexpat.so: could not read symbols: File in wrong format
I donwloaded the latest diff patch from bugzilla. However it seems to give error while applying the patch.
$ patch
Hunk #1 FAILED at 46.
Hunk #2 succeeded at 107 with fuzz 2 (offset -17 lines).
1 out of 2 hunks FAILED -- saving rejects to file apu-conf.m4.rej
Please suggest.