Apache patch for libexpat.so: could not read symbols: File in wrong format

Geschrieben von Jens Brey am Dienstag, 24. Juli 2007 in Open Source

If you want to compile Apache 2.2.4 under Red Hat AS 5.0 x86-64 you can get this error:

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

There is a patch in the ASF Bugzilla (http://issues.apache.org/bugzilla/show_bug.cgi?id=28205 ), but this patch works only up to version 2.2.3. So, i create a new one, which works with 2.2.4 ;-)

Here it is http://blog.chaos-co.de/downloads/apr-util_2.2.4.patch

Unpack your apache with tar, go in the httpd-2.2.4/srclib/apr-util directory and apply it with "patch -p1 < /usr/local/src/apr-util_2.2.4.patch"

The patch updates apu-conf.m4 to build an updated configure that knows what to do with a 64 bit directive. So, once you’ve applied the patch, you should delete the file:


and go back to the root directory of the source distro and delete the configure file there too.

Then, rebuild the configure scripts:


You now have a 64 bit enabled apr-util. To take advantage of it, you need to add this line to the root configure options:


Here’s the root configure in full:

./configure --prefix=/usr/local/httpd-2.2.4_php4/ --with-mpm=worker --enable-so --enable-rewrite --enable-status --enable-lib64 --libdir=/usr/lib64

Have fun,



Alistair’s cakeBlog
global infinity :: tech blog

6 Kommentare Mehr...

Seite 1 von 1, insgesamt 1 Einträge


Nach Einträgen suchen in Chaos Betrachtungen...:

Das Gesuchte nicht gefunden? Gib einen Kommentar in einem Eintrag ab oder nimm per E-Mail Kontakt auf!