Sybase Open Client for Linux?

Sybase Open Client for Linux?

Post by Harry Hochheise » Tue, 24 Dec 1996 04:00:00



Has anyone done any work with the Sybase Open Client for Linux?  I've
been trying to get the sample code to compile, without luck.

What I did was to unpack the distribution system, create a directory
/usr/local/sybase, copy the include and lib files to those spots, and
then build.

However, I get tons of "undefined reference" errors, referring to
ct_describe(), ct_res_info(), etc.

I'm running an ELF system, kernel 2.0.27. Could this be an ELF/a.out
problem? I've got a.out support compiled in, so I doubt this is it...

I've checked the paths over and over again, and I've looked for any
relevant FAQ's, without any success. I'd appreciate any help.

Please reply via email: I'll summarize if necessary.

Thanks.

--

PGP key fingerprint:
08 3A B5 F6 47 7F C7 C4 28 B4 8D D2 2E DF F6 1E

 
 
 

Sybase Open Client for Linux?

Post by Andrew L. Sandova » Wed, 25 Dec 1996 04:00:00


Yes, it is an ELF/a.out issue.  The Open Client libs provided by Sybase
(nice of them to do that by the way...) are a.out only.  Make sure your
kernel is compilied to support both ELF and a.out, and make sure you
have GCC installed to support both ELF and a.out.  (If you are using
Slackware this is easy, just re-install the 'D' series disks and choose
both the ELF and a.out libs, etc.)  When you compile your application
you will need to use the command line switches to point to the a.out
libraries for linking, etc.  If you don't know those switches and nobody
else posts them for you, let me know and I will find an old Makefile for
a Linux Sybase Client app and mail it to you.

Good Luck,
Andrew L. Sandoval


 
 
 

Sybase Open Client for Linux?

Post by Steve Etchelec » Mon, 30 Dec 1996 04:00:00



> Has anyone done any work with the Sybase Open Client for Linux?  I've
> been trying to get the sample code to compile, without luck.

> What I did was to unpack the distribution system, create a directory
> /usr/local/sybase, copy the include and lib files to those spots, and
> then build.

> However, I get tons of "undefined reference" errors, referring to
> ct_describe(), ct_res_info(), etc.

> I'm running an ELF system, kernel 2.0.27. Could this be an ELF/a.out
> problem? I've got a.out support compiled in, so I doubt this is it...

I believe this is an ELF/a.out issue.  The Sybase Open Client libraries
are a.out as released by Sybase.  I recommend getting the Sybase Open
Client libraries in ELF format available on mudshark.sunquest.com
in /pub/ctlib-linux-elf.  I use them regularly with an ELF system
and they work well.  The link libraries I use are:

  -L$SYBASE/lib -static -lcs -lct -lcomn -lsybtcl -linsck -lintl

----------------------------------------------------------------------
 Steve Etchelecu
 Sunquest Information Systems