Skip to Content.
Sympa Menu

freetds - RE: Is it the compiler Problem

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Rajani M S <rajani.shankar AT ssiworldwide.com>
  • To: TDS Development Group digest <freetds AT franklin.oit.unc.edu>
  • Cc: "James K. Lowden" <jklowden AT speakeasy.org>
  • Subject: RE: Is it the compiler Problem
  • Date: Wed, 25 Sep 2002 17:39:21 +0530


Hi

How can i get that code compiled and running?
There are some sample program files in /freetds/src/ctlib/unitests.

Do i need to set some variables?

Regards,
MS



-----Original Message-----
From: James K. Lowden [mailto:jklowden AT speakeasy.org]
Sent: Wednesday, September 25, 2002 5:23 PM
To: TDS Development Group
Cc: rajani.shankar AT ssiworldwide.com
Subject: Re: [freetds] Is it the compiler Problem


On Wed, 25 Sep 2002 16:49:43 +0530, "Rajani M S"
<rajani.shankar AT ssiworldwide.com> wrote:
> $ gcc -o common.o common.c
> Undefined first referenced
> symbol in file
> DBDEAD /var/tmp/ccz7v0Hx.o
> main
> /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.
> 95.2/crt1.o
> ld: fatal: Symbol referencing errors. No output written to common.o
> collect2: ld returned 1 exit status

Rajani,

FreeTDS 0.60 exports dbdead, lowercase. If (your file?) common.c includes
the FreeTDS 0.53 header files, it will try to import DBDEAD from libsybdb.
If linked to the FreeTDS 0.60 libraries, it will fail, producing the
above message.

This change was made to improve binary compatibility with Sybase's
libraries.

Regards,

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page