Re: Kannel on AIX

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization tolj.org system architecture
Message-ID <[email protected]>
Vincent CHAVANIS schrieb:
> 
> Yeah, i'm also suprised !!!
> (X25 is dead, long live TCP/IP ! )=)
> 
> The EMI patch looks good but, we need to check if everything goes fine 
> in changing speed.
> 
> 
> <!--
> 
>     ret = tcsetattr(fd, TCSANOW, &tios);
>     if (ret == -1) {
>         error(errno, "EMI[X25]: at_dial: fail to set termios attribute");
>     }
> 
> -->
> 
> 
> Andreas Fink a écrit :
>> so theres still people using X.25 with EMI UCP ;-)
>> I'm surprised...
>>
>> On 01.07.2008, at 11:16, Bostock James wrote:
>>
>>> Hi,
>>>
>>> I am trying to get Kannel 1.4.1 to compile and run on AIX 5.2 using 
>>> gcc 4.0 and libxml2 2.6.23. To do so, I had to make two small changes 
>>> to the source code:
>>>
>>>
>>> --- gateway-1.4.1.orig/gw/smsc/smsc_emi_x25.c   2005-02-11 
>>> 15:35:48.000000000 +0000
>>> +++ gateway-1.4.1/gw/smsc/smsc_emi_x25.c        2008-07-01 
>>> 08:51:47.000000000 +0100
>>> @@ -496,8 +496,17 @@
>>>
>>>     /* The speed initialisation is pretty important. */
>>>     tcgetattr(fd, &tios);
>>> +/* Choose the fastest speed available (assuming at least 38400 baud).
>>> +*/ #if defined(B115200)
>>>     cfsetospeed(&tios, B115200);
>>>     cfsetispeed(&tios, B115200);
>>> +#elif defined(B57600)
>>> +    cfsetospeed(&tios, B57600);
>>> +    cfsetispeed(&tios, B57600);
>>> +#elif defined(B38400)
>>> +    cfsetospeed(&tios, B38400);
>>> +    cfsetispeed(&tios, B38400);
>>> +#endif
>>>     kannel_cfmakeraw(&tios);
>>>     tios.c_cflag |= (HUPCL | CREAD | CRTSCTS);
>>>     tcsetattr(fd, TCSANOW, &tios);
>>>
>>
>> that patch makes sense.

Vincent: so a +1 for committing to CVS?

>> wouldn't the following be more appropriate:
>>
>> #if !defined(int64)
>> typedef int64_t int64
>> #endif

James: can you confirm that this suggestion from Vincent works too on the AIX 
platform? If yes, I'm going to commit to CVS.

Stipe

-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------
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.