Hello,
When following the network_from_scratch instructions with a Linaro Ubuntu 12.11 host, I encountered a build error when it came to OsmoBTS:
linaro-ubuntu-desktop:~/osmocom/osmo-bts> make Making all in include make[1]: Entering directory `/home/linaro/osmocom/osmo-bts/include' Making all in osmo-bts make[2]: Entering directory `/home/linaro/osmocom/osmo-bts/include/osmo-bts' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/linaro/osmocom/osmo-bts/include/osmo-bts' make[2]: Entering directory `/home/linaro/osmocom/osmo-bts/include' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/home/linaro/osmocom/osmo-bts/include' make[1]: Leaving directory `/home/linaro/osmocom/osmo-bts/include' Making all in src make[1]: Entering directory `/home/linaro/osmocom/osmo-bts/src' Making all in common make[2]: Entering directory `/home/linaro/osmocom/osmo-bts/src/common' CC gsm_data_shared.o CC sysinfo.o CC logging.o CC abis.o abis.c: In function ‘abis_sock_cb’: abis.c:360:2: warning: #warning HACK [-Wcpp] CC oml.o oml.c: In function ‘rx_oml_ipa_rsl_connect’: oml.c:1049:17: warning: assignment from incompatible pointer type [enabled by default] oml.c:1053:2: warning: passing argument 1 of ‘abis_open’ from incompatible pointer type [enabled by default] ../../include/osmo-bts/abis.h:35:5: note: expected ‘struct ipabis_link *’ but argument is of type ‘struct e1inp_sign_link *’ CC bts.o CC rsl.o rsl.c:140:2: warning: #warning merge lchan_lookup with OpenBSC [-Wcpp] rsl.c: In function ‘get_rsl_local_ip’: rsl.c:1265:32: error: ‘struct e1inp_sign_link’ has no member named ‘bfd’ rsl.c: In function ‘rsl_rx_ipac_XXcx’: rsl.c:1398:5: warning: initialization from incompatible pointer type [enabled by default] make[2]: *** [rsl.o] Error 1 make[2]: Leaving directory `/home/linaro/osmocom/osmo-bts/src/common' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/linaro/osmocom/osmo-bts/src' make: *** [all-recursive] Error 1 linaro-ubuntu-desktop:~/osmocom/osmo-bts>
This was resolved by building from branch jolly/trx_rebased instead of jolly/trx. Should we now be using the rebased branch? If so I will update the wiki.
Regards,
Andrew
Andrew Back wrote:
hi andrew,
This was resolved by building from branch jolly/trx_rebased instead of jolly/trx. Should we now be using the rebased branch? If so I will update the wiki.
i have pushed all commits of jolly/trx_rebased to jolly/trx branch. jolly/trx_rebased is now obsolete and so i removed it.
in order to make the current jolly/trx branch compile, a special patch for libosmo-abis is required. i pushed the patch to jolly/multi-trx branch of libosmo-abis. check it out and install it first.
i have update the network_from_scratch wiki page. if i didn't make a mistake, jolly/trx branch should compile now. thanks for pointing out this problem.
best regards,
andreas