httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bennett, Tony" <Bennett.T...@con-way.com>
Subject RE: [users@httpd] Static linking with libexpat
Date Thu, 04 Dec 2008 22:43:10 GMT
From: Ravindra [mailto:kravindra@gmail.com] 
Sent: Thursday, December 04, 2008 12:05 PM
To: users@httpd.apache.org
Subject: [users@httpd] Static linking with libexpat

Hi,

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
        libm.so.6 => /lib/i686/libm.so.6 (0x40032000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40054000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x40074000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40078000)
        librt.so.1 => /lib/librt.so.1 (0x400a8000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x400ba000)
        libdl.so.2 => /lib/libdl.so.2 (0x400e7000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Any suggestions ?

Thanks in advance,
Ravindra

---------------------------------------------------------------------


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".

-tony
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message