Hi, I am trying to configure and run OsmoTRX,OsmoBTS, OsmoNITB and LCR as per instructions at ;
http://openbsc.osmocom.org/trac/wiki/network_from_scratch
After installation of libosmocore when i run ./configure in libosmo-abis-master , I get the error below every time. Please note that I have installed libosmocore-0.6.0 but some how even while running pkg-config --modversion libosmocore command the version is reported as having value of UNKNOWN. I have also set the path of PKG_CONFIG_PATH correctly where the file libosmocore.pc is actually located but still this error is seen.
checking if gcc supports -fvisibility=hidden... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBOSMOCORE... no
configure: error: Package requirements (libosmocore >= 0.3.0) were not met:
Requested 'libosmocore >= 0.3.0' but version of Osmocom Core Library is UNKNOWN
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBOSMOCORE_CFLAGS
and LIBOSMOCORE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Please help me in this regard.
Regards,
Sarosh
Currently when using 'logging print extended-timestamp 1', the
subsecond part (milliseconds) of the printed timestamp is always 0.
This makes it difficult to correlate log entries with PCAP file
entries if there are many of them per second.
This patch changes _output in logging.c to use gettimeofday() instead
of time() when extended timestamps are enabled and replaces the '000'
by the milliseconds computed from tv_usec.
Sponsored-by: On-Waves ehf
---
src/logging.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/logging.c b/src/logging.c
index c007a45..20b0596 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -38,6 +38,7 @@
#include <strings.h>
#endif
#include <time.h>
+#include <sys/time.h>
#include <errno.h>
#include <osmocom/core/talloc.h>
@@ -254,11 +255,13 @@ static void _output(struct log_target *target, unsigned int subsys,
if (!cont) {
if (target->print_ext_timestamp) {
struct tm tm;
- time_t timep = time(NULL);
- localtime_r(&timep, &tm);
- ret = snprintf(buf + offset, rem, "%04d%02d%02d%02d%02d%02d000 ",
+ struct timeval tv;
+ gettimeofday(&tv, NULL);
+ localtime_r(&tv.tv_sec, &tm);
+ ret = snprintf(buf + offset, rem, "%04d%02d%02d%02d%02d%02d%03d ",
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
- tm.tm_hour, tm.tm_min, tm.tm_sec);
+ tm.tm_hour, tm.tm_min, tm.tm_sec,
+ (int)(tv.tv_usec / 1000));
if (ret < 0)
goto err;
OSMO_SNPRINTF_RET(ret, rem, offset, len);
--
1.9.1
I'm trying to make a Docker image to install network in a box and am having
some trouble getting libosmocore to build.
>From a base debian image, I'm running
apt-get update && apt-get -y upgrade && apt-get -y install wget
libopencore-amrwb0 libopencore-amrnb0 libortp8 libortp-dev
libopencore-amrnb-dev libopencore-amrwb-dev sqlite3 libdbi-dev libdbi1
libdbd-sqlite3 git build-essential automake libtool libpcsclite1
libpcsclite-dev
then:
git clone git://git.osmocom.org/libosmocore.git
cd libosmocore
autoreconf -i
./configure
The error I'm currently getting is:
checking whether struct tm has tm_gmtoff member... yes
./configure: line 12023: syntax error near unexpected token `PCSC,'
./configure: line 12023: ` PKG_CHECK_MODULES(PCSC, libpcsclite)'
Any advice? Thanks,
Stephen
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I'm trying to get AMR to work (in TCH/F mode) on osmo-nitb.
LCR is compiled with the correct codecs, but looking at the MNCC
traffic I only get GSM FR coming from the osmo-nitb side.
I already set this in osmo-nitb.cfg:
mncc-int
default-codec tch-f amr
default-codec tch-h amr
Any clue about this?
Cheers
Ciaby
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJU/3IvAAoJEPU83OtbD4fQmOMP/i46E//ide5JlScpZsN5oVCA
u1cYIihZLpHPfKiGYhIp+A7/zX0FQpgiVKYh0n8A58H4UvF9wxG9ZZmX5B9D02aW
8eexmH5jeOAHj7YlHGPl0dK2RAOYie43kFevftPco21o7QmsylZ9+Z1lWn6OREDn
R1Mix39wqq0feXxfhaMq/Y5j9XCjGOUS7FXDtuaCjlUANBcmp45WfXwhbwVfeLzX
vTwHZ0mfQQ4Uyln8Y1gZL6MdF2WqHYEWND+qB6Aj+QKMLAeFr8yq5hapfev+PKwC
kK4MoSJwW2aUi2TGuZqOZM9daJn7BhVfjf56TycyAMTHP3sJSNJKJ8vEzCUZy1ir
CmSVe3m+C3QOBVRzbUYR0/sTBJ11+WcNdOMnM4sJCdz1guTzzMMjj4U3RKcMalaj
KaqEsdBrpvQ+MRcE07aaRU/wm4ZG89r/enEmyqtIIzKVzJBgjyeZFQw0I5ca9TKA
DNgwjcQ3FmHt4iAkDLbQK9OX3fkCcAkmC56bOKl1V16Es9fknrtadRGsLf9a2SzI
B1sfVbfjZQ9r7Tag1cv6CUv0NcDK1BNs7VOxSvABFkkAjllbcy1j3HF0H2pMfPqo
3bOJXZ0N4a887lYae7ltPB4IGN9eHBVQwoQCA1yW1xL9AQtRuIiMQuFmodfSH7ij
EHzL0rIjViIlxKzJGyDK
=Fin+
-----END PGP SIGNATURE-----