Skip to Content.
Sympa Menu

freetds - Re: Need help with DBD::Sybase 'make test' fails us ing FreeTDS.

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>
  • Subject: Re: Need help with DBD::Sybase 'make test' fails us ing FreeTDS.
  • Date: Mon, 21 Oct 2002 03:01:23 -0400


On Sun, 20 Oct 2002 23:14:23 -0500, "Wilson, John"
<John.Wilson AT savvis.net> wrote:
> James/TDS Group: Thanks for your reply.

Hi John,

> I Managed to resolve the libgcc_s.so.1 problem below correcting the
> LD_LIBRARY_PATH.

Good. :)

> PERL_DL_NONLAZY=1 /home/jwilson/devel/usr/local/bin/perl -Iblib/arch
> -Iblib/lib
> -I/home/jwilson/devel/usr/local/lib/perl5/5.00503/sun4-solaris-I/home/j
> wilson/devel/usr/local/lib/perl5/5.00503 -e 'use Test::Harness
> qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
> t/autocommit........install_driver(Sybase) failed: Can't
> load'blib/arch/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase:
> ld.so.1:/home/jwilson/devel/usr/local/bin/perl: fatal: relocation error:
> file blib/arch/auto/DBD/Sybase/Sybase.so:
>
> symbol cs_ctx_global: referenced symbol not found at

Please have a look at the following URL.

http://webforums.sybase.com/nntp/nd000033.nsf/8178b1c14b1e9b6b8525624f0062fe9f/2e2d0528ce96005cacbd2b4b0bc5f220?OpenDocument

Whew. That's a long one, eh? I hope it's worth it. (Tim Berners Lee
wrote a lovely essay about URLs, which is a good antidote:
http://www.w3.org/Provider/Style/URI)

I know for certain that FreeTDS exposes the variable in question:

$ pwd;nm libct.so.0.0 |grep cs_ctx_global
/usr/local/lib
00002ee0 T _cs_ctx_global

and that it works with DBD::Sybase (yea, even on Solaris). I'm not being
defensive; I just want you to know this *will* work, once you get the
Solaris kinks out.

HTH.

--jkl



>
> /home/jwilson/devel/usr/local/lib/perl5/5.00503/sun4-solaris/DynaLoader
> .pm line 169.
>
> at (eval 1) line 3
> Perhaps a required shared library or dll isn't installed where expected
> at t/autocommit.t line 40
> dubious
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 2-4
> Failed 3/4 tests, 25.00% okay
> _______________________________________________________________________
> _________________
>
> Please note that all of the tests are failing to load Sybase.so due to
> the missing symbol cs_ctx_global.
>
> I've done a string search from within an old $SYBASE/lib and this symbol
> is not to be found in a .so lib. It is found in .a type libs.
>
> I've followed the directions (to the best of my knowledge) and set
> $SYBASE to where I have the FreeTDS installed. The libs are there...,
> by LD_LIBRARY_PATH is set accordingly...
>
> The question I have is where is this symbol defined within FreeTDS? Or
> did I miss something?
> It was my understanding that DBD::Sybase was supposed to work with
> FreeTDS.
>
>
> Please note that all of the test for DBI passed.
>
> Any help would be greatly appreciated.
> regards,
> jd wilson
>
> -----Original Message-----
> From: James K. Lowden [mailto:jklowden AT schemamania.org]
> Sent: Friday, October 18, 2002 19:44
> To: TDS Development Group
> Subject: [freetds] Re: Need help with DBD::Sybase 'make test' fails
> using FreeTDS.
>
>
> On Fri, 18 Oct 2002 19:01:20 -0400, "jd wilson" <john.wilson AT savvis.net>
> wrote:
> >
> > I'm looking for some assistance with the errors encountered when
> > running'make test' for DBD-Sybase-0.94_02.
>
> J D,
>
> You may be happy to learn you don't have a FreeTDS problem, at least not
> yet. As far as I can tell, you're having a problem getting Solaris to
> load shared libraries for Perl. The salient complaint is:
>
> > No such file or directory [libgcc_s.so.1] at
> > /home/jwilson/devel/usr/local/lib/perl5/5.00503/sun4-solaris/DynaLoad
> > er.pm line 169.
>
> I'd check the setup of your runtime linker (I don't use Solaris and
> can't be more specific). Probably libgcc_s.so.1 is not in its path
> (LD_RUN_PATH?). That's what:
>
> > Perhaps a required shared library or dll isn't installed where
> > expected
> > at t/autocommit.t line 40
>
> means.




Archive powered by MHonArc 2.6.24.

Top of Page