You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Keith Wall (JIRA)" <ji...@apache.org> on 2012/12/12 18:54:20 UTC

[jira] [Commented] (PROTON-185) Can't build proton-c - undefined symbols ERR_get_error etc

    [ https://issues.apache.org/jira/browse/PROTON-185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13530146#comment-13530146 ] 

Keith Wall commented on PROTON-185:
-----------------------------------

The further requested details:

> Could you run "make VERBOSE=1" and post the final link line (only).

/usr/bin/cmake -E cmake_link_script
CMakeFiles/qpid-proton.dir/link.txt --verbose=1
/usr/bin/gcc  -fPIC  -Wl,--no-undefined -shared
-Wl,-soname,libqpid-proton.so.1 -o libqpid-proton.so.1.0.0
CMakeFiles/qpid-proton.dir/src/util.c.o
CMakeFiles/qpid-proton.dir/src/error.c.o
CMakeFiles/qpid-proton.dir/src/buffer.c.o
CMakeFiles/qpid-proton.dir/src/parser.c.o
CMakeFiles/qpid-proton.dir/src/scanner.c.o
CMakeFiles/qpid-proton.dir/src/types.c.o
CMakeFiles/qpid-proton.dir/src/framing/framing.c.o
CMakeFiles/qpid-proton.dir/src/codec/codec.c.o
CMakeFiles/qpid-proton.dir/src/dispatcher/dispatcher.c.o
CMakeFiles/qpid-proton.dir/src/engine/engine.c.o
CMakeFiles/qpid-proton.dir/src/message/message.c.o
CMakeFiles/qpid-proton.dir/src/sasl/sasl.c.o
CMakeFiles/qpid-proton.dir/src/messenger.c.o
CMakeFiles/qpid-proton.dir/src/driver.c.o
CMakeFiles/qpid-proton.dir/src/platform.c.o
CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o -luuid -lssl -lrt
CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o: In function `_log_ssl_error':
openssl.c:(.text+0x2de): undefined reference to `ERR_get_error'
openssl.c:(.text+0x2ff): undefined reference to `ERR_error_string_n'

> Another useful datapoint would be to build with the above flag and then
> post the results of "ldd libqpid-proton.so".

 ldd libqpid-proton.so
        libuuid.so.1 => /lib64/libuuid.so.1 (0x00002b00ebce6000)
        libssl.so.6 => /lib64/libssl.so.6 (0x00002b00ebeea000)
        librt.so.1 => /lib64/librt.so.1 (0x00002b00ec134000)
        libc.so.6 => /lib64/libc.so.6 (0x00002b00ec33e000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003f86000000)
        libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2
(0x00002b00ec694000)
        libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00002b00ec8c2000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00002b00ecb58000)
        libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00002b00ecd5a000)
        libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00002b00ecf7f000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002b00ed2d1000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00002b00ed4d5000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b00ed6e9000)
        libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0
(0x00002b00ed905000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00002b00edb0d000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00002b00edd0f000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00002b00edf25000)
        libsepol.so.1 => /lib64/libsepol.so.1 (0x00002b00ee13d000)
                
> Can't build proton-c - undefined symbols ERR_get_error etc
> ----------------------------------------------------------
>
>                 Key: PROTON-185
>                 URL: https://issues.apache.org/jira/browse/PROTON-185
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>         Environment: Red Hat Enterprise Linux Server release 5.3 (Tikanga)
>            Reporter: Keith Wall
>            Assignee: Andrew Stitcher
>
> As initially discussed on mail thread..
> We are having problems building proton-c on our dev boxes (Red Hat
> Enterprise Linux Server release 5.3 (Tikanga)).  I've done a git
> bisect and discovered that it was Andrew's commit last Wednesday (rev
> 1417553) that has introduced/exposed the issue.  Before that point, we
> could build without this issue.
> It appears to be a link issue with openssl.  The following version of
> openssl is installed:
> $rpm -q openssl
> openssl-0.9.8e-7.el5.x86_64
> openssl-0.9.8e-7.el5.i686
> Make is failing with the following (complete cmake/make output attached below)
> Linking C shared library libqpid-proton.so
> CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o: In function `_log_ssl_error':
> openssl.c:(.text+0x2de): undefined reference to `ERR_get_error'
> openssl.c:(.text+0x2ff): undefined reference to `ERR_error_string_n'
> openssl.c:(.text+0x31c): undefined reference to `ERR_get_error'
> CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o: In function `ssl_failed':
> openssl.c:(.text+0x43f): undefined reference to `ERR_get_error'
> openssl.c:(.text+0x45f): undefined reference to `ERR_error_string_n'
> CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o: In function `get_dh2048':
> openssl.c:(.text+0x4ac): undefined reference to `DH_new'
> openssl.c:(.text+0x4d7): undefined reference to `BN_bin2bn'
> openssl.c:(.text+0x4f8): undefined reference to `BN_bin2bn'
> openssl.c:(.text+0x526): undefined reference to `DH_free'
> CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o: In function `pn_ssl_domain':
> openssl.c:(.text+0x71e): undefined reference to
> `OPENSSL_add_all_algorithms_noconf'
> openssl.c:(.text+0x8fd): undefined reference to `DH_free'
> CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o: In function `pn_ssl':
> openssl.c:(.text+0x1979): undefined reference to
> `OPENSSL_add_all_algorithms_noconf'
> CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o: In function `process_input_ssl':
> openssl.c:(.text+0x1cd2): undefined reference to `BIO_write'
> openssl.c:(.text+0x1d62): undefined reference to `BIO_ctrl'
> openssl.c:(.text+0x1dcf): undefined reference to `BIO_read'
> CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o: In function
> `process_output_ssl':
> openssl.c:(.text+0x2268): undefined reference to `BIO_write'
> openssl.c:(.text+0x240e): undefined reference to `BIO_read'
> openssl.c:(.text+0x24b7): undefined reference to `BIO_ctrl'
> CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o: In function `init_ssl_socket':
> openssl.c:(.text+0x26a3): undefined reference to `BIO_new'
> openssl.c:(.text+0x26fa): undefined reference to `BIO_ctrl'
> openssl.c:(.text+0x2719): undefined reference to `BIO_new_bio_pair'
> openssl.c:(.text+0x278f): undefined reference to `BIO_ctrl'
> openssl.c:(.text+0x27cf): undefined reference to `BIO_ctrl'
> CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o: In function
> `release_ssl_socket':
> openssl.c:(.text+0x2816): undefined reference to `BIO_free'
> openssl.c:(.text+0x284c): undefined reference to `BIO_free'
> openssl.c:(.text+0x2866): undefined reference to `BIO_free'
> I am not able to determine the underlying cause (my C skills are ten
> years rusty), would someone be able to take a look and advise?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira