Home > Archive > Sybase Open Client > March 2005 > CT Library call fails - ct_connect() - HP-UX









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CT Library call fails - ct_connect() - HP-UX
Reshma

2005-03-30, 7:09 pm

Hi All,

I am using Sybase Open Client on HP-UX B.11.11 U 9000/800. I
am trying to use ct_connect in my application. This call
fails with the follwoing error:

-----
ct_connect(): network packet layer: internal net library
error: Net-Lib protocol driver call to connect two endpoints
failed
-----
Note that SHLIB_PATH is set to $SYBASE_OCS/lib.

However, when I try doing the same with SHLIB_PATH set to
$SYBASE_OCS/devlib (debug libraries), the ct_connect call is
successful.

Could someone please exaplin the difference in behaviour
between the two cases?

Note that I am able to connect to the sybase server using
isql.

Thanking in advance,
Reshma
Neal Stack

2005-03-30, 7:09 pm

Hello,

That error should not have anything to do with using
the devlib versus the normal production lib. That
error indicates a problem with the "interfaces" file.
It means that the server/port combination specified
in the "interfaces" file is incorrect or the server is
not running and listening to that port.

The SHLIB_PATH should not be set to $SYBASE_OCS/lib.
You must specify the entire path to that directory:
SHLIB_PATH = $SYBASE/$SYBASE_OCS/lib

What is the difference between your application and
the ISQL program? Is your application multithreaded?
If so, did you link with the threadsafe libraries?
(The threadsafe libraries have an "_r" in their names,
assuming that you are using 12.5 or 12.5.1).

Can you compile and run any of the sample programs in
the $SYBASE/$SYBASE_OCS/sample/ctlibrary directory?

If they can connect, what is different between these
applications and yours?

Thanks,
Neal

Reshma wrote:
> Hi All,
>
> I am using Sybase Open Client on HP-UX B.11.11 U 9000/800. I
> am trying to use ct_connect in my application. This call
> fails with the follwoing error:
>
> -----
> ct_connect(): network packet layer: internal net library
> error: Net-Lib protocol driver call to connect two endpoints
> failed
> -----
> Note that SHLIB_PATH is set to $SYBASE_OCS/lib.
>
> However, when I try doing the same with SHLIB_PATH set to
> $SYBASE_OCS/devlib (debug libraries), the ct_connect call is
> successful.
>
> Could someone please exaplin the difference in behaviour
> between the two cases?
>
> Note that I am able to connect to the sybase server using
> isql.
>
> Thanking in advance,
> Reshma


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com