You are not logged in.

#1 2018-11-13 23:47:08

tsrnc2
Member
Registered: 2018-06-10
Posts: 2

Trying to compile binacpp from git get libcurl and libcrypto errors

clean build of https://github.com/binance-exchange/binacpp . I have to my best, followed the readme installed all dependencies and googled my errors.
I get the following warnings and errors.

/usr/bin/ld: warning: libcrypto.so.1.0.0, needed by ../lib/libcurl-7.56.0/lib/libcurl.so, may conflict with libcrypto.so.1.1
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `SSLv3_client_method@OPENSSL_1.0.0'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_parse_result@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_get_option@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_sasl_bind@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_err2string@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_abandon_ext@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_pvt_url_scheme2proto@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_unbind_ext@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_get_attribute_ber@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_init_fd@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_next_message@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_free_urldesc@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_url_parse@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_get_dn_ber@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_msgtype@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_msgfree@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_memfree@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_search_ext@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_result@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_set_option@OPENLDAP_2.4_2'
/usr/bin/ld: ../lib/libcurl-7.56.0/lib/libcurl.so: undefined reference to `ldap_first_message@OPENLDAP_2.4_2'
collect2: error: ld returned 1 exit status
make: *** [Makefile:26: example] Error 1

Last edited by tsrnc2 (2018-11-13 23:54:44)

Offline

#2 2018-11-13 23:48:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 26,203
Website

Re: Trying to compile binacpp from git get libcurl and libcrypto errors

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2018-11-14 00:18:13

jbenge1
Member
From: Lordran
Registered: 2018-04-09
Posts: 113

Re: Trying to compile binacpp from git get libcurl and libcrypto errors

what commands did you use to produce these errors?


"Dr. Madden, why don't the natural numbers include 0?" -me
"....... Take a philosophy course" -Dr. Madden

Offline

#4 2018-11-14 00:39:29

loqs
Member
Registered: 2014-03-06
Posts: 6,371

Re: Trying to compile binacpp from git get libcurl and libcrypto errors

If you remove the use of the bundled libs from https://github.com/binance-exchange/bin … c/Makefile does that resolve the issue?
Edit:

git clone https://github.com/tensaix2j/binacpp
cd binacpp/src
g++ -c binacpp_websocket.cpp -fPIC -o binacpp_websocket.o
g++ -c binacpp_logger.cpp -fPIC -o binacpp_logger.o
g++ -c binacpp_utils.cpp -fPIC -o binacpp_utils.o
g++ -fPIC -shared -lcurl -lcrypto -lwebsockets -ljsoncpp *.o -o libbinacpp.so

Last edited by loqs (2018-11-14 12:32:42)

Offline

Board footer

Powered by FluxBB