httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luyi Chen" <>
Subject [users@httpd] Apache Loads Multiple Version of Libexpat
Date Mon, 07 Apr 2008 02:16:13 GMT

I am using Apache2.2.6 on Ubuntu6.06. My installation of Apache is in this way:
1) I installed Apache included apr
2) I downloaded apr-util-1.2.12 from Apache website, because the
included apr-util cannot be installed
(If you are interested, I got this error: libtool: install: error:
cannot install `' to a
directory not ending in /usr/local/apache2/lib)
During installation of apr-util, I used --with-expat=/usr to tell it
to use my system installed libexpat.
3) In my Apache2 lib directory, there's an old version libexpat
sitting there, because I originally installed Apache without
--with-expat option.

4) After recompilation, I issued ldd httpd, the result is as following: => /usr/lib/ (0x00002aebe6011000) => /lib/ (0x00002aebe6127000) =>
/usr/local/apr-util-httpd//lib/ (0x00002aebe62ac000) => /usr/lib/ (0x00002aebe63c4000) => /usr/local/apache2/lib/
(0x00002aebe64e8000) => /lib/ (0x00002aebe6610000) => /lib/ (0x00002aebe6718000) => /lib/ (0x00002aebe684c000) => /lib/ (0x00002aebe6961000) => /lib/ (0x00002aebe6a63000)
       /lib64/ (0x00002aebe5efa000)

httpd is now using libexpat in /usr/lib directory, which is the system
installed libexpat.

5) After restarted Apache, I checked opening file of the running
Apache, I got this:

$ ps aux | grep http | head -3
root      4757  0.0  3.9  47972 10212 ?        Ss   Apr04   0:00
/usr/local/apache2/bin/httpd -k restart
apache   29984  0.0  3.4  48104  8992 ?        S    23:31   0:00
/usr/local/apache2/bin/httpd -k restart
apache   29985  0.0  3.2  47972  8580 ?        S    23:31   0:00
/usr/local/apache2/bin/httpd -k restart

$ sudo /usr/sbin/lsof -p 4757 | grep expat
httpd   4757 root  mem    REG     8,1    397288 1183944
httpd   4757 root  mem    REG     8,1    143944 1115945

As the result shows, Apache loads two version of libexpat. The one in
Apache installation location is not needed as shown by ldd result.

The two libexpats are in different versions. The one in Apache
directory is 1.95.2, while the one in /usr/lib directory is 1.95.8. I
have also installed mod_python 3.3.1, so the conflict of libexpat
version crashes Apache every time libexpat is used.

Anyone has idea to solve this? Many thanks.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message