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: James K. Lowden <jklowden AT speakeasy.org>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Cc: rajani.shankar AT ssiworldwide.com
  • Subject: RE: Is it the compiler Problem
  • Date: Wed, 25 Sep 2002 09:19:19 -0400


On Wed, 25 Sep 2002 17:39:21 +0530, "Rajani M S"
<rajani.shankar AT ssiworldwide.com> wrote:
> 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?

Is it possible you've installed the 0.53 headers in one directory and the
0.60 headers in a different one? That certainly seems a likely source of
the trouble.

Take a closer look at the "make" output and your C_INCLUDE_PATH, and "grep
-i dbdead *.h". If you don't see "#define DBDEAD" in the .h, you've found
the 0.53 version.

HTH

--jkl


>
> 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
>
> ---
> You are currently subscribed to freetds as: [jklowden AT speakeasy.org]
> To unsubscribe, forward this message to
> $subst('Email.Unsub')




Archive powered by MHonArc 2.6.24.

Top of Page