Trx Make error

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

Bilguun Tugs infibiti16 at gmail.com
Mon May 20 11:04:24 UTC 2019


*root at bilguun-shady:~/Desktop/trx/src# make
HOST_layer23_CONFARGS=--enable-transceiver*
There is another problem on building trx. Im doing this article step by
step.
In this command there comes into that error.

make[3]: Entering directory
'/home/bilguun/Desktop/trx/src/host/layer23/src/mobile'
  CC       gsm322.o
gsm322.c: In function ‘gsm322_cs_select’:
gsm322.c:1865:3: warning: ‘gsm_arfcn2band’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:164): Use gsm_arfcn2band_rc()
instead [-Wdeprecated-declarations]
   band = gsm_arfcn2band(index2arfcn(i));
   ^
gsm322.c: In function ‘gsm322_search_end’:
gsm322.c:2055:30: warning: variable ‘mnc’ set but not used
[-Wunused-but-set-variable]
  int tune_back = 0, mcc = 0, mnc = 0;
                              ^
gsm322.c: In function ‘gsm322_nb_check’:
gsm322.c:4196:3: warning: ‘gsm_arfcn2band’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:164): Use gsm_arfcn2band_rc()
instead [-Wdeprecated-declarations]
   band = gsm_arfcn2band(nb->arfcn);
   ^
gsm322.c: In function ‘gsm322_nb_new_rxlev’:
gsm322.c:4693:2: warning: ‘gsm_arfcn2band’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:164): Use gsm_arfcn2band_rc()
instead [-Wdeprecated-declarations]
  int band = gsm_arfcn2band(cs->arfcn);
  ^
gsm322.c: In function ‘gsm322_exit’:
gsm322.c:5142:7: warning: variable ‘rc’ set but not used
[-Wunused-but-set-variable]
   int rc;
       ^
In file included from /usr/include/string.h:635:0,
                 from gsm322.c:25:
In function ‘memset’,
    inlined from ‘bargraph.constprop’ at gsm322.c:325:2:
/usr/include/i386-linux-gnu/bits/string3.h:86:7: warning: call to
‘__warn_memset_zero_len’ declared with attribute warning: memset used with
constant zero length parameter; this could be due to transposed parameters
       __warn_memset_zero_len ();
       ^
  CC       gsm480_ss.o
gsm480_ss.c: In function ‘gsm480_tx_ussd’:
gsm480_ss.c:535:2: warning: ‘gsm_7bit_encode’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:242): Use gsm_7bit_encode_n()
instead [-Wdeprecated-declarations]
  length = gsm_7bit_encode(msg->data, text);
  ^
gsm480_ss.c: In function ‘gsm480_rx_ussd’:
gsm480_ss.c:779:2: warning: ‘gsm_7bit_decode’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:240): Use gsm_7bit_decode_n()
instead [-Wdeprecated-declarations]
  gsm_7bit_decode(text, tag_data, num_chars);
  ^
gsm480_ss.c: In function ‘gsm480_mmss_ind’:
gsm480_ss.c:1221:6: warning: variable ‘rc’ set but not used
[-Wunused-but-set-variable]
  int rc = 0;
      ^
  CC       gsm411_sms.o
gsm411_sms.c: In function ‘sms_from_text’:
gsm411_sms.c:116:2: warning: ‘gsm_7bit_encode’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:242): Use gsm_7bit_encode_n()
instead [-Wdeprecated-declarations]
  sms->user_data_len = gsm_7bit_encode(sms->user_data, sms->text);
  ^
gsm411_sms.c: In function ‘gsm340_rx_tpdu’:
gsm411_sms.c:285:4: warning: ‘gsm_7bit_decode’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:240): Use gsm_7bit_decode_n()
instead [-Wdeprecated-declarations]
    gsm_7bit_decode(gsms->text, smsp, gsms->user_data_len);
    ^
gsm411_sms.c:228:19: warning: variable ‘sms_mms’ set but not used
[-Wunused-but-set-variable]
  uint8_t sms_mti, sms_mms;
                   ^
gsm411_sms.c: In function ‘gsm411_rx_rp_ud’:
gsm411_sms.c:375:2: warning: format ‘%li’ expects argument of type ‘long
int’, but argument 7 has type ‘int’ [-Wformat=]
  LOGP(DLSMS, LOGL_INFO, "TPDU(%li,%s)\n", msg->tail-msg->l4h,
  ^
gsm411_sms.c:375:2: warning: format ‘%li’ expects argument of type ‘long
int’, but argument 7 has type ‘int’ [-Wformat=]
  CC       gsm48_cc.o
  CC       gsm48_mm.o
gsm48_mm.c: In function ‘decode_network_name’:
gsm48_mm.c:269:2: warning: ‘gsm_7bit_decode’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:240): Use gsm_7bit_decode_n()
instead [-Wdeprecated-declarations]
  gsm_7bit_decode(name, lv + 2, length);
  ^
gsm48_mm.c: In function ‘gsm48_mmr_dequeue’:
gsm48_mm.c:780:20: warning: variable ‘mmr’ set but not used
[-Wunused-but-set-variable]
  struct gsm48_mmr *mmr;
                    ^
gsm48_mm.c: In function ‘gsm48_mm_conn_go_dedic’:
gsm48_mm.c:3252:25: warning: variable ‘nmmh’ set but not used
[-Wunused-but-set-variable]
  struct gsm48_mmxx_hdr *nmmh;
                         ^
gsm48_mm.c: In function ‘gsm48_mm_sync_ind_active’:
gsm48_mm.c:3333:25: warning: variable ‘nmmh’ set but not used
[-Wunused-but-set-variable]
  struct gsm48_mmxx_hdr *nmmh;
                         ^
gsm48_mm.c: In function ‘gsm48_rcv_rr_sapi3’:
gsm48_mm.c:3603:28: warning: variable ‘nmmh’ set but not used
[-Wunused-but-set-variable]
     struct gsm48_mmxx_hdr *nmmh;
                            ^
  CC       gsm48_rr.o
gsm48_rr.c: In function ‘gsm48_rr_tx_rand_acc’:
gsm48_rr.c:1668:3: warning: ‘gsm_arfcn2band’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:164): Use gsm_arfcn2band_rc()
instead [-Wdeprecated-declarations]
   LOGP(DRR, LOGL_INFO, "Use alternative tx-power %d (%d dBm)\n",
   ^
gsm48_rr.c:1668:3: warning: ‘gsm_arfcn2band’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:164): Use gsm_arfcn2band_rc()
instead [-Wdeprecated-declarations]
gsm48_rr.c:1676:4: warning: ‘gsm_arfcn2band’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:164): Use gsm_arfcn2band_rc()
instead [-Wdeprecated-declarations]
    LOGP(DRR, LOGL_INFO, "Use MS-TXPWR-MAX-CCH power value "
    ^
gsm48_rr.c:1676:4: warning: ‘gsm_arfcn2band’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:164): Use gsm_arfcn2band_rc()
instead [-Wdeprecated-declarations]
gsm48_rr.c:1683:4: warning: ‘gsm_arfcn2band’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:164): Use gsm_arfcn2band_rc()
instead [-Wdeprecated-declarations]
    LOGP(DRR, LOGL_INFO, "Use MS-TXPWR-MAX-CCH power value "
    ^
gsm48_rr.c:1683:4: warning: ‘gsm_arfcn2band’ is deprecated (declared at
/usr/local/include/osmocom/gsm/gsm_utils.h:164): Use gsm_arfcn2band_rc()
instead [-Wdeprecated-declarations]
gsm48_rr.c: In function ‘gsm48_rr_tx_meas_rep’:
gsm48_rr.c:2736:53: warning: variable ‘multi_rep’ set but not used
[-Wunused-but-set-variable]
  uint8_t rep_ba = 0, rep_valid = 0, meas_valid = 0, multi_rep = 0;
                                                     ^
gsm48_rr.c: At top level:
gsm48_rr.c:813:13: warning: ‘start_rr_t3124’ defined but not used
[-Wunused-function]
 static void start_rr_t3124(struct gsm48_rrlayer *rr, int sec, int micro)
             ^
  CC       mnccms.o
  CC       settings.o
  CC       subscriber.o
subscriber.c: In function ‘gsm_subscr_generate_kc’:
subscriber.c:947:4: warning: ‘comp128’ is deprecated (declared at
/usr/local/include/osmocom/gsm/comp128.h:22): Use generic API from
osmocom/crypt/auth.h instead [-Wdeprecated-declarations]
    comp128(set->test_ki, rand, sres, subscr->key);
    ^
  CC       support.o
  CC       transaction.o
  CC       vty_interface.o
vty_interface.c: In function ‘ms_vty_init’:
vty_interface.c:2840:2: warning: ‘install_default’ is deprecated (declared
at /usr/local/include/osmocom/vty/command.h:364): Now happens implicitly
with install_node() [-Wdeprecated-declarations]
  install_default(MS_NODE);
  ^
vty_interface.c:2885:2: warning: ‘install_default’ is deprecated (declared
at /usr/local/include/osmocom/vty/command.h:364): Now happens implicitly
with install_node() [-Wdeprecated-declarations]
  install_default(SUPPORT_NODE);
  ^
vty_interface.c:2943:2: warning: ‘install_default’ is deprecated (declared
at /usr/local/include/osmocom/vty/command.h:364): Now happens implicitly
with install_node() [-Wdeprecated-declarations]
  install_default(TESTSIM_NODE);
  ^
  CC       voice.o
  CC       mncc_sock.o
  AR       libmobile.a
ar: `u' modifier ignored since `D' is the default (see `U')
  CC       main.o
main.c: In function ‘main’:
main.c:220:2: warning: ‘msgb_set_talloc_ctx’ is deprecated (declared at
/usr/local/include/osmocom/core/msgb.h:734): Use msgb_talloc_ctx_init()
instead [-Wdeprecated-declarations]
  msgb_set_talloc_ctx(l23_ctx);
  ^
  CC       app_mobile.o
app_mobile.c:376:2: warning: initialization from incompatible pointer type
  .go_parent_cb = ms_vty_go_parent,
  ^
app_mobile.c:376:2: warning: (near initialization for
‘vty_info.go_parent_cb’)
  CCLD     mobile
libmobile.a(gsm322.o): In function `memset':
/usr/include/i386-linux-gnu/bits/string3.h:86: undefined reference to
`__warn_memset_zero_len'
collect2: error: ld returned 1 exit status
Makefile:379: recipe for target 'mobile' failed
make[3]: *** [mobile] Error 1
make[3]: Leaving directory
'/home/bilguun/Desktop/trx/src/host/layer23/src/mobile'
Makefile:325: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/bilguun/Desktop/trx/src/host/layer23/src'
Makefile:350: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/bilguun/Desktop/trx/src/host/layer23'
Makefile:51: recipe for target 'layer23' failed
make: *** [layer23] Error 2

What should i do ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20190520/2e44101f/attachment.htm>


More information about the baseband-devel mailing list