Post
Topic
Board Mining (Altcoins)
Re: [ANN] cudaMiner - a new litecoin mining application [Windows/Linux]
by
tachyon_john
on 22/03/2014, 01:33:39 UTC
is the CudaMiner master branch broken atm.? I'm getting an error when compiling under ubuntu 13.10:

Code:
g++  -g -O2 -pthread -L/usr/local/cuda/lib64  -o cudaminer cudaminer-cpu-miner.o cudaminer-util.o wrapnvml.o cudaminer-sha2.o cudaminer-scrypt.o cudaminer-maxcoin.o cudaminer-blakecoin.o cudaminer-sha3.o cudaminer-scrypt-jane.o salsa_kernel.o sha256.o keccak.o blake.o cudaminer-blake.o fermi_kernel.o kepler_kernel.o test_kernel.o nv_kernel.o nv_kernel2.o titan_kernel.o -L/usr/lib/x86_64-linux-gnu -lcurl compat/jansson/libjansson.a -lpthread  -lcudart -fopenmp -lcrypto -lssl  -lcrypto -lssl
/usr/bin/ld: wrapnvml.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

A -l dl or -ldl (??)  linker option in the Makefile.am might help  (don't forget ./autogen.sh afterwards)


cudaminer_LDFLAGS       = $(PTHREAD_FLAGS) @CUDA_LDFLAGS@ -l
cudaminer_LDFLAGS       = $(PTHREAD_FLAGS) @CUDA_LDFLAGS@ -ld
cudaminer_LDFLAGS       = $(PTHREAD_FLAGS) @CUDA_LDFLAGS@ -ldl

none of them worked Sad

Are you cross compiling or anything unusual?
What do you get if you list your system libraries, libdl.so and libdl.a should be part of your Linux install, hrere's a listing on my CentOS 6.5 box:
orion - johns:/home/johns/cudaminer/mine % ls -al /lib/libdl*
-rwxr-xr-x. 1 root root 17892 Nov 21 15:13 /lib/libdl-2.12.so
lrwxrwxrwx. 1 root root    13 Feb 27 22:28 /lib/libdl.so.2 -> libdl-2.12.so
orion - johns:/home/johns/cudaminer/mine % ls -al /lib64/libdl*
-rwxr-xr-x. 1 root root 22536 Nov 21 15:38 /lib64/libdl-2.12.so
lrwxrwxrwx. 1 root root    13 Feb 27 14:16 /lib64/libdl.so.2 -> libdl-2.12.so