Checkout the SAME version of Kannel and opensmppbox (e.g. svn HEAD).

Then do a make install for Kannel first.

And then compile opensmppbox.

 

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of ahmed qadeer
Sent: maandag 15 juni 2015 8:00
To: users@kannel.org
Subject: Kannel Opensmppbox

 

Hello Everyone

I am facing issue while compiling Kannel- Opensmppbox and getting error

*********************************************************

n file included from opensmppbox.c:77:0:
/usr/local/include/kannel/gw/smsc/smpp_pdu.h:237:6: note: expected ‘struct 
SMPP_PDU *’ but argument is of type ‘struct Octstr *’
 void smpp_pdu_dump(SMPP_PDU *pdu);
      ^
opensmppbox.c:348:9: error: too many arguments to function ‘smpp_pdu_dump’
         smpp_pdu_dump(id, pdu);                 \
         ^
opensmppbox.c:622:5: note: in expansion of macro ‘dump_pdu’
     dump_pdu("Sending PDU:", id, pdu);
     ^
In file included from opensmppbox.c:77:0:
/usr/local/include/kannel/gw/smsc/smpp_pdu.h:237:6: note: declared here
 void smpp_pdu_dump(SMPP_PDU *pdu);
      ^
opensmppbox.c: In function ‘handle_pdu’:
opensmppbox.c:1513:23: warning: passing argument 1 of ‘smpp_pdu_dump’ from 
incompatible pointer type
  dump_pdu("Got PDU:", box->boxc_id, pdu);
                       ^
opensmppbox.c:348:23: note: in definition of macro ‘dump_pdu’
         smpp_pdu_dump(id, pdu);                 \
                       ^
In file included from opensmppbox.c:77:0:
/usr/local/include/kannel/gw/smsc/smpp_pdu.h:237:6: note: expected ‘struct 
SMPP_PDU *’ but argument is of type ‘struct Octstr *’
 void smpp_pdu_dump(SMPP_PDU *pdu);
      ^
opensmppbox.c:348:9: error: too many arguments to function ‘smpp_pdu_dump’
         smpp_pdu_dump(id, pdu);                 \
         ^
opensmppbox.c:1513:2: note: in expansion of macro ‘dump_pdu’
  dump_pdu("Got PDU:", box->boxc_id, pdu);
  ^
In file included from opensmppbox.c:77:0:
/usr/local/include/kannel/gw/smsc/smpp_pdu.h:237:6: note: declared here
 void smpp_pdu_dump(SMPP_PDU *pdu);
      ^
Makefile:267: recipe for target 'opensmppbox.o' failed
make[2]: *** [opensmppbox.o] Error 1
make[2]: Leaving directory '/usr/src/kannel-opensmppbox-master/gw'
Makefile:283: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/kannel-opensmppbox-master'
Makefile:209: recipe for target 'all' failed
make: *** [all] Error 2                         


*************************************************************

I have tried using Kannel with different versions 1.4.4, 1.5.0 and svn5026 also 

Would really appreciate a reply soon 

Regards

Ahmed 

Reply via email to