httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oscar A Figueroa <>
Subject Re: [users@httpd] Compile Apache HTTP with customized OpenSSL version [SOLVED]
Date Thu, 15 Sep 2011 14:56:25 GMT
Thanks Ian!

I solved exporting some environment variables before the ./configure:

LDFLAGS="-I/usr/local/openssl-0.9.8r/lib -R/usr/local/openssl-0.9.8r/lib

./configure --prefix=/usr/local/apache2 ...
make && make install

Then the result of 'ldd /usr/local/apache2/modules/' is: =>  (0x00007fff772ab000) => /usr/local/openssl-0.9.8r/lib/
(0x00007fc2231d3000) =>
/usr/local/openssl-0.9.8r/lib/ (0x00007fc222e42000) => /lib/ (0x00007fc222c38000) => /usr/lib/ (0x00007fc222a21000) => /lib/ (0x00007fc222805000) => /lib/ (0x00007fc2224b1000)
        /lib/ (0x00007fc223656000)

And the result of 'ldconfig -p | grep ssl' is: (libc6,x86-64) => /usr/lib/ (libc6,x86-64) => /usr/lib/ (libc6,x86-64) =>

Error log of the Apache when has been started:

[notice] suEXEC mechanism enabled (wrapper: /usr/local/apache2/sbin/suexec)
[notice] Digest: generating secret for digest authentication ...
[notice] Digest: done
[notice] Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8r mod_fcgid/2.3.6
configured -- resuming normal operations

There is an application in Debian distribution which can change the RPATH of
an ELF binary named 'chrpath', but i don't know if could set if didn't do at
configure time.

Thanks for your attention :)

2011/9/15 Ian Zimmerman <>

> Oscar> As is visible, the libssl linked is not the
> Oscar> /usr/local/openssl-0.9.8r that was compiled manually.
> Oscar> After compile openssl, i cant add the path to the /etc/
> Oscar> an make 'ldconfig' because this makes that ssh service fails per
> Oscar> the use of the compiled
> Methinks you need -rpath linker option.  No idea how to force the build
> to use it, though.
> --
> Ian Zimmerman
> gpg public key: 1024D/C6FF61AD
> fingerprint: 66DC D68F 5C1B 4D71 2EE5  BD03 8A00 786C C6FF 61AD
> Rule 420: All persons more than eight miles high to leave the court.
> ---------------------------------------------------------------------
> 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