You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/02/24 13:38:38 UTC

DO NOT REPLY [Bug 46762] New: Error, SSL/TLS libraries were missing or unusable

https://issues.apache.org/bugzilla/show_bug.cgi?id=46762

           Summary: Error, SSL/TLS libraries were missing or unusable
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_ssl
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: fherzberg@gmx.de


Created an attachment (id=23302)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23302)
Config.log of apache-2.2.11

I ran into error while compiling apache-2.2.11.
Error message: Error, SSL/TLS libraries were missing or unusable
Here are the last lines before the error (details see config.log):

checking openssl/engine.h usability... yes
checking openssl/engine.h presence... yes
checking for openssl/engine.h... yes
checking for SSLeay_version... no
checking for SSL_CTX_new... no
checking for ENGINE_init... no
checking for ENGINE_load_builtin_engines... no
checking for SSL_set_cert_store... no
configure: error: ... Error, SSL/TLS libraries were missing or unusable

In the config.log, you can see that ld gets an error while checking
SSLeay_version:
configure:15034: checking for SSLeay_version
configure:15090: gcc -o conftest  -g -O2 -pthread  -DLINUX=2 -D_REENTRANT
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/www/jamba/src/openssl-0.9.8j/include  
-L/www/hans/src/openssl-0.9.8j/lib conftest.c  -lm -lssl -lcrypto -lrt
-lcrypt -lpthread -ldl >&5
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status

But in apache-2.2.9 this works without errors:
configure:15062: checking for SSLeay_version in -lcrypto
configure:15097: gcc -o conftest  -g -O2 -pthread  -DLINUX=2 -D_REENTRANT
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE   -L/www/hans/src/openssl-0.9.8j conftest.c
-lcrypto   -lm  -lrt -lcrypt  -lpthread -ldl >&5
configure:15104: $? = 0
configure:15125: result: yes

Installing the Debian package "libssl-dev" will fix that, but this should also
work with openssl source package.

It seems that the path to openssl source generally works:
configure:14916: gcc -c  -g -O2 -pthread  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE -I/www/hans/src/openssl-0.9.8j/include conftest.c >&5
configure:14923: $? = 0

In the attachment, you can find the config.log of apache-2.2.9
(config.log_2.2.9) and apache-2.2.11 (config.log_2.2.9).

Thanks..

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46762] Error, SSL/TLS libraries were missing or unusable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46762





--- Comment #4 from Frank <fh...@gmx.de>  2009-02-26 07:09:30 PST ---
I don't think that this have to be updated in the documentation.
stange is, that apache-2.2.9 is able compile without setting this variables
while apache-2.2.11 is failed.

It seems that the style of checking the SSLeay_version is the reason for that.
In Version 2.2.9 it was checked by
gcc -o conftest  -g -O2 -pthread  -DLINUX=2 -D_REENTRANT
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE   -L/www/hans/src/openssl-0.9.8j conftest.c
-lcrypto   -lm  -lrt -lcrypt  -lpthread -ldl >&5

In Version 2.2.11 it is checked by:
gcc -o conftest  -g -O2 -pthread  -DLINUX=2 -D_REENTRANT
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/www/jamba/src/openssl-0.9.8j/include  
-L/www/hans/src/openssl-0.9.8j/lib conftest.c  -lm -lssl -lcrypto -lrt
-lcrypt -lpthread -ldl >&5

Possible solution could be to check this without -lssl Flag, which cause this
error.

Another solution is, to set these variables in configure Script, because the
Path to ssl will pass through the --with-ssl Parameter

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46762] Error, SSL/TLS libraries were missing or unusable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46762





--- Comment #1 from Frank <fh...@gmx.de>  2009-02-24 04:39:25 PST ---
Created an attachment (id=23303)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23303)
config.log of apache-2.2.9

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46762] Error, SSL/TLS libraries were missing or unusable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46762





--- Comment #5 from Frank <fh...@gmx.de>  2009-03-18 03:41:47 PST ---
Will this be modified in the next Version of Apache?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 46762] Error, SSL/TLS libraries were missing or unusable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46762

--- Comment #6 from Tomofumi <to...@nameinn.com> ---
This bug still occur during configure of apache 2.2.25 with openssl 1.0.1e.
I've read from google search that you can solve this bug by using this
environment:

# LDFLAGS="-ldl" ./configure [...]

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46762] Error, SSL/TLS libraries were missing or unusable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46762





--- Comment #2 from Frank <fh...@gmx.de>  2009-02-26 04:14:42 PST ---
Ok, i found the error.
Setting the following environment variables fix this issuee:

export LD_LIBRARY_PATH="/www/hans/src/openssl-0.9.8j/"
export LIBS="-L/www/hans/src/openssl-0.9.8j"
export CPPFLAGS="-I/www/hans/src/openssl-0.9.8j/include/openssl"

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46762] Error, SSL/TLS libraries were missing or unusable

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46762


Dan Poirier <po...@pobox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |poirier@pobox.com




--- Comment #3 from Dan Poirier <po...@pobox.com>  2009-02-26 05:04:44 PST ---
Thanks for the update. Do you think this problem could have been prevented by
some improvement in the documentation, and if so, what would you suggest?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org