Re: SMPP getting stuck

Andreas Fink <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On Donnerstag, Januar 2, 2003, at 03:41  Uhr, Stipe Tolj wrote:

> Andreas Fink wrote:
>>
>> before submitting ANY patch to CVS it should be checked if the code 
>> compiles at least...
>>
>> With current cvs I get:
>>
>> gcc -D_REENTRANT=1 -I. -Igw -g -O2 -DBROKEN_PTHREADS=1 
>> -I/usr/include/libxml -I/usr/include -I/usr/include/mysql -o 
>> gw/smsc/smsc_smpp.o -c gw/smsc/smsc_smpp.c
>> gw/smsc/smsc_smpp.c: In function `handle_pdu':
>> gw/smsc/smsc_smpp.c:684: parse error before `int'
>> gw/smsc/smsc_smpp.c:997: `cmd_stat' undeclared (first use in this 
>> function)
>> gw/smsc/smsc_smpp.c:997: (Each undeclared identifier is reported only 
>> once
>> gw/smsc/smsc_smpp.c:997: for each function it appears in.)
>> make: *** [gw/smsc/smsc_smpp.o] Error 1
>
> Andreas, thanks for the hint. I can tell you I do this, and it *did*
> compile for me on Cygwin.

strange. Why does it compile this


SMP_PDU *resp;
resp = NULL;
int a;

This is invalid in C (its valid in C++ however) because there is a 
statement in between the declarations.
well the second problem was the parameter which was undefined so it 
couldn't be started.
cvs is updated anyway.


Andreas Fink
Fink Consulting GmbH

---------------------------------------------------------------
Tel: +41-61-6666332 Fax: +41-61-6666331  Mobile: +41-79-2457333
Address: Clarastrasse 3, 4058 Basel, Switzerland
E-Mail:  [email protected]
Homepage: http://www.finkconsulting.com
---------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.