Could anyone please help me resolve this.
CMakeFiles/gnuradio-fcd.dir/hid/hid-libusb.c.o: In function
hid_read_timeout': /home/baz/BLD/CO9a/gnuradio/BUILD/gnuradio-3.5.3/gr-fcd/lib/hid/hid-libusb.c:990: undefined reference to
clock_gettime’
collect2: ld returned 1 exit status
make[2]: *** [gr-fcd/lib/libgnuradio-fcd-3.5.3.so.0.0.0] Error 1
I am building from from git tag v3.5.3. with cmake, make.
I have patched hid-libusb.c to add:-
#include <time.h>
…with no change.
Is there a new build require that I am missing?
I currently have the BRs that were needed for 3.5.1 in the spec file. as
I am updating our distro package from 3.5.1.
Thanks
Barry
Hi Barry - In order to help you out, we (the list) need the OS and build
system info. Although buried a bit, 3 clicks from the top-level wiki on
gnuradio.org is “Mailing L.” :: “Reporting Errors” :: “I’ve done
everything above, and I still have a question. How do I ask it?” [1]. I
encourage you (and, anyone posting such issues) to read through this
section before posting; doing so will provide the greatest chance of you
obtaining positive results quickly. - MLD
[1] <
http://gnuradio.org/redmine/projects/gnuradio/wiki/ReportingErrors#Ive-done-everything-above-and-I-still-have-a-question-How-do-I-ask-it
On Sun, Apr 15, 2012 at 03:10, Barry J. [email protected] wrote:
CMakeFiles/gnuradio-fcd.dir/hid/hid-libusb.c.o: In function
`hid_read_timeout’:
/home/baz/BLD/CO9a/gnuradio/BUILD/gnuradio-3.5.3/gr-fcd/lib/hid/hid-libusb.c:990:
undefined reference to `clock_gettime’
collect2: ld returned 1 exit status
make[2]: *** [gr-fcd/lib/libgnuradio-fcd-3.5.3.so.0.0.0] Error 1
Looks like ‘librt’ is not getting linked in on your system (and
somehow is on others.) Can you run:
$ ldd gr-fcd/lib/libgnuradio-fcd-3.5.3.so.0.0.0
…and post the output here (along with more detail on your OS and
compiler.)
Johnathan
On Sun, Apr 15, 2012 at 03:10, Barry J. [email protected] wrote:
CMakeFiles/gnuradio-fcd.dir/hid/hid-libusb.c.o: In function
`hid_read_timeout’:
/home/baz/BLD/CO9a/gnuradio/BUILD/gnuradio-3.5.3/gr-fcd/lib/hid/hid-libusb.c:990:
undefined reference to `clock_gettime’
collect2: ld returned 1 exit status
make[2]: *** [gr-fcd/lib/libgnuradio-fcd-3.5.3.so.0.0.0] Error 1
Did you work this issue out? I’m about to cut bug fix release
3.5.3.1, but would like to include any fix for this issue.
Johnathan