Can't Compile httpd 2.2.11 linked statically with ssl and zlib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to compile an httpd on a linux system (debian etch) completly static but can't succeed.

What I did is following:

compiled zlib:
./configure
make
make install

compiled openssl 0.9.8i:
./config no-zlib shared
make
make install

compiled apache httpd:
./buildconf
./configure --prefix=/usr/local/apache2.2.11 \
 --enable-static-support \
 --with-mpm=worker \
 --enable-mods-shared=all \
 --enable-so \
 --enable-deflate=static \
 --with-z=/usr/local/lib \
 --enable-ssl=static \
 --with-ssl=/usr/local/ssl \
 --enable-rewrite=static \
 --enable-auth-basic=static \
 --enable-authn-file=static \
 --enable-authz-user=static \
 --enable-authz-groupfile=static \
 --enable-authz-host=static \
 --enable-expires=static \
 --enable-headers=static

If I look to the depencies with ldd there is a dynamically linked libz and libssl:

        linux-gate.so.1 =>  (0xffffe000)
        libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb7eb9000)
        libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xb7d7e000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7d59000)
        libaprutil-1.so.0 => /usr/local/apache2.2.11/lib/libaprutil-1.so.0 (0xb7d3d000)
        libexpat.so.0 => /usr/local/apache2.2.11/lib/libexpat.so.0 (0xb7d21000)
        libapr-1.so.0 => /usr/local/apache2.2.11/lib/libapr-1.so.0 (0xb7cfc000)
        librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7cf3000)
        libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7cc4000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7cb2000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7cae000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7b7d000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7b69000)
        /lib/ld-linux.so.2 (0xb7efe000)

What's going wrong? libssl and libz shouldn't be linked dynamically. With httpd 2.2.3 and the same configuration I haven't had these problems. ldd from the old 2.2.3 shows following depencies:

        linux-gate.so.1 =>  (0xffffe000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7edf000)
        libaprutil-1.so.0 => /usr/local/apache2.2.3/lib/libaprutil-1.so.0 (0xb7ec9000)
        libexpat.so.0 => /usr/local/apache2.2.3/lib/libexpat.so.0 (0xb7eac000)
        libapr-1.so.0 => /usr/local/apache2.2.3/lib/libapr-1.so.0 (0xb7e8a000)
        librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7e81000)
        libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7e53000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7e40000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e3c000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d0b000)
        /lib/ld-linux.so.2 (0xb7f0a000)

Maybe someone can help.

Cheers
Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux