Bug #3160
closed/usr/local/lib/libosmocore.so: undefined reference to `clock_gettime' collect2: ld returned 1 exit status
0%
Description
1、install libosmocore
------------------------
- sudo apt-get install build-essential libtool libtalloc-dev shtool autoconf automake git-core pkg-config make gcc libpcsclite-dev
- git clone git://git.osmocom.org/libosmocore.git
- cd libosmocore/
- autoreconf -i
- ./configure
- make
- sudo make install
- cd ..
- sudo ldconfig
i
-----------------------
2、Install Osmocom-BB
------------------------ - git clone git://git.osmocom.org/osmocom-bb.git
- git checkout sylvain/testing
#nano src/target/firmware/Makefile
CFLAGS += -DCONFIG_TX_ENABLE - cd src
- make HOST_layer23_CONFARGS=--enable-transcriver
------------------------
● Error
------------------------
make1: Entering directory `/home/hackliu/osmocom-bb/src/host/osmocon'
make all-am
make2: Entering directory `/home/hackliu/osmocom-bb/src/host/osmocon'
CCLD osmocon
/usr/local/lib/libosmocore.so: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make2: * [osmocon] Error 1
make2: Leaving directory `/home/hackliu/osmocom-bb/src/host/osmocon'
make1: [all] Error 2
make1: Leaving directory `/home/hackliu/osmocom-bb/src/host/osmocon'
make: ** [osmocon] Error 2
------------------------
Please help me to solve the problem, thank you.
Related issues
Updated by laforge over 5 years ago
- Related to Bug #3176: osmocom debian packages are not install / upgrade tested added
Updated by laforge over 5 years ago
- Related to deleted (Bug #3176: osmocom debian packages are not install / upgrade tested)
Updated by zecke over 5 years ago
Which Operating system is this? clock_gettime is within "libc.so" (glibc) since ages. I assume in your case it is still in librt.so?
Updated by keith over 5 years ago
I worked around this with LDFLAGS=-lrt when building libosmocore on an Ubuntu 12 system, which is yes... VERY old, I know.
Updated by fixeria over 5 years ago
- Status changed from New to Closed
This is definitely not a problem of OsmocomBB. And seems this should be fixed by I5bebc6e01fc9d238065bc2517058f0ba85620349.
Updated by fixeria over 5 years ago
- Has duplicate Bug #3159: /usr/local/lib/libosmocore.so: undefined reference to `clock_gettime' added