Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Query regarding porting from TCP/IP 4.25 to 5.10: (4 Items)
   
Query regarding porting from TCP/IP 4.25 to 5.10  
Can anyone advise me how to fix this issue?

I'm attempting to move a legacy project from tcp 4.25 to the latest 5.10.
The headers have changed slightly but apart from that the socket3r.lib is available with
the new tcprt5.0 installed linked to /usr/lib /usr/watcom/10.6/usr/lib.

The watcom compiler fails to pick up the socket_, setsocketopt_, htons_, bind_ etc.
The previously working build has no explicit socket parameter and it appears the
the library path was sufficient to satisfy the linker.

Am I correct in saying that tcptk50.tar.F matches the runtime from the latest install
disk?

Thanks in advance for any clues.
Query regarding porting from TCP/IP 4.25 to 5.10  
Hi Dave,

Yes, tcptk50.tar.F is matching the TCP/IP 5.10 run-time.

To localize your issue, please, build demo projects from tcptk50.tar.F bundle. 
They are located at /usr/tcptk/5.0/usr/demo/src/socket after installation. In 
case the issue occurs, post here your build log.

-- 
Respectfully,
Oleg

> Can anyone advise me how to fix this issue?
> 
> I'm attempting to move a legacy project from tcp 4.25 to the latest 5.10.
> The headers have changed slightly but apart from that the socket3r.lib is 
available with
> the new tcprt5.0 installed linked to /usr/lib /usr/watcom/10.6/usr/lib.
> 
> The watcom compiler fails to pick up the socket_, setsocketopt_, htons_, 
bind_ etc.
> The previously working build has no explicit socket parameter and it appears 
the
> the library path was sufficient to satisfy the linker.
> 
> Am I correct in saying that tcptk50.tar.F matches the runtime from the 
latest install
> disk?
> 
> Thanks in advance for any clues.
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post91693
> 
Re: Query regarding porting from TCP/IP 4.25 to 5.10  
Hi Oleg,

The demo programs all compile OK. These use cc -l socket -l unix rather than
wpp386 and -wlink as I have inherited with this projects.

I've returned to 4.25 and copied in only the socket3r.lib from the 5.0 sdk.
This links OK, but if I ln -s to the 5.0 directory the link fails, after I'm forced 
to modify a couple of function calls due to the headers having changed.

I'll try and locate the issue by selectivly upgrading the libs and headers. I just 
wondered if there were any issues not mentioned in the user guide that others may 
have encountered.

Thanks for the help.

Cheers,
Dave
Re: Query regarding porting from TCP/IP 4.25 to 5.10  
To answer my own question, incase anyone else wants to know.

The link failed as watcom  was unable to select the library automatically.

Looking at socket.h from the older 4.25 installation and the new one shows this pragma block..

#if defined __SW_3R
#  pragma library (socket3r)
# elif defined __SW_3S
#  pragma library (socket3s)
#elif defined __SMALL__
#  pragma library (sockets)
#elif defined __COMPACT__
#  pragma library (socketc)
#elif defined __MEDIUM__
#  pragma library (socketm)
#elif defined __LARGE__
#  pragma library (socketl)
#endif

Adding this back to the later socket.h cured my link issue.

Perhaps there is a better solution, but it works.

Dave.