Skip to Content.
Sympa Menu

freetds - RE: [freetds] sqsh and freetds: link error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Anthony Kong <anthony.kong AT ufjia.com>
  • To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] sqsh and freetds: link error
  • Date: Tue, 6 May 2003 09:40:43 +0800

Hi, James,

I am really glad to get all these help from you! you are the man with all
the answers! :-)

I think I am now blocked by the link problem. I reproduce part of the error
message just to make sure that we are talking about the same problem:

============================================================================
=====

/usr/src/sqsh-2.1/src/cmd_bcp.c:334: undefined reference to `ct_cmd_alloc'
/usr/src/sqsh-2.1/src/cmd_bcp.c:341: undefined reference to `ct_command'
/usr/src/sqsh-2.1/src/cmd_bcp.c:352: undefined reference to `ct_send'
/usr/src/sqsh-2.1/src/cmd_bcp.c:368: undefined reference to `ct_con_alloc'
/usr/src/sqsh-2.1/src/cmd_bcp.c:375: undefined reference to `ct_callback'
/usr/src/sqsh-2.1/src/cmd_bcp.c:384: undefined reference to `ct_callback'
/usr/src/sqsh-2.1/src/cmd_bcp.c:393: undefined reference to `ct_con_props'
/usr/src/sqsh-2.1/src/cmd_bcp.c:406: undefined reference to `ct_con_props'
/usr/src/sqsh-2.1/src/cmd_bcp.c:421: undefined reference to `ct_con_props'
/usr/src/sqsh-2.1/src/cmd_bcp.c:434: undefined reference to `ct_con_props'
/usr/src/sqsh-2.1/src/cmd_bcp.c:449: undefined reference to `ct_con_props'
cmd_bcp.o:/usr/src/sqsh-2.1/src/cmd_bcp.c:467: more undefined references to
`ct_con_props' follow
cmd_bcp.o: In function `cmd_bcp':
/usr/src/sqsh-2.1/src/cmd_bcp.c:504: undefined reference to `cs_loc_alloc'
/usr/src/sqsh-2.1/src/cmd_bcp.c:512: undefined reference to `cs_locale'
/usr/src/sqsh-2.1/src/cmd_bcp.c:528: undefined reference to `cs_locale'
/usr/src/sqsh-2.1/src/cmd_bcp.c:546: undefined reference to `cs_locale'
/usr/src/sqsh-2.1/src/cmd_bcp.c:563: undefined reference to `ct_con_props'
/usr/src/sqsh-2.1/src/cmd_bcp.c:576: undefined reference to `ct_connect'
/usr/src/sqsh-2.1/src/cmd_bcp.c:618: undefined reference to `blk_alloc'
/usr/src/sqsh-2.1/src/cmd_bcp.c:631: undefined reference to `blk_props'
/usr/src/sqsh-2.1/src/cmd_bcp.c:649: undefined reference to `blk_init'
/usr/src/sqsh-2.1/src/cmd_bcp.c:715: undefined reference to `blk_done'
/usr/src/sqsh-2.1/src/cmd_bcp.c:744: undefined reference to `ct_fetch'
/usr/src/sqsh-2.1/src/cmd_bcp.c:669: undefined reference to `ct_results'
/usr/src/sqsh-2.1/src/cmd_bcp.c:764: undefined reference to `blk_done'
/usr/src/sqsh-2.1/src/cmd_bcp.c:783: undefined reference to `blk_done'
/usr/src/sqsh-2.1/src/cmd_bcp.c:806: undefined reference to `blk_done'
/usr/src/sqsh-2.1/src/cmd_bcp.c:807: undefined reference to `ct_cancel'
/usr/src/sqsh-2.1/src/cmd_bcp.c:808: undefined reference to `ct_cancel'
/usr/src/sqsh-2.1/src/cmd_bcp.c:818: undefined reference to `ct_con_props'
/usr/src/sqsh-2.1/src/cmd_bcp.c:835: undefined reference to `blk_done'
/usr/src/sqsh-2.1/src/cmd_bcp.c:839: undefined reference to `ct_cancel'
/usr/src/sqsh-2.1/src/cmd_bcp.c:842: undefined reference to `ct_close'
/usr/src/sqsh-2.1/src/cmd_bcp.c:845: undefined reference to `ct_con_drop'
/usr/src/sqsh-2.1/src/cmd_bcp.c:851: undefined reference to `ct_con_props'
/usr/src/sqsh-2.1/src/cmd_bcp.c:865: undefined reference to `ct_cancel'
/usr/src/sqsh-2.1/src/cmd_bcp.c:883: undefined reference to `ct_cmd_drop'
/usr/src/sqsh-2.1/src/cmd_bcp.c:888: undefined reference to `blk_drop'
/usr/src/sqsh-2.1/src/cmd_bcp.c:893: undefined reference to `ct_close'
/usr/src/sqsh-2.1/src/cmd_bcp.c:894: undefined reference to `ct_con_drop'
/usr/src/sqsh-2.1/src/cmd_bcp.c:898: undefined reference to `cs_loc_drop'

============================================================================
=====

I have tried to include sybase lib in the -L parameter, but the same error
message is still emitted. (I happens to have the sybase client client
installed, and I have add
/opt/sybase-12.5/OCS-12_5/lib:/opt/sybase-12.5/OCS-12_5/lib3p to the -L
path)

So, actually which lib file the sqsh has a dependency upon? How hard it is
to remove the reference to sybase lib in the current distribution? If it
only takes sheer labor, I think i can help :-)


Regards,

Anthony

-----Original Message-----
From: James K. Lowden [mailto:jklowden AT schemamania.org]
Sent: Monday, May 05, 2003 7:22 PM
To: FreeTDS Development Group
Subject: Re: [freetds] sqsh and freetds: link error


On Mon, 5 May 2003 17:56:50 +0800 , Anthony Kong <anthony.kong AT ufjia.com>
wrote:
>
> I am sorry if sqsh is not supposed to be covered in this forum. But I
> have nowhere to turn to :-)

sqsh is assuredly on topic here, if linked to FreeTDS. I recently was
given access to its CVS tree, and intend to update the distribution when
our character set maelstrom settles down.

> I have download the freetds0.62 source and compiled it. I have used make
> install to install the package. tsql runs beautifully. Very solid work.

:-)

> Now, as advised in some document in tds, I donwload the sqsh source and
> try to build it.
>
> I have export SYBASE=/usr/src/freetds-0.61 (the location where I have
> put the source code. I did that because if otherwise, the configure
> script will complaint about the missing header files)

You should point SYBASE to your FreeTDS PREFIX. If you didn't set
--prefix when you ran ./configure, then "export SYBASE=/usr/local".

To make the configure script find your header files, add
"-I/usr/local/include" or somesuch to your CFLAGS.

The link may still fail, due to a reference to a library provided by
Sybase but not by FreeTDS. That's the impetus for me to update the
distribution.

Let us know how you make out, so to speak.

--jkl
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds




Archive powered by MHonArc 2.6.24.

Top of Page