<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<span style="font-family: arial; font-size: 10pt;">Hi Everyone,</span><div style="font-family: arial; font-size: small;"><br></div><div style="font-family: arial; font-size: small;"><div>When i tried to install the osmocombb for the first time which was a couple of days back i encountered with a problem and did some minor modification in the code.</div><div><br></div><div>>gsm411_sms.c: In function ‘gsm411_tx_sms_submit’:</div><div>>gsm411_sms.c:657: warning: passing argument 4 of ‘gsm411_smc_init’ from incompatible pointer type</div><div>>/usr/local/include/osmocom/gsm/gsm0411_smc.h:46: note: expected ‘int (*)(struct gsm411_smc_inst *, int,  struct msgb *, int)’ but argument is of type ‘int (*)(struct gsm411_smc_inst *, int,  struct msgb *)’</div><div>>gsm411_sms.c:657: error: too many arguments to function ‘gsm411_smc_init’</div><div>>gsm411_sms.c:659: error: too many arguments to function ‘gsm411_smr_init’</div><div>>gsm411_sms.c: In function ‘gsm411_rcv_sms’:</div><div>>gsm411_sms.c:911: warning: passing argument 4 of ‘gsm411_smc_init’ from incompatible pointer type</div><div>>/usr/local/include/osmocom/gsm/gsm0411_smc.h:46: note: expected ‘int (*)(struct gsm411_smc_inst *, int,  struct msgb *, int)’ but argument is of type ‘int (*)(struct gsm411_smc_inst *, int,  struct msgb *)’</div><div><br></div><div>by seeing this error i opened the respective file(gsm411_sms.c) in my local pc and i observed that the lines which was mentioned as error  and find the below .</div><div><br></div><div>gsm411_smc_init(&trans->sms.smc_inst, transaction_id, 0,</div><div><span class="Apple-tab-span" style="white-space: pre;">               </span>gsm411_mn_recv, gsm411_mm_send);</div><div><br></div><div>but in the header file (gsm0411_smc.h) only four arguments are defined </div><div><br></div><div>void gsm411_smc_init(struct gsm411_smc_inst *inst, int network,</div><div>        int (*mn_recv) (struct gsm411_smc_inst *inst, int msg_type,</div><div>                        struct msgb *msg),</div><div><br></div><div>so i removed the extra argument transaction_id in the function(gsm411_smc_init) and also did the same with the respective lines where i was getting an error (from the file gsm411_sms.c).</div><div><br></div><div>i have done a change like the below by assuming thatevery msg is a mobile originated mesage </div><div><br></div><div>gsm411_smc_init(&trans->sms.smc_inst, transaction_id, 0,</div><div><span class="Apple-tab-span" style="white-space: pre;">           </span>gsm411_mn_recv, gsm411_mm_send);</div><div><br></div><div>Kindly assist me if i was doing wrong.</div><div><br></div><div>Thanks in advance and Apologies if my observation was wrong. </div></div><div style="font-family: arial; font-size: small;"><br></div><div style="font-family: arial; font-size: small;">Regards,</div><div style="font-family: arial; font-size: small;">Bharath </div>                                         </div></body>
</html>