connect errors ... 255.255.255?

Fabien Roy froy at austin.rr.com
Tue May 8 10:09:24 EDT 2001


I did compile and used freetds on MacOSXServer 1.2 (BigEndian) with  
no problem.
Freetds has been reported to work on Linux (LittleEndian) and  
Solaris  (BigEndian).
The problem must be an HPUX one.
Maybe a couple of htonl() are needed.

Fabien
> Hello, I think this could this be a big/little endian problem? I  
have narrowed
> the problem down to here... is there a library i might be missing  
when I
> compile freetds etc etc... just ideas... I fear that the guys will  
just use
> oracle ->flat file -> ftp ->access -> mssql to transfer the data,  
instead of
> my idea (which is to keep it on unix, oracle -> custom prog -> mssql) I 
> *really* want to win this one for open source... so if anyone has  
any ideas
> please get in touch with me, 215-503-0986, or ICQ: 458042. I am  
off to class
> now, so i cant do anymore work on this right now... but tonight,  
i'll play
> around with that bit of code, prolly writing a simple hello-world  
simplistic
> connect on this HPUX box to the echo port or soemthing... BTW: it  
works fine
> under LINUX, it's just HPUX...
>
> Why is it trying to connect to port 255.255.255.0?
>
> ----
> This is line 217 of login.c:
>        } else {
>         if (connect(tds->s, (struct sockaddr *) &sin, sizeof(sin))  
<0) {
>                 perror("connect");
>                 return NULL;
>         }
>         }
>         /* END OF NEW CODE */
> ----
>
> Best Regards,
> E.M. Recio
>
> Best Regards,
> E.M. Recio
>
>



More information about the FreeTDS mailing list