Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Transport Layer Interface library
@ 2002-11-28 15:26 Lindsay Wakeman
  2002-11-29  1:27 ` Michael Joosten
  0 siblings, 1 reply; 4+ messages in thread
From: Lindsay Wakeman @ 2002-11-28 15:26 UTC (permalink / raw)


Hi

We are trying to port a C application from 4.0d to 5.1a. This uses a
3rd party RPC implementation (was Netwise RPC Tool).This in turn
requires the standard TLI library.

The main application has been recompiled under 5.1a, but the 3rd party
libraries
have not (i.e. the RPC component) as we have no source.

We get an inititialisation problem when the server attempts to
register the service through the TLI. We then tried this on 4.0e and
got the same problem.

I've looked through various docs (release notes etc.) but cannot see
any specific reference to TLI changes - if this is indeed what is
wrong.

Can anyone comment on binary compatibility between 4.0d/4.0e/5.x when
using the
TLI library (libtli.a) - or shed any other light?

 TIA

Lindsay Wakeman
The British Library
lindsay.wakeman@bl.uk


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Transport Layer Interface library
  2002-11-28 15:26 Transport Layer Interface library Lindsay Wakeman
@ 2002-11-29  1:27 ` Michael Joosten
  2002-12-05 10:23   ` Lindsay Wakeman
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Joosten @ 2002-11-29  1:27 UTC (permalink / raw)


Lindsay Wakeman wrote:
> 
> Hi
> 
> We are trying to port a C application from 4.0d to 5.1a. This uses a
> 3rd party RPC implementation (was Netwise RPC Tool).This in turn
> requires the standard TLI library.
> 
> The main application has been recompiled under 5.1a, but the 3rd party
> libraries
> have not (i.e. the RPC component) as we have no source.
> 
> We get an inititialisation problem when the server attempts to
> register the service through the TLI. We then tried this on 4.0e and
> got the same problem.
> 

This is a vague guessing, as I have seen a similar behaviour with the
Informix OWS 7.2 and their SDK 2.3 against Solatis 2.6 and then 7.
For Sol7, the checking of parameters provided to TLI functions became
more strict, such that t_bind() failed because of redundant and wrong
parameters in the Informix code. This is probably very nasty to find -
and even to fix... Took me a whole evening with truss and apptrace, and
then a debugger. 

Netwise isn't anymore? Wasn't that an improved TLIRPC, originally from
Sun?

> I've looked through various docs (release notes etc.) but cannot see
> any specific reference to TLI changes - if this is indeed what is
> wrong.
> 
> Can anyone comment on binary compatibility between 4.0d/4.0e/5.x when
> using the
> TLI library (libtli.a) - or shed any other light?

-- 
Michael Joosten, SBS C-LAB, joost@c-lab.de
Fuerstenallee 11, 33094 Paderborn, Germany
Phone: +49 5251 606127, Fax: +49 5251 606065
C-LAB is a cooperation of University Paderborn & SIEMENS


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Transport Layer Interface library
  2002-11-29  1:27 ` Michael Joosten
@ 2002-12-05 10:23   ` Lindsay Wakeman
  2002-12-06  4:17     ` Michael Joosten
  0 siblings, 1 reply; 4+ messages in thread
From: Lindsay Wakeman @ 2002-12-05 10:23 UTC (permalink / raw)


Michael Joosten <joost@c-lab.de> wrote in message news:<3DE6C29E.7D55@c-lab.de>...
> Lindsay Wakeman wrote:
> > 
> > Hi
> > 
> > We are trying to port a C application from 4.0d to 5.1a. This uses a
> > 3rd party RPC implementation (was Netwise RPC Tool).This in turn
> > requires the standard TLI library.
> > 
> > The main application has been recompiled under 5.1a, but the 3rd party
> > libraries
> > have not (i.e. the RPC component) as we have no source.
> > 
> > We get an inititialisation problem when the server attempts to
> > register the service through the TLI. We then tried this on 4.0e and
> > got the same problem.
> > 
> 
> This is a vague guessing, as I have seen a similar behaviour with the
> Informix OWS 7.2 and their SDK 2.3 against Solatis 2.6 and then 7.
> For Sol7, the checking of parameters provided to TLI functions became
> more strict, such that t_bind() failed because of redundant and wrong
> parameters in the Informix code. This is probably very nasty to find -
> and even to fix... Took me a whole evening with truss and apptrace, and
> then a debugger. 
> 
> Netwise isn't anymore? Wasn't that an improved TLIRPC, originally from
> Sun?
> 
> > I've looked through various docs (release notes etc.) but cannot see
> > any specific reference to TLI changes - if this is indeed what is
> > wrong.
> > 
> > Can anyone comment on binary compatibility between 4.0d/4.0e/5.x when
> > using the
> > TLI library (libtli.a) - or shed any other light?


Yes, that's the sort of scenario I feared. However - I made some
progress. I hadn't understood that the Tru64 TLI implementation uses
XTI (X/Open Transport I/F) and I hadn't compiled the XTISO, TIMOD and
TIRDWR options into the kernel.
Having done that, I can get it working under T64 4.0e. 

Under 5.1a though, I get a different problem now (having recompiled
the kernel as above). The application appears to do the /etc/services
lookup ok, but complains that the 'Service name is already in use'. I
have tried this with
variations on name,port etc. and all configs result in that error
message
(from the code that calls TLI).

I've checked that the relevant streams devices have been made on
reboot
(/dev/streams/xtiso/TCP* )

 I feel I may be missing something blindingly obvious. Either that or
there
really is a substantial change between 4.x and 5.x implementations of
TLI/XTI

Can anyone suggest any other things to check (including relevant docs,
although
I hope I've combed the right ones by now).

Thanks

Lindsay


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Transport Layer Interface library
  2002-12-05 10:23   ` Lindsay Wakeman
@ 2002-12-06  4:17     ` Michael Joosten
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Joosten @ 2002-12-06  4:17 UTC (permalink / raw)


Lindsay Wakeman wrote:
> 

> 
> Under 5.1a though, I get a different problem now (having recompiled
> the kernel as above). The application appears to do the /etc/services
> lookup ok, but complains that the 'Service name is already in use'. I
> have tried this with
> variations on name,port etc. and all configs result in that error
> message
> (from the code that calls TLI).
> 

If that really is NetWise, resp. Sun ONC topped with cream,
then /etc/services is barely used... 
Servers are registered with 'rpcbind' via a simple number, and the
clients contact the rpcbind process first (port 111), fetch the binding
info (i.e. the local IP ports) for their connection type (UDP/TCP) and
then contact the actual server. Cf. rpcinfo -p

Or... NetWise uses an additional nameservice, whose port is perhaps
already taken by another process?


> Can anyone suggest any other things to check (including relevant docs,
> although
> I hope I've combed the right ones by now).
> 

Hmm. Comparing truss-traces (or whatever that tool for 4.0 was called)
between both operating systems? But deciphering TLI was also under
Solaris extremely loathsome, as nearly everything is putmsg() or
getmsg() and one had to dump the contents of the data buffers in order
to get *some* clue on what was going on...

-- 
Michael Joosten, SBS C-LAB, joost@c-lab.de
Fuerstenallee 11, 33094 Paderborn, Germany
Phone: +49 5251 606127, Fax: +49 5251 606065
C-LAB is a cooperation of University Paderborn & SIEMENS


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-06  4:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-28 15:26 Transport Layer Interface library Lindsay Wakeman
2002-11-29  1:27 ` Michael Joosten
2002-12-05 10:23   ` Lindsay Wakeman
2002-12-06  4:17     ` Michael Joosten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox