Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues while compling #7

Open
RaniRaven opened this issue Jun 5, 2018 · 2 comments
Open

Issues while compling #7

RaniRaven opened this issue Jun 5, 2018 · 2 comments

Comments

@RaniRaven
Copy link

I get the following -
g++ -O2 -Wall -g -I/usr/local/include/evhtp -pthread -L/usr/lib -o obsrv srvapi.o obsrv.o Market.o Order.o HttpUtil.o libobcommon.a -levhtp -lunivalue -levent_core -levent_openssl -lssl -lcrypto -luuid
obsrv.o: In function reqInit(evhtp_request*, ReqState*, HttpApiEntry const*) [clone .constprop.71]': ~/cpptrade/obsrv.cc:153: undefined reference to evhtp_request_set_hook'
obsrv.o: In function upload_headers_cb(evhtp_request*, evhtp_kvs*, void*)': ~/cpptrade/obsrv.cc:245: undefined reference to evhtp_request_set_hook'
obsrv.o: In function main': ~/cpptrade/obsrv.cc:405: undefined reference to evhtp_callback_set_hook'
collect2: error: ld returned 1 exit status
Makefile:685: recipe for target 'obsrv' failed

No idea why. I've compiled successfuly the libevthp, but something (some reference is not found there).
Any idea ?

@nirajrussspacetech
Copy link

I am getting same error:
make all-am
make[1]: Entering directory '/home/uss/Work/Trade_Server/cpptrade-master'
g++ -O2 -g -Wall -I/home/uss/Work/Trade_Server/libevhtp-develop/build/include -I/home/uss/Work/Trade_Server/libevhtp-develop/include -I/home/uss/Work/Trade_Server/univalue-master/include -L/home/uss/Work/Trade_Server/univalue-master/lib -pthread -o obsrv srvapi.o obsrv.o Market.o Order.o HttpUtil.o libobcommon.a -levhtp -lunivalue -levent_core -levent_openssl -lssl -lcrypto -luuid
obsrv.o: In function reqInit(evhtp_request*, ReqState*, HttpApiEntry const*)': /home/uss/Work/Trade_Server/cpptrade-master/obsrv.cc:153: undefined reference to evhtp_request_set_hook'
obsrv.o: In function upload_headers_cb(evhtp_request*, evhtp_kvs*, void*)': /home/uss/Work/Trade_Server/cpptrade-master/obsrv.cc:245: undefined reference to evhtp_request_set_hook'
obsrv.o: In function main': /home/uss/Work/Trade_Server/cpptrade-master/obsrv.cc:405: undefined reference to evhtp_callback_set_hook'
collect2: error: ld returned 1 exit status
Makefile:685: recipe for target 'obsrv' failed
make[1]: *** [obsrv] Error 1
make[1]: Leaving directory '/home/uss/Work/Trade_Server/cpptrade-master'
Makefile:577: recipe for target 'all' failed
make: *** [all] Error 2

Kindly help

@nirajrussspacetech
Copy link

I solved this error by downloading the evhtp from git.
and manually compiling and installing as described in git
Also perform "sudo make install" to install all files in /usr/local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants