Hi,
I patched against latest CVS on Solaris 10.5 using gcc. I had to patch by
hand since patch was created to December 2009 cvs. I get a few warnings but
compilation gets through:
gw/smppbox.c: In function `read_from_box':
gw/smppbox.c:200: warning: unused variable `ret'
gw/smppbox.c: In function `msg_to_pdu':
gw/smppbox.c:366: warning: unused variable `msgid'
gw/smppbox.c: In function `accept_smpp':
gw/smppbox.c:1156: warning: too few arguments for format
gw/smppbox.c: In function `run_smppbox':
gw/smppbox.c:1341: warning: cast from pointer to integer of different size
gw/smppbox.c:1339: warning: unused variable `msg'
gw/smppbox.c: In function `wait_for_connections':
gw/smppbox.c:1399: warning: cast to pointer from integer of different size
gw/smppbox.c: In function `smppboxc_run':
gw/smppbox.c:1414: warning: cast from pointer to integer of different size
gw/smppbox.c: In function `init_smppbox':
gw/smppbox.c:1505: warning: unused variable `p'
gw/smppbox.c:1507: warning: unused variable `ssl'
gw/smppbox.c: At top level:
gw/smppbox.c:165: warning: 'write_to_bearerboxes' defined but not used
gw/smppbox.c:177: warning: 'outstanding_requests' defined but not used
...
Try to get either the cvs version mentioned in the patch, or the latest cvs.
BR,
Nikos
----- Original Message -----
From: "sangprabv" <[email protected]>
To: "users" <[email protected]>
Sent: Sunday, May 09, 2010 4:42 AM
Subject: [Error]smppbox
Hi List,
Just download smppbox and tried to compile it. It returns these error during
make:
gw/smppbox.c: In function ‘check_login’:
gw/smppbox.c:105: warning: ignoring return value of ‘fscanf’, declared with
attribute warn_unused_result
gw/smppbox.c: In function ‘send_pdu’:
gw/smppbox.c:288: warning: passing argument 1 of ‘smpp_pdu_pack’ from
incompatible pointer type
gw/smsc/smpp_pdu.h:230: note: expected ‘struct SMPP_PDU *’ but argument is
of type ‘struct Octstr *’
gw/smppbox.c:288: error: too many arguments to function ‘smpp_pdu_pack’
gw/smppbox.c: In function ‘read_pdu’:
gw/smppbox.c:345: error: too many arguments to function ‘smpp_pdu_unpack’
gw/smppbox.c: In function ‘accept_smpp’:
gw/smppbox.c:1156: warning: too few arguments for format
make: *** [gw/smppbox.o] Error 1
Anybody can help me to resolve this error? Many thanks for the reply
sangprabv
[email protected]