KlausT / ccminer-cryptonight

Software for mining various cryptocoins, like Monero (pool mining only)
GNU General Public License v3.0
133 stars 30 forks source link

make fails: undefined reference to `jsonp_dtostr' #17

Closed crypdick closed 7 years ago

crypdick commented 7 years ago
richard@motherload:~/Apps/ccminer-cryptonight$ make
make  all-recursive
make[1]: Entering directory '/home/richard/Apps/ccminer-cryptonight'
Making all in compat
make[2]: Entering directory '/home/richard/Apps/ccminer-cryptonight/compat'
Making all in jansson
make[3]: Entering directory '/home/richard/Apps/ccminer-cryptonight/compat/jansson'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/richard/Apps/ccminer-cryptonight/compat/jansson'
make[3]: Entering directory '/home/richard/Apps/ccminer-cryptonight/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/richard/Apps/ccminer-cryptonight/compat'
make[2]: Leaving directory '/home/richard/Apps/ccminer-cryptonight/compat'
make[2]: Entering directory '/home/richard/Apps/ccminer-cryptonight'
gcc  -g -O2 -pthread -L/usr/local/cuda/lib64  -o ccminer ccminer-cpu-miner.o ccminer-util.o ccminer-sha2.o cryptonight/cryptonight.o cryptonight/cuda_cryptonight_core.o cryptonight/cuda_cryptonight_extra.o ccminer-cryptonight.o crypto/ccminer-oaes_lib.o crypto/ccminer-c_keccak.o crypto/ccminer-c_groestl.o crypto/ccminer-c_blake256.o crypto/ccminer-c_jh.o crypto/ccminer-c_skein.o crypto/ccminer-aesb.o -L/home/richard/Apps/anaconda2/lib -lcurl compat/jansson/libjansson.a -lpthread  -lcudart -static-libstdc++ -fopenmp -lcrypto -lssl  -lcrypto -lssl 
compat/jansson/libjansson.a(dump.o): In function `do_dump':
/home/richard/Apps/ccminer-cryptonight/compat/jansson/dump.c:210: undefined reference to `jsonp_dtostr'
compat/jansson/libjansson.a(load.o): In function `lex_scan_number':
/home/richard/Apps/ccminer-cryptonight/compat/jansson/load.c:555: undefined reference to `jsonp_strtod'
compat/jansson/libjansson.a(load.o): In function `parse_value':
/home/richard/Apps/ccminer-cryptonight/compat/jansson/load.c:797: undefined reference to `jsonp_strtod'
collect2: error: ld returned 1 exit status
Makefile:526: recipe for target 'ccminer' failed
make[2]: *** [ccminer] Error 1
make[2]: Leaving directory '/home/richard/Apps/ccminer-cryptonight'
Makefile:726: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/richard/Apps/ccminer-cryptonight'
Makefile:396: recipe for target 'all' failed
make: *** [all] Error 2

Running Ubuntu 16.04.1 LTS, newly cloned from this repo, newly installed the latest CUDA from the NVidia website. Got a GeForce GTX 580.

werdwerdus commented 7 years ago

https://github.com/KlausT/ccminer-cryptonight/issues/14 did you run autogen first? that was my problem

crypdick commented 7 years ago

@werdwerdus Yup!

crypdick commented 7 years ago

I tried to do make clean and start over. No dice. :\

crypdick commented 7 years ago

I fixed it by totally starting from scratch.