Problem under OpenBSD

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Alan Corey alancorey at yahoo.com
Sun Dec 9 06:57:08 UTC 2012


Under OpenBSD 5.0 I get:
Linking C executable rtl_test
/usr/bin/ld: cannot find -lrt
collect2: ld returned 1 exit status
gmake[2]: *** [src/rtl_test] Error 1
gmake[1]: *** [src/CMakeFiles/rtl_test.dir/all] Error 2
gmake: *** [all] Error 2


It built librtlsdr.so.0.0, rtl_eeprom, rtl_fm, rtl_sdr, rtl_tcp so I think it mostly worked.

In /usr/tmp/hardware/rtl_dongle/osmocom/git/rtl-sdr/build/src/CMakeFiles/rtl_test.dir/link.txt I see:
-lpthread -lm -lrt -Wl


The whole link.txt says (continuation \ added by me to shorten lines):
/usr/bin/gcc  -DNDEBUG  -L/usr/local/lib CMakeFiles/rtl_test.dir/rtl_test.c.o \
 -o rtl_test  librtlsdr.so.0.0 /usr/local/lib/libusb-1.0.so.1.0 -lpthread -lm \

-lrt -Wl,-rpath,/usr/tmp/hardware/rtl_dongle/osmocom/git/rtl-sdr/build/src \
-Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib

It looks like it's trying to link against a library it hasn't installed yet.

Is this just an OpenBSD thing or has it happened to anyone else?  I saw hamlib do something similar but I had an old version of that installed.

  Alan, ab1jx


----------------------------------------------
Radio Astronomy - the ultimate DX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20121208/24249a70/attachment.htm>


More information about the osmocom-sdr mailing list