Compile problem with layer23

Hi, Baseband-Devel

I'm trying to compile osmocom-bb code pulled from your git repository.
I've problem to compile layer23.

These are lines from Makefile:

all: libosmocore-target nofirmware firmware mtk-firmware
nofirmware: layer23 osmocon  gsmmap


If I remove "layer23" from "nofirmware:" complilng is done successfully.


Compiling errors:

In file included from ../../include/osmocom/bb/mobile/transaction.h:6:0,
                 from gsm411_sms.c:38:
/usr/local/include/osmocom/gsm/gsm0411_smr.h:27:6: note: declared here
 void gsm411_smr_init(struct gsm411_smr_inst *inst, int network,
      ^
make[3]: *** [gsm411_sms.o] Error 1
make[3]: Leaving directory `/home/northmirko/osmocom-bb/src/host/layer23/src/mobile'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/northmirko/osmocom-bb/src/host/layer23/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/northmirko/osmocom-bb/src/host/layer23'
make: *** [host/layer23/layer23] Error 2



Re: Compile problem with layer23

> In file included from ../../include/osmocom/bb/mobile/transaction.h:6:0,
>                  from gsm411_sms.c:38:
> /usr/local/include/osmocom/gsm/gsm0411_smr.h:27:6: note: declared here
>  void gsm411_smr_init(struct gsm411_smr_inst *inst, int network,

You need a newer libosmocore. Take it from the libosmocore.git
http://git.osmocom.org/libosmocore/ .... DO NOT use the one in the
osmocom-bb git, this one is specially crafted for the ARM firmware
build.

Cheers,

    Sylvain

Re: Compile problem with layer23

You save my day,

Thanks

On 12.09.2014. 11:47, Sylvain Munaut wrote:
>> In file included from ../../include/osmocom/bb/mobile/transaction.h:6:0,
>>                   from gsm411_sms.c:38:
>> /usr/local/include/osmocom/gsm/gsm0411_smr.h:27:6: note: declared here
>>   void gsm411_smr_init(struct gsm411_smr_inst *inst, int network,
>
> You need a newer libosmocore. Take it from the libosmocore.git
> http://git.osmocom.org/libosmocore/ .... DO NOT use the one in the
> osmocom-bb git, this one is specially crafted for the ARM firmware
> build.
>
>
> Cheers,
>
>      Sylvain
>