Apache patch for libexpat.so: could not read s ...

Chaos Betrachtungen...

  • Homepage
  • Über mich
  • Fotos
  • Musik
  • Kontakt

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

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:

srclib/apr-util/configure

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

Then, rebuild the configure scripts:

./buildconf

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:

--enable-lib64

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,

Jens

Links:

Alistair’s cakeBlog
global infinity :: tech blog

Posted by Jens Brey in Open Source Comments: (6) Trackbacks: (0)
Defined tags for this entry: 64 bit, apache, bug, libexpat.so, patch, red hat
Related entries by tags:
Debugging DHCP
PHP 4 und OpenSSL 0.9.8a-e oder "failed to create an SSL context"

Trackbacks
Trackback specific URI for this entry

No Trackbacks

Comments
Display comments as (Linear | Threaded)

#1 - Eric 2007-08-10 19:41 - (Reply)

Jens,

Your brilliant. Thank you.

#2 - Falko said:
2007-08-29 21:33 - (Reply)

Danke für den Patch und die Anleitung. Spart mir stundenlanges Suchen ;-)

#3 - Falko said:
2007-09-14 10:05 - (Reply)

Hi Jens,

hast Du zufällig für den Apache 2.2.6 den Patch auch schon geschrieben? Der will nämlich mit dem alten Patch nicht.

Danke

#3.1 - Jens said:
2007-09-30 15:23 - (Reply)

Hi, nein noch nicht. In der letzten Apache Version hat sich auch einiges geändert, so das ich mich da auch erstmal wieder zurecht finden muss... ;-)

#4 - Arndt 2007-09-17 16:37 - (Reply)

Looks like this workaround/patch helps with httpd 2.2.6 as well. You get these message from patching though - still it compiles fine afterwards.

[apr-util]$ patch -p1 < ../../../apr-util_2.2.4.patch
patching file build/apu-conf.m4
Hunk #2 FAILED at 75.
1 out of 2 hunks FAILED -- saving rejects to file build/apu-conf.m4.rej
patching file build/apu-iconv.m4
patching file build/dbd.m4
patching file build/dbm.m4
Hunk #3 succeeded at 682 (offset 28 lines).

#4.1 - Jens said:
2007-09-30 15:32 - (Reply)

Hi Arndt, well. It can works, but it must not. It depends on your configure options. The old 2.2.3 patch, on which my patch builds, has not patched all the possible configure options and now, with the 2.2.6 version, there are some more options not patched, because of the rejections. A fast workaround for me was, to go in the directories, where the libexpat message occured and fix the makefiles manually (change paths from lib to lib64).

Regards, Jens


Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

BBCode format allowed
 
 

Blog Administration

Open login screen

Kommentare

Jens Brey about Debugging DHCP
Sat, 10.04.2010 17:26
Yep, der lebt noch ;-) Zusammen mit ardena und den anderen Al tvorderen im Serverraum in Esc hborn... Aber im RZ habe [...]
Thomas about Debugging DHCP
Thu, 08.04.2010 13:27
Hui, lebt argos etwa noch? ;-)
Jens Brey about Debugging DHCP
Thu, 13.11.2008 22:45
Nein, das bedeutet nur das du eine neue Brille brauchst :p
Torsten about Debugging DHCP
Thu, 13.11.2008 20:32
alter frickler, mach's netz wi eder ganz ! ;-) PS: wenn ic h diese komischen Captchas nic ht entziffern kann, bede [...]
Jens about Apache patch for libexpat.so: could not read symbols: File in wrong format
Sun, 30.09.2007 15:32
Hi Arndt, well. It can works, but it must not. It depends on your configure options. The o ld 2.2.3 patch, on which [...]
Jens about Apache patch for libexpat.so: could not read symbols: File in wrong format
Sun, 30.09.2007 15:23
Hi, nein noch nicht. In der le tzten Apache Version hat sich auch einiges geändert, so das ich mich da auch erstmal [...]
Arndt about Apache patch for libexpat.so: could not read symbols: File in wrong format
Mon, 17.09.2007 16:37
Looks like this workaround/pat ch helps with httpd 2.2.6 as w ell. You get these message fro m patching though - stil [...]
Falko about Apache patch for libexpat.so: could not read symbols: File in wrong format
Fri, 14.09.2007 10:05
Hi Jens, hast Du zufällig f ür den Apache 2.2.6 den Patch auch schon geschrieben? Der wi ll nämlich mit dem alten [...]
Falko about Apache patch for libexpat.so: could not read symbols: File in wrong format
Wed, 29.08.2007 21:33
Danke für den Patch und die An leitung. Spart mir stundenlang es Suchen ;-)
Eric about Apache patch for libexpat.so: could not read symbols: File in wrong format
Fri, 10.08.2007 19:41
Jens, Your brilliant. Than k you.
Papa Chao's Blog... about Energie und ihre Übertragung - oder wozu braucht man eigentlich einen Trafo?
Sat, 04.08.2007 18:28
Nachdem ich im Heise Forum ges tern den kleinen Beitrag über den Trafo geschrieben habe, t auchte die Frage auf, we [...]

Kategorien

  • XML Blog
  • XML Computer
  • XML Open Source
  • XML Fotos
  • XML Politik


All categories

Blog abonnieren

  • XML RSS 0.91 feed
  • XML RSS 1.0 feed
  • XML RSS 2.0 feed
  • ATOM/XML ATOM 0.3 feed
  • ATOM/XML ATOM 1.0 feed
  • XML RSS 2.0 Comments

Archives

  • September 2010
  • August 2010
  • July 2010
  • Recent...
  • Older...

Powered by

Serendipity PHP Weblog

Show tagged entries

xml apache
xml Atomkraftwerk
xml bilder
xml blog
xml elektrotechnik
xml festival
xml gothic
xml gotik
xml patch
xml serendipity
xml transformator
 

Layout by Andreas Viklund | Serendipity template by Carl