Problems installing libosmocore / gr-gsm on my Mac

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/OpenBSC@lists.osmocom.org/.

Andrea Pellegrin andreapellegrin at hotmail.it
Sun Jan 20 14:17:32 UTC 2019


Hi,
I really hope you can help me, I’m trying this for 10h.

I’m following your instruction:

https://osmocom.org/projects/gr-gsm/wiki/Installation
https://osmocom.org/projects/libosmocore/wiki/Libosmocore

Installing gr-gsm I stay still at cmake .., for libosmocore (No package 'libosmocoding' found)
So I try to install libosmocore, everything work up to make command. Infact give a lot of error, here:

Air-di-Andrea:libosmocore andreapellegrin$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in include
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
make[3]: Nothing to be done for `all-am'.
Making all in src
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
  CC       timer_clockgettime.lo
timer_clockgettime.c:78:7: error: use of undeclared identifier 'CLOCK_REALTIME_COARSE'
        case CLOCK_REALTIME_COARSE:
             ^
timer_clockgettime.c:82:7: error: use of undeclared identifier 'CLOCK_MONOTONIC_COARSE'; did you mean '_CLOCK_MONOTONIC_RAW'?
        case CLOCK_MONOTONIC_COARSE:
             ^~~~~~~~~~~~~~~~~~~~~~
             _CLOCK_MONOTONIC_RAW
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/time.h:158:1: note: '_CLOCK_MONOTONIC_RAW' declared here
_CLOCK_MONOTONIC_RAW __CLOCK_AVAILABILITY = 4,
^
timer_clockgettime.c:86:7: error: use of undeclared identifier 'CLOCK_BOOTTIME'; did you mean '_CLOCK_REALTIME'?
        case CLOCK_BOOTTIME:
             ^~~~~~~~~~~~~~
             _CLOCK_REALTIME
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/time.h:153:1: note: '_CLOCK_REALTIME' declared here
_CLOCK_REALTIME __CLOCK_AVAILABILITY = 0,
^
timer_clockgettime.c:86:7: error: duplicate case value '_CLOCK_REALTIME'
        case CLOCK_BOOTTIME:
             ^
timer_clockgettime.c:76:7: note: previous case defined here
        case CLOCK_REALTIME:
             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/time.h:154:24: note: expanded from macro 'CLOCK_REALTIME'
#define CLOCK_REALTIME _CLOCK_REALTIME
                       ^
timer_clockgettime.c:84:7: error: duplicate case value '_CLOCK_MONOTONIC_RAW'
        case CLOCK_MONOTONIC_RAW:
             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/time.h:159:29: note: expanded from macro 'CLOCK_MONOTONIC_RAW'
#define CLOCK_MONOTONIC_RAW _CLOCK_MONOTONIC_RAW
                            ^
timer_clockgettime.c:82:7: note: previous case defined here
        case CLOCK_MONOTONIC_COARSE:
             ^
5 errors generated.
make[3]: *** [timer_clockgettime.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Air-di-Andrea:libosmocore andreapellegrin$

I’m really desperate, hoping you can help me! Really thanks.
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20190120/a322fe70/attachment.htm>


More information about the OpenBSC mailing list