[freetds] freetds compile issues on solaris 8 sparc

Becerra, Marrcello Marrcello_Becerra at cable.comcast.com
Tue Sep 7 14:06:28 EDT 2004


I did set LD_LIBRARY_PATH in the shell itself.
echo $LD_LIBRARY_PATH shows /usr/local/lib Which is where libgcc_s.so.1
is located.



-----Original Message-----
From: Michael Peppler [mailto:mpeppler at peppler.org]
Sent: Tuesday, September 07, 2004 1:47 PM
To: FreeTDS Development Group
Subject: RE: [freetds] freetds compile issues on solaris 8 sparc


On Tue, 2004-09-07 at 18:55, Becerra, Marrcello wrote:
> 	Ya, I tried including the file locations in my profile and using
> perl.
> 	The same error tho no matter the variations or number of paths I
> include.
> 
> 	
> #!/usr/bin/perl
> 
> #
> # test the db2 dbi driver
> #
> #$ENV{'LD_LIBRARY_PATH'} = "/usr/local/lib /usr/lib"; 
> $ENV{'LD_LIBRARY_PATH'} = "/usr/local/lib"; 

You can't set LD_LIBRARY_PATH in the script itself - you *have* to set
this in the parent program (the shell, in this case).

Where is libgcc_s.so.1 located?

Michael


> -----Original Message-----
> From: Michael Peppler [mailto:mpeppler at peppler.org]
> Sent: Tuesday, September 07, 2004 12:09 PM
> To: FreeTDS Development Group
> Subject: RE: [freetds] freetds compile issues on solaris 8 sparc
> 
> 
> On Tue, 2004-09-07 at 17:47, Becerra, Marrcello wrote:
> > Michael,
> > 	I finally got freetds-stable and DBD-Sybase 1.04 to compile and
> > install.
> > 	Woo Hoo.
> > 
> > 
> > 	Unfortunatly, Perl has errors when trying to use DBI;
> > 	Any ideas?
> > 
> > prompt# perl test.pl
> > install_driver(Sybase) failed: Can't load
> > '/usr/local/lib/perl5/site_perl/5.8.5/
> > sun4-solaris/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase: ld.so.1:
> > perl: fatal: libgcc_s.so.1: open failed: No such file or directory at
> 
> This is most likely an LD_LIBRARY_PATH setting problem, or possibly a
> perl configuration problem (i.e. doesn't properly set the -R option
> during linking)
> 
> You can probably work around this by including the directory where
> libgcc_s.so is located in your LD_LIBRARY_PATH setting before running
> your scripts/programs.
> 
> Michael
> 
> 
> > -----Original Message-----
> > From: Michael Peppler [mailto:mpeppler at peppler.org]
> > Sent: Tuesday, September 07, 2004 9:58 AM
> > To: FreeTDS Development Group
> > Subject: RE: [freetds] freetds compile issues on solaris 8 sparc
> > 
> > 
> > On Tue, 2004-09-07 at 15:45, Becerra, Marrcello wrote:
> > > I tried DBD-Sybase 1.04 as you suggested.
> > > The following is the error from dbdimp.c 
> > 
> > > PIC "-I/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE"   dbdimp.c
> > > dbdimp.c:3655: error: parse error before '*' token
> > > dbdimp.c: In function `to_binary':
> > > dbdimp.c:3659: error: `CS_BINARY' undeclared (first use in this
> function)
> > 
> > Which version of FreeTDS?
> > 
> > My guess is that you have an old version of FreeTDS which didn't
> > define/declare CS_BINARY.
> > 
> > Michael
> > 
> > 
> > > -----Original Message-----
> > > From: Michael Peppler [mailto:mpeppler at peppler.org]
> > > Sent: Friday, September 03, 2004 5:24 AM
> > > To: FreeTDS Development Group
> > > Subject: RE: [freetds] freetds compile issues on solaris 8 sparc
> > > 
> > > 
> > > On Fri, 2004-09-03 at 09:38, Becerra, Marrcello wrote:
> > > > Thanks Les and Idai,
> > > > 	That fixed my problem with freetds on the first time around.
> > > > 	
> > > > 
> > > > I have a new problem with getting DBD-Sybase to compile using the
> > freetds
> > > > library
> > > > I've tried older and new versions of freetds and DBD-Sybase with no
> > luck.
> > > > dbdimp.c always seams to fail for some reason or another.
> > > 
> > > Try 1.02 or later. The problem that you are seeing is that there is a
> > > char string that spans multiple lines in the dbdimp.c file. This was
> > > acceptable with gcc 2.x, but not with 3.x.
> > > 
> > > In any case 0.xx is really old.
> > > 
> > > Michael
> > > 
> > > > -----Original Message-----
> > > > From: Les Gondor [mailto:les at adanac.net]
> > > > Sent: Thursday, September 02, 2004 2:54 PM
> > > > To: FreeTDS Development Group
> > > > Subject: Re: [freetds] freetds compile issues on solaris 8 sparc
> > > > 
> > > > 
> > > > Does your PATH environment variable include '/usr/ccs/bin'? That is
> the 
> > > > default location of Sun's 'ar', as part of package SUNWbtool.
> > > > 
> > > > Cheers,
> > > > Les
> > > > 
> > > > Becerra, Marrcello wrote:
> > > > > I am having trouble getting freetds .053 to compile on Solaris 8
> > sparc.
> > > > > Here is the following error after running make
> > > > > 
> > > > > 
> > > > > (cd .libs && rm -f libtds.so.0 && ln -s libtds.so.0.0.0
libtds.so.0)
> > > > > (cd .libs && rm -f libtds.so && ln -s libtds.so.0.0.0 libtds.so)
> > > > > ar cru .libs/libtds.a  mem.o token.o util.o login.o read.o write.o
> > > > convert.o
> > > > > num
> > > > > eric.o config.o query.o iconv.o
> > > > > ../../libtool: ar: not found
> > > > > *** Error code 1
> > > > > make: Fatal error: Command failed for target `libtds.la'
> > > > > Current working directory
> > /export/home/xer/db/freetds-0.53.orig/src/tds
> > > > [snip]
> > > > ---
> > > > Les Gondor                           les at adanac.net
> > > > "If you don't know what you're doing, do it neatly"
> > > > _______________________________________________
> > > > FreeTDS mailing list
> > > > FreeTDS at lists.ibiblio.org
> > > > http://lists.ibiblio.org/mailman/listinfo/freetds
> > > > _______________________________________________
> > > > FreeTDS mailing list
> > > > FreeTDS at lists.ibiblio.org
> > > > http://lists.ibiblio.org/mailman/listinfo/freetds
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler at peppler.org                       http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short
or long term contract positions - http://www.peppler.org/resume.html

_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds



More information about the FreeTDS mailing list