Skip to Content.
Sympa Menu

freetds - RE: [freetds] freetds compile issues on solaris 8 sparc

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Becerra, Marrcello" <Marrcello_Becerra AT cable.comcast.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] freetds compile issues on solaris 8 sparc
  • Date: Tue, 7 Sep 2004 07:45:49 -0600

I tried DBD-Sybase 1.04 as you suggested.
The following is the error from dbdimp.c


emsftp# make
gcc -c -I/usr/local/freetds/include
-I/usr/local/lib/perl5/site_perl/5.8.5/sun4
-solaris/auto/DBI -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_
SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.04\"
-DXS_VERSION=\"1.04\" -f
PIC "-I/usr/local/lib/perl5/5.8.5/sun4-solaris/CORE" Sybase.c
gcc -c -I/usr/local/freetds/include
-I/usr/local/lib/perl5/site_perl/5.8.5/sun4
-solaris/auto/DBI -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_
SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.04\"
-DXS_VERSION=\"1.04\" -f
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)
dbdimp.c:3659: error: (Each undeclared identifier is reported only once
dbdimp.c:3659: error: for each function it appears in.)
dbdimp.c:3659: error: `b' undeclared (first use in this function)
dbdimp.c:3659: error: `b_ptr' undeclared (first use in this function)
dbdimp.c:3674: error: parse error before ')' token
*** Error code 1
make: Fatal error: Command failed for target `dbdimp.o'


-----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




Archive powered by MHonArc 2.6.24.

Top of Page