I want to make dmrshark from https://github.com/nonoo/dmrshark ,but when I make that, it gives an error while making it. Can anybody help me?

Error message:

make[2]: Leaving directory `/home/m/sdr/dmrshark/libs/aprs'
gcc  -DDMRSHARK_BUILD -g -Wall -std=gnu99 -O0 -DGITHASH=\"ac306a84b6ed4a4167e272f05b32dad200715574\" -DDEFAULTCONFIG="<config/defaults.h>" -DAPPCONFIGFILE=\"/home/m/sdr/dmrshark//config/app/dmrshark.h\" -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include   -DARCH_X86 -funsigned-bitfields -funsigned-char -Wno-unused-result -DAMBEDECODEVOICE -DMP3ENCODEVOICE  -I../../make/..  dmrshark-dmrshark.o  -L../../make/../libs -Wl,--start-group  -lbase-dmrshark  -lconfig-dmrshark  -ldaemon-dmrshark  -lcomm-dmrshark  -lremotedb-dmrshark  -ldmrpacket-dmrshark  -lcoding-dmrshark  -lvoicestreams-dmrshark  -laprs-dmrshark  -lpcap  -lsnmp  -lmysqlclient  -lpthread  -lwebsockets  -lmbe  -lmp3lame -Wl,--end-group  -lglib-2.0   -o dmrshark-build-ac306a
/usr/bin/ld: ../../make/../libs/libvoicestreams-dmrshark.a(voicestreams-process-dmrshark.o): undefined reference to symbol 'sqrtf@@GLIBC_2.0'
//lib/i386-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: ld returned 1 exit status
make[1]: *** [dmrshark-build-ac306a] Error 1
make[1]: Leaving directory `/home/m/sdr/dmrshark/build/dmrshark'
make: *** [all] Error 2
  • Are you sure you have installed all the required dependencies?
    – edwinksl
    Jun 30 '16 at 9:22
  • @edwinksl : yes ... i install this package ibglib2.0-dev,libpcap-dev,libsnmp-dev,libmysqlclient-dev,libwebsockets,libmp3lame-dev and mbelib ....
    – Ali Begloo
    Jun 30 '16 at 9:29
  • DSO missing from command line usually means you missed a library (in this case -lm); however I would expect -std=gnu99 to use a builtin sqrtf in this case. FWIW it appears to build fine on my 14.04 64-bit machine, so perhaps it's something specific to 32-bit platforms? BTW exactly what platform / Ubuntu version are you using? Jun 30 '16 at 12:34
  • @steeldriver : 14.04 ... are you sure it's with the latest updates ? I had no luck with Ubuntu 14.04.4 - 64 : A missing *@GLIBC_2.2.5 . Nor with 16.04 - 64 ... But Ubuntu 12.04.5 - 64 could create the executable dmrshark-build-ac306a , etc. Jun 30 '16 at 13:05
  • Oops sorry - there were errors, I just didn't notice them because make didn't stop. Please ignore that comment. Jun 30 '16 at 13:13

Ubuntu 12.04.5 - 64, dmrshark :

sudo apt-get install g++ git cmake libglib2.0-dev libpcap-dev libsnmp-dev libmysqlclient-dev libmp3lame-dev

Sources ...

git clone https://github.com/warmcat/libwebsockets.git
git clone https://github.com/szechyjs/mbelib.git
git clone https://github.com/nonoo/dmrshark.git

Build the libraries libwebsockets, mbelib, and install with sudo make install.

cd dmrshark/, 1) Move away the folder files/ : mv files/ ../, i.e. the very simple Makefile´s will try to 'make' anything, also data files, and thus fail. 2) cp build/Makefile tests/ . (A missing Makefile in tests/.)

Next : make ( The make install fails. But you have the executable´s, and can use them as is.)

Or get a copy here https://drive.google.com/file/d/0B7S255p3kFXNOFQ5MG9aZkxrY3c/view?usp=sharing

  • thanks ... i try it in ubuntu 12.04. -64 and compile dmrshark successful. thank you a lot.
    – Ali Begloo
    Jun 30 '16 at 19:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.