06.08.2012 16:40, spameden пишет:
do you have a custom openssl compiled in /usr/local/lib?

try specifying ./configure --with-ssl=/usr/lib/ssl

2012/8/6 admin <[email protected] <mailto:[email protected]>>

    06.08.2012 16:15, spameden пишет:
    I don't need Makefile script, I need output generated by make
    command, not only the last lines.

    2012/8/6 admin <[email protected] <mailto:[email protected]>>

        06.08.2012 15:29, spameden пишет:
        From the lines you posted I can't judge what's wrong. Paste
        line before.

        And yes you need to install kannel's development headers
        (i.e. install kannel before compiling opensmppbox).

        Read user-guide.

        2012/8/6 admin <[email protected] <mailto:[email protected]>>

            06.08.2012 15:08, spameden пишет:
            Hello, you need to provide earlier lines of compilation.

            2012/8/6 admin <[email protected] <mailto:[email protected]>>

                Good time of day.
                I have the server with Debian 6 Squeeze, x64.
                I downloaded the opensmppbox with the command
                svn co https://svn.kannel.org/opensmppbox/trunk
                and try to install it.
                Configure was completed, but when i tried "Make"
                got this error:

                make[2]: *** [opensmppbox] Ошибка 1
                make[2]: Leaving directory
                `/home/amst/opensmpp/open2/trunk/gw'
                make[1]: *** [all-recursive] Ошибка 1
                make[1]: Leaving directory
                `/home/amst/opensmpp/open2/trunk'
                make: *** [all] Ошибка 2

                I have g++ and  libxml2-dev on my server.
                Can you help me please?


            do you mean the lines
            srcdir= .
            topsrcdir = ..

            Should i paste there the path, where opensmpp is ?



        Of cource I have installed kannel, it works fine. And i read
        the user-guide.

        Here is my Makefile

        srcdir = .
        top_srcdir = ..

        pkgdatadir = $(datadir)/
        pkglibdir = $(libdir)/
        pkgincludedir = $(includedir)/
        top_builddir = ..
        am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
        INSTALL = /usr/bin/install -c
        install_sh_DATA = $(install_sh) -c -m 644
        install_sh_PROGRAM = $(install_sh) -c
        install_{sh_SCRIPT = $(install_sh) -c
        INSTALL_HEADER = $(INSTALL_DATA)
        transform = $(program_transform_name)
        NORMAL_INSTALL = :
        PRE_INSTALL = :
        POST_INSTALL = :
        NORMAL_UNINSTALL = :
        PRE_UNINSTALL = :
        POST_UNINSTALL = :
        build_triplet = x86_64-unknown-linux-gnu
        host_triplet = x86_64-unknown-linux-gnu
        sbin_PROGRAMS = opensmppbox$(EXEEXT)
        subdir = gw
        DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
        ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
        am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
                $(top_srcdir)/configure.in <http://configure.in>
        am__configure_deps = $(am__aclocal_m4_deps)
        $(CONFIGURE_DEPENDENCIES) \
                $(ACLOCAL_M4)
        mkinstalldirs = $(install_sh) -d
        CONFIG_HEADER = $(top_builddir)/sb-config.h
        CONFIG_CLEAN_FILES =
        am__installdirs = "$(DESTDIR)$(sbindir)"
        sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
        PROGRAMS = $(sbin_PROGRAMS)
        am_opensmppbox_OBJECTS = box-dlr.$(OBJEXT) opensmppbox.$(OBJEXT)
        opensmppbox_OBJECTS = $(am_opensmppbox_OBJECTS)
        opensmppbox_LDADD = $(LDADD)
        DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
        depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
        am__depfiles_maybe = depfiles
        ....
        {cutted}


        It is standart Makefile script, i have not changed it.



    ok, thank you for your help.

    Here is the full make's output

    make

    /bin/bash ../libtool --tag=CC --mode=link gcc  -g -O2
    -D_XOPEN_SOURCE=600 -D_BSD_SOUR CE -I/usr/local/ssl/include
    -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D
    _BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES=
    -I/usr/include/libxml2 -I/usr/incl ude -I/usr/include/mysql
    -I/usr/include/mysql  -rdynamic -o opensmppbox  box-dlr.o op
    ensmppbox.o  -lmysqlclient_r  -L/usr/local/ssl/lib -lcrypto
    -L/usr/local/lib/kannel - lgw -lwap -lgwlib -lmysqlclient_r -lssl
    -lrt -lresolv -lnsl -lm  -lpthread -lxml2 -L/ usr/lib -lcrypto
    -lssl -rdynamic -L/usr/lib/mysql -lmysqlclient_r  -rdynamic
    -L/usr/l ib/mysql -lmysqlclient_r
    gcc -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
    -I/usr/local/ssl/include -I/usr/local/in clude/kannel -g -O2
    -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE
    _FILES= -I/usr/include/libxml2 -I/usr/include -I/usr/include/mysql
    -I/usr/include/mys ql -rdynamic -o opensmppbox box-dlr.o
    opensmppbox.o -rdynamic -rdynamic -L/usr/local /ssl/lib
    -L/usr/local/lib/kannel -lgw -lwap -lgwlib -lrt -lresolv
    /usr/lib/libxml2.so -L/usr/lib -lcrypto -lssl -L/usr/lib/mysql
    /usr/lib/libmysqlclient_r.so -lcrypt -lns l -lm -lpthread -lz
    /usr/local/ssl/lib/libssl.a(t1_lib.o): In function
    `tls_decrypt_ticket':
    t1_lib.c:(.text+0x8dc): undefined reference to `EVP_aes_128_cbc'
    /usr/local/ssl/lib/libssl.a(t1_lib.o): In function
    `tls1_process_sigalgs':
    t1_lib.c:(.text+0x2be9): undefined reference to `EVP_ecdsa'
    t1_lib.c:(.text+0x2bfb): undefined reference to `EVP_dss1'
    /usr/local/ssl/lib/libssl.a(t1_enc.o): In function
    `tls1_change_cipher_state':
    t1_enc.c:(.text+0x132c): undefined reference to `COMP_CTX_free'
    t1_enc.c:(.text+0x1349): undefined reference to `COMP_CTX_new'
    t1_enc.c:(.text+0x13fd): undefined reference to `COMP_CTX_free'
    t1_enc.c:(.text+0x1416): undefined reference to `COMP_CTX_new'
    /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function
    `ssl_clear_cipher_ctx':
    ssl_lib.c:(.text+0x12da): undefined reference to `COMP_CTX_free'
    ssl_lib.c:(.text+0x12f6): undefined reference to `COMP_CTX_free'
    /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_set_fd':
    ssl_lib.c:(.text+0x45ea): undefined reference to `BIO_s_socket'
    /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_set_wfd':
    ssl_lib.c:(.text+0x46d9): undefined reference to `BIO_s_socket'
    /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_set_rfd':
    ssl_lib.c:(.text+0x4819): undefined reference to `BIO_s_socket'
    /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function
    `SSL_CTX_load_verify_locations':
    ssl_lib.c:(.text+0x1072): undefined reference to
    `X509_STORE_load_locations'
    /usr/local/ssl/lib/libssl.a(ssl_lib.o): In function
    `SSL_CTX_set_default_verify_paths ':
    ssl_lib.c:(.text+0x1092): undefined reference to
    `X509_STORE_set_default_paths'
    /usr/local/ssl/lib/libssl.a(ssl_err2.o): In function
    `SSL_load_error_strings':
    ssl_err2.c:(.text+0x4): undefined reference to
    `ERR_load_crypto_strings'
    /usr/local/ssl/lib/libssl.a(ssl_cert.o): In function
    `SSL_add_file_cert_subjects_to_s tack':
    ssl_cert.c:(.text+0x108): undefined reference to `PEM_read_bio_X509'
    /usr/local/ssl/lib/libssl.a(ssl_cert.o): In function
    `SSL_add_dir_cert_subjects_to_st ack':
    ssl_cert.c:(.text+0x237): undefined reference to `OPENSSL_DIR_read'
    ssl_cert.c:(.text+0x2bf): undefined reference to `OPENSSL_DIR_end'
    /usr/local/ssl/lib/libssl.a(ssl_cert.o): In function
    `SSL_load_client_CA_file':
    ssl_cert.c:(.text+0x564): undefined reference to `PEM_read_bio_X509'
    /usr/local/ssl/lib/libssl.a(ssl_cert.o): In function `ssl_cert_dup':
    ssl_cert.c:(.text+0xee3): undefined reference to `EVP_dss1'
    ssl_cert.c:(.text+0xefb): undefined reference to `EVP_ecdsa'
    /usr/local/ssl/lib/libssl.a(ssl_cert.o): In function `ssl_cert_new':
    ssl_cert.c:(.text+0x13f2): undefined reference to `EVP_dss1'
    ssl_cert.c:(.text+0x140a): undefined reference to `EVP_ecdsa'
    /usr/local/ssl/lib/libssl.a(ssl_sess.o): In function
    `SSL_CTX_set_client_cert_engine' :
    ssl_sess.c:(.text+0x378): undefined reference to
    `ENGINE_get_ssl_client_cert_function '
    /usr/local/ssl/lib/libssl.a(ssl_ciph.o): In function
    `load_builtin_compressions':
    ssl_ciph.c:(.text+0x52f): undefined reference to `COMP_zlib'
    /usr/local/ssl/lib/libssl.a(ssl_ciph.o): In function
    `ssl_cipher_get_evp':
    ssl_ciph.c:(.text+0x1699): undefined reference to `EVP_enc_null'
    /usr/local/ssl/lib/libssl.a(ssl_rsa.o): In function
    `SSL_CTX_use_RSAPrivateKey_file':
    ssl_rsa.c:(.text+0x922): undefined reference to
    `PEM_read_bio_RSAPrivateKey'
    /usr/local/ssl/lib/libssl.a(ssl_rsa.o): In function
    `SSL_use_RSAPrivateKey_file':
    ssl_rsa.c:(.text+0xcc8): undefined reference to
    `PEM_read_bio_RSAPrivateKey'
    /usr/local/ssl/lib/libssl.a(ssl_rsa.o): In function
    `SSL_CTX_use_certificate_chain_fi le':
    ssl_rsa.c:(.text+0x1189): undefined reference to
    `PEM_read_bio_X509_AUX'
    ssl_rsa.c:(.text+0x1212): undefined reference to `PEM_read_bio_X509'
    /usr/local/ssl/lib/libssl.a(ssl_rsa.o): In function
    `SSL_use_PrivateKey_file':
    ssl_rsa.c:(.text+0x1540): undefined reference to
    `PEM_read_bio_PrivateKey'
    /usr/local/ssl/lib/libssl.a(ssl_rsa.o): In function
    `SSL_CTX_use_PrivateKey_file':
    ssl_rsa.c:(.text+0x174a): undefined reference to
    `PEM_read_bio_PrivateKey'
    /usr/local/ssl/lib/libssl.a(ssl_rsa.o): In function
    `SSL_use_certificate_file':
    ssl_rsa.c:(.text+0x18a8): undefined reference to `PEM_read_bio_X509'
    /usr/local/ssl/lib/libssl.a(ssl_rsa.o): In function
    `SSL_CTX_use_certificate_file':
    ssl_rsa.c:(.text+0x1ac2): undefined reference to `PEM_read_bio_X509'
    /usr/local/ssl/lib/libssl.a(ssl_algs.o): In function
    `SSL_library_init':
    ssl_algs.c:(.text+0x4): undefined reference to `EVP_des_cbc'
    ssl_algs.c:(.text+0x11): undefined reference to `EVP_des_ede3_cbc'
    ssl_algs.c:(.text+0x1e): undefined reference to `EVP_idea_cbc'
    ssl_algs.c:(.text+0x2b): undefined reference to `EVP_rc4'
    ssl_algs.c:(.text+0x38): undefined reference to `EVP_rc2_cbc'
    ssl_algs.c:(.text+0x45): undefined reference to `EVP_rc2_40_cbc'
    ssl_algs.c:(.text+0x52): undefined reference to `EVP_aes_128_cbc'
    ssl_algs.c:(.text+0x5f): undefined reference to `EVP_aes_192_cbc'
    ssl_algs.c:(.text+0x6c): undefined reference to `EVP_aes_256_cbc'
    ssl_algs.c:(.text+0x79): undefined reference to `EVP_aes_128_gcm'
    ssl_algs.c:(.text+0x86): undefined reference to `EVP_aes_256_gcm'
    ssl_algs.c:(.text+0x93): undefined reference to
    `EVP_aes_128_cbc_hmac_sha1'
    ssl_algs.c:(.text+0xa0): undefined reference to
    `EVP_aes_256_cbc_hmac_sha1'
    ssl_algs.c:(.text+0xad): undefined reference to `EVP_camellia_128_cbc'
    ssl_algs.c:(.text+0xba): undefined reference to `EVP_camellia_256_cbc'
    ssl_algs.c:(.text+0xc7): undefined reference to `EVP_seed_cbc'
    ssl_algs.c:(.text+0x192): undefined reference to `EVP_dss1'
    ssl_algs.c:(.text+0x1f3): undefined reference to `EVP_ecdsa'
    /usr/local/ssl/lib/libssl.a(tls_srp.o): In function
    `SRP_Calc_A_param':
    tls_srp.c:(.text+0x323): undefined reference to `SRP_Calc_A'
    tls_srp.c:(.text+0x36c): undefined reference to
    `SRP_check_known_gN_param'
    /usr/local/ssl/lib/libssl.a(tls_srp.o): In function
    `SRP_generate_client_master_secre t':
    tls_srp.c:(.text+0x3bb): undefined reference to `SRP_Verify_B_mod_N'
    tls_srp.c:(.text+0x446): undefined reference to `SRP_Calc_u'
    tls_srp.c:(.text+0x4a1): undefined reference to `SRP_Calc_x'
    tls_srp.c:(.text+0x4e5): undefined reference to `SRP_Calc_client_key'
    /usr/local/ssl/lib/libssl.a(tls_srp.o): In function
    `SRP_generate_server_master_secre t':
    tls_srp.c:(.text+0x5db): undefined reference to `SRP_Verify_A_mod_N'
    tls_srp.c:(.text+0x638): undefined reference to `SRP_Calc_u'
    tls_srp.c:(.text+0x66e): undefined reference to `SRP_Calc_server_key'
    /usr/local/ssl/lib/libssl.a(tls_srp.o): In function
    `SSL_set_srp_server_param_pw':
    tls_srp.c:(.text+0xba7): undefined reference to `SRP_get_default_gN'
    tls_srp.c:(.text+0xc54): undefined reference to
    `SRP_create_verifier_BN'
    /usr/local/ssl/lib/libssl.a(tls_srp.o): In function
    `SSL_srp_server_param_with_userna me':
    tls_srp.c:(.text+0xd50): undefined reference to `SRP_Calc_B'
    /usr/local/ssl/lib/libssl.a(s3_srvr.o): In function
    `ssl3_send_newsession_ticket':
    s3_srvr.c:(.text+0x833): undefined reference to `EVP_aes_128_cbc'
    /usr/local/ssl/lib/libssl.a(s3_srvr.o): In function
    `ssl3_get_cert_verify':
    s3_srvr.c:(.text+0xff8): undefined reference to
    `X509_certificate_type'
    /usr/local/ssl/lib/libssl.a(s3_clnt.o): In function
    `ssl_do_client_cert_cb':
    s3_clnt.c:(.text+0x12b): undefined reference to
    `ENGINE_load_ssl_client_cert'
    /usr/local/ssl/lib/libssl.a(s3_clnt.o): In function
    `ssl3_check_cert_and_algorithm':
    s3_clnt.c:(.text+0x2f2): undefined reference to
    `X509_certificate_type'
    /usr/local/ssl/lib/libssl.a(s3_clnt.o): In function
    `ssl3_send_client_certificate':
    s3_clnt.c:(.text+0x5027): undefined reference to
    `ENGINE_load_ssl_client_cert'
    /usr/local/ssl/lib/libssl.a(s3_enc.o): In function
    `ssl3_change_cipher_state':
    s3_enc.c:(.text+0xb9c): undefined reference to `COMP_CTX_free'
    s3_enc.c:(.text+0xbb6): undefined reference to `COMP_CTX_new'
    s3_enc.c:(.text+0xc46): undefined reference to `COMP_CTX_free'
    s3_enc.c:(.text+0xc5c): undefined reference to `COMP_CTX_new'
    /usr/local/ssl/lib/libssl.a(s3_pkt.o): In function `ssl3_do_compress':
    s3_pkt.c:(.text+0x3cb): undefined reference to `COMP_compress_block'
    /usr/local/ssl/lib/libssl.a(s3_pkt.o): In function
    `ssl3_do_uncompress':
    s3_pkt.c:(.text+0x43b): undefined reference to `COMP_expand_block'
    /usr/local/ssl/lib/libssl.a(s3_pkt.o): In function `do_ssl3_write':
    s3_pkt.c:(.text+0x99f): undefined reference to `COMP_compress_block'
    /usr/local/ssl/lib/libssl.a(s3_pkt.o): In function `ssl3_read_bytes':
    s3_pkt.c:(.text+0x14ef): undefined reference to `COMP_expand_block'
    /usr/local/ssl/lib/libssl.a(d1_both.o): In function
    `dtls1_retransmit_message':
    d1_both.c:(.text+0xe42): undefined reference to `pqueue_find'
    /usr/local/ssl/lib/libssl.a(d1_both.o): In function
    `dtls1_retransmit_buffered_messag es':
    d1_both.c:(.text+0x10a3): undefined reference to `pqueue_iterator'
    d1_both.c:(.text+0x10af): undefined reference to `pqueue_next'
    d1_both.c:(.text+0x10c4): undefined reference to `pqueue_next'
    /usr/local/ssl/lib/libssl.a(d1_both.o): In function
    `dtls1_clear_record_buffer':
    d1_both.c:(.text+0x153d): undefined reference to `pitem_free'
    d1_both.c:(.text+0x154e): undefined reference to `pqueue_pop'
    /usr/local/ssl/lib/libssl.a(d1_both.o): In function
    `dtls1_reassemble_fragment':
    d1_both.c:(.text+0x163f): undefined reference to `pqueue_find'
    d1_both.c:(.text+0x191b): undefined reference to `pitem_new'
    d1_both.c:(.text+0x1940): undefined reference to `pqueue_insert'
    /usr/local/ssl/lib/libssl.a(d1_both.o): In function
    `dtls1_get_message_fragment':
    d1_both.c:(.text+0x19a7): undefined reference to `pqueue_peek'
    d1_both.c:(.text+0x1c35): undefined reference to `pqueue_pop'
    d1_both.c:(.text+0x1c7f): undefined reference to `pitem_free'
    d1_both.c:(.text+0x1ce7): undefined reference to `pqueue_find'
    d1_both.c:(.text+0x1e62): undefined reference to `pitem_new'
    d1_both.c:(.text+0x20ab): undefined reference to `pqueue_insert'
    /usr/local/ssl/lib/libssl.a(d1_both.o): In function
    `dtls1_buffer_message':
    d1_both.c:(.text+0x2420): undefined reference to `pitem_new'
    d1_both.c:(.text+0x243d): undefined reference to `pqueue_insert'
    /usr/local/ssl/lib/libssl.a(d1_lib.o): In function
    `dtls1_clear_queues':
    d1_lib.c:(.text+0x381): undefined reference to `pitem_free'
    d1_lib.c:(.text+0x392): undefined reference to `pqueue_pop'
    d1_lib.c:(.text+0x3c1): undefined reference to `pitem_free'
    d1_lib.c:(.text+0x3d2): undefined reference to `pqueue_pop'
    d1_lib.c:(.text+0x3fa): undefined reference to `pitem_free'
    d1_lib.c:(.text+0x40b): undefined reference to `pqueue_pop'
    d1_lib.c:(.text+0x432): undefined reference to `pitem_free'
    d1_lib.c:(.text+0x443): undefined reference to `pqueue_pop'
    d1_lib.c:(.text+0x46a): undefined reference to `pitem_free'
    d1_lib.c:(.text+0x47b): undefined reference to `pqueue_pop'
    /usr/local/ssl/lib/libssl.a(d1_lib.o): In function `dtls1_free':
    d1_lib.c:(.text+0x5d4): undefined reference to `pqueue_free'
    d1_lib.c:(.text+0x5e5): undefined reference to `pqueue_free'
    d1_lib.c:(.text+0x5f6): undefined reference to `pqueue_free'
    d1_lib.c:(.text+0x607): undefined reference to `pqueue_free'
    d1_lib.c:(.text+0x618): undefined reference to `pqueue_free'
    /usr/local/ssl/lib/libssl.a(d1_lib.o): In function `dtls1_new':
    d1_lib.c:(.text+0x696): undefined reference to `pqueue_new'
    d1_lib.c:(.text+0x6a1): undefined reference to `pqueue_new'
    d1_lib.c:(.text+0x6ac): undefined reference to `pqueue_new'
    d1_lib.c:(.text+0x6b7): undefined reference to `pqueue_new'
    d1_lib.c:(.text+0x6c2): undefined reference to `pqueue_new'
    d1_lib.c:(.text+0x734): undefined reference to `pqueue_free'
    d1_lib.c:(.text+0x746): undefined reference to `pqueue_free'
    d1_lib.c:(.text+0x758): undefined reference to `pqueue_free'
    d1_lib.c:(.text+0x76a): undefined reference to `pqueue_free'
    d1_lib.c:(.text+0x77c): undefined reference to `pqueue_free'
    /usr/local/ssl/lib/libssl.a(d1_pkt.o): In function
    `dtls1_buffer_record':
    d1_pkt.c:(.text+0x520): undefined reference to `pqueue_size'
    d1_pkt.c:(.text+0x56e): undefined reference to `pitem_new'
    d1_pkt.c:(.text+0x580): undefined reference to `pitem_free'
    d1_pkt.c:(.text+0x64d): undefined reference to `pqueue_insert'
    d1_pkt.c:(.text+0x6f2): undefined reference to `pitem_free'
    /usr/local/ssl/lib/libssl.a(d1_pkt.o): In function `dtls1_get_record':
    d1_pkt.c:(.text+0x12ab): undefined reference to `pqueue_peek'
    d1_pkt.c:(.text+0x12d8): undefined reference to `pqueue_pop'
    d1_pkt.c:(.text+0x1397): undefined reference to `pitem_free'
    d1_pkt.c:(.text+0x13c5): undefined reference to `pqueue_pop'
    d1_pkt.c:(.text+0x1484): undefined reference to `pitem_free'
    d1_pkt.c:(.text+0x14bd): undefined reference to `pqueue_peek'
    /usr/local/ssl/lib/libssl.a(d1_pkt.o): In function `dtls1_read_bytes':
    d1_pkt.c:(.text+0x1a61): undefined reference to `pqueue_pop'
    d1_pkt.c:(.text+0x1b28): undefined reference to `pitem_free'
    collect2: ld returned 1 exit status
    make: *** [opensmppbox] Ошибка 1



After I tried
./configure --with-ssl=/usr/lib/ssl
make have finished with success.
and make install also completed without problems
Thank you very much, you are the great! :)


Reply via email to