httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bennett, Tony" <>
Subject RE: [users@httpd] Static linking with libexpat
Date Thu, 04 Dec 2008 22:43:10 GMT
From: Ravindra [] 
Sent: Thursday, December 04, 2008 12:05 PM
Subject: [users@httpd] Static linking with libexpat


I used "--disable-shared --with-expat=xml/expat" option while configuring Apache, but it still
seems to be linking dynamically with libexpat. I want it to link with libexpat statically.

$ ldd httpd => /lib/i686/ (0x40032000) => /usr/lib/ (0x40054000) => /lib/ (0x40074000) => /lib/i686/ (0x40078000) => /lib/ (0x400a8000) => /lib/ (0x400ba000) => /lib/ (0x400e7000) => /lib/i686/ (0x42000000)
        /lib/ => /lib/ (0x40000000)

Any suggestions ?

Thanks in advance,


One possible option is to download and build expat, 
specifying "--disable-shared" when you build expat.
This will create a libexpat.a that is NOT a shared library.
Then feed your installed location to Apache's configure
(like you did with "--with-expat".

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