Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000458 [Resin] minor always 11-21-05 00:00 12-07-05 07:36
Reporter mate View Status public  
Assigned To
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.16 Product Version 3.0.15
  Product Build 3.0.15
Summary 0000458: Cannot compile/configure OpenSSL; wrong parameter order
Description RSN-507
When trying to run ./configure --with-openssl=/usr/local/ssl the error below was received. The reason is that in the configure script, libcrypto is added to the compilation flags before libssl. (Solution was found here: http://www.mail-archive.com/openssl-users@openssl.org/msg30792.html) [^]

To fix this, lines 9229-9240 of configure needs to be moved below lines 9244-9259. That is

    if test -z "${OPENSSL_LIB}"; then
      foo=bar
    elif test -r "${OPENSSL_LIB}/libssl.so"; then
      SSL_LIBS="${SSL_LIBS} -lssl"
    elif test -r "${OPENSSL_LIB}/libssl.dylib"; then
      SSL_LIBS="${SSL_LIBS} -lssl"
    elif test -r "${OPENSSL_LIB}/libssl3.so"; then
      SSL_LIBS="${SSL_LIBS} -lssl3"
    elif test -r "${OPENSSL_LIB}/libssl3.dylib"; then
      SSL_LIBS="${SSL_LIBS} -lssl3"
    elif test -r "${OPENSSL_LIB}/libssl.a"; then
      SSL_LIBS="${SSL_LIBS} ${OPENSSL_LIB}/libssl.a"
    elif test -r "${OPENSSL_LIB}/libssl3.a"; then
      SSL_LIBS="${SSL_LIBS} ${OPENSSL_LIB}/libssl3.a"
    else
      # probably an error
      SSL_LIBS="${SSL_LIBS} -lssl"
    fi
    
    if test -z "${OPENSSL_LIB}"; then
      foo=bar
    elif test -r "${OPENSSL_LIB}/libcrypto.so"; then
      SSL_LIBS="${SSL_LIBS} -lcrypto"
    elif test -r "${OPENSSL_LIB}/libcrypto.dylib"; then
      SSL_LIBS="${SSL_LIBS} -lcrypto"
    elif test -r "${OPENSSL_LIB}/libcrypto.a"; then
      SSL_LIBS="${SSL_LIBS} ${OPENSSL_LIB}/libcrypto.a"
    else
      # probably an error
      SSL_LIBS="${SSL_LIBS} -lcrypto"
    fi


Here is the error:
...
Using openssl include in ... /usr/local/ssl/include
Using openssl lib in ... /usr/local/ssl/lib
Using openssl libraries in ... /usr/local/ssl/lib/libcrypto.a /usr/local/ssl/lib/libssl.a
/usr/local/ssl/lib/libssl.a(ssl_err2.o)(.text+0x11): In function `SSL_load_error_strings':
: undefined reference to `ERR_load_crypto_strings'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x12): In function `SSL_library_init':
: undefined reference to `EVP_des_cbc'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x1a): In function `SSL_library_init':
: undefined reference to `EVP_add_cipher'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x1f): In function `SSL_library_init':
: undefined reference to `EVP_des_ede3_cbc'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x27): In function `SSL_library_init':
: undefined reference to `EVP_add_cipher'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x2c): In function `SSL_library_init':
: undefined reference to `EVP_idea_cbc'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x34): In function `SSL_library_init':
: undefined reference to `EVP_add_cipher'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x39): In function `SSL_library_init':
: undefined reference to `EVP_rc4'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x41): In function `SSL_library_init':
: undefined reference to `EVP_add_cipher'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x46): In function `SSL_library_init':
: undefined reference to `EVP_rc2_cbc'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x4e): In function `SSL_library_init':
: undefined reference to `EVP_add_cipher'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x53): In function `SSL_library_init':
: undefined reference to `EVP_md2'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x5b): In function `SSL_library_init':
: undefined reference to `EVP_add_digest'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x60): In function `SSL_library_init':
: undefined reference to `EVP_md5'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x6e): In function `SSL_library_init':
: undefined reference to `EVP_add_digest'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x83): In function `SSL_library_init':
: undefined reference to `OBJ_NAME_add'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x98): In function `SSL_library_init':
: undefined reference to `OBJ_NAME_add'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x9d): In function `SSL_library_init':
: undefined reference to `EVP_sha1'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0xa5): In function `SSL_library_init':
: undefined reference to `EVP_add_digest'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0xc0): In function `SSL_library_init':
: undefined reference to `OBJ_NAME_add'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0xdb): In function `SSL_library_init':
: undefined reference to `OBJ_NAME_add'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0xe0): In function `SSL_library_init':
: undefined reference to `EVP_dss1'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0xee): In function `SSL_library_init':
: undefined reference to `EVP_add_digest'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x103): In function `SSL_library_init':
: undefined reference to `OBJ_NAME_add'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x118): In function `SSL_library_init':
: undefined reference to `OBJ_NAME_add'
/usr/local/ssl/lib/libssl.a(ssl_algs.o)(.text+0x12d): In function `SSL_library_init':
: undefined reference to `OBJ_NAME_add'
/usr/local/ssl/lib/libssl.a(ssl_err.o)(.text+0x37): In function `ERR_load_SSL_strings':
: undefined reference to `ERR_load_strings'
/usr/local/ssl/lib/libssl.a(ssl_err.o)(.text+0x47): In function `ERR_load_SSL_strings':
: undefined reference to `ERR_load_strings'
collect2: ld returned 1 exit status
configure: WARNING: Can't compile SSL. Check compilation flags: gcc -DSSL_ENGINE -g -O2 -DPOLL -DHAS_JVMTI -I/usr/local/ssl/include -L/usr/local/ssl/lib /usr/local/ssl/lib/libcrypto.a /usr/local/ssl/lib/libssl.a -lpthread
...
Steps To Reproduce
Additional Information Linux, OpenSSL 0.9.6/0.9.7/0.9.8
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
11-21-05 00:00 mate New Issue
12-07-05 07:36 ferg Status acknowledged => closed
12-07-05 07:36 ferg Resolution open => fixed
12-07-05 07:36 ferg Fixed in Version  => 3.0.16


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker