Skip to Content.
Sympa Menu

freetds - Re: [freetds] Sybperl make error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Srdan Dukic <srdan.dukic AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Sybperl make error
  • Date: Sat, 7 Aug 2010 16:28:30 +1200

Hi Mahendra,

I haven't run into this particular problem before, but from the error it
does look like a problem with the compiler. This line of the error output
give it away I think:

ucbcc: illegal option usage -xdepend

Is ucbcc the Solaris C compiler? It could be possible that the "-xdepend"
option is a gcc specific option not supported by the compiler used by
Solaris 5. In this case you might have to figure out what this option does
and the equivalent for the ucbcc compiler. Alternatively, if you have the
gcc compiler installed you could compile it using this instead.

Hope this helps
--
Srđan Đukić


On 6 August 2010 03:15, mahendra tallapalem <mahendra410 AT gmail.com> wrote:

> Hi Srdan,
> Thank you so much for your reply.
>
> Though I am not getting that error now, I was getting some other errors.
> So now I have thought of installing perl into my local directory. When I
> run make, I get the following error.
>
> cc -c -I/apps/sqlserver/client/freetds/0.82-1//include -xO3 -xdepend
> -DVERSION=\"2.19\" -DXS_VERSION=\"2.19\" -KPIC
> -I/usr/perl5/5.00503/sun4-solaris/CORE -DCTLIBVS=100 -DSYBPLVER='"2.19"'
> -DDO_TIE CTlib.c
>
> ucbcc: illegal option usage -xdepend
>
> *** Error code 1
>
> make: Fatal error: Command failed for target `CTlib.o'
>
> Current working directory /home/platinum/pltsched/poc/sybperl-2.19/CTlib
>
> *** Error code 1
>
> make: Fatal error: Command failed for target `subdirs'
>
> Is it something to do with C compiler? I am running this on solaris 5.
> Any advice please?
>
> Thanks,
> Mahendra
>
> On 30 July 2010 09:23, Srdan Dukic <srdan.dukic AT gmail.com> wrote:
>
> > Hi Mahendra,
> >
> > I had the same problem trying to install on Ubuntu 9.04.
> >
> > In order to fix these errors, I simply added the following lines after
> any
> > #include statements in the 'dbdimp.c' file:
> >
> > #define BLK_VERSION_150 BLK_VERSION_100
> > #define BLK_VERSION_125 BLK_VERSION_100
> > #define BLK_VERSION_120 BLK_VERSION_100
> >
> >
> > This allowed the compile to go ahead without problem, although it did
> give
> > a
> > few warnings.
> >
> > I found the solution after quite a bit of googling, although the problem
> is
> > not new:
> >
> > https://lists.ibiblio.org/sympa/arc/freetds/2008q4/023907.html
> >
> > Cheers
> > --
> > Srđan Đukić
> >
> >
> > On 30 July 2010 14:13, mahendra tallapalem <mahendra410 AT gmail.com>
> wrote:
> >
> > > Hi,
> > >
> > > I am new to Sybperl, I have downloaded sybperl from CPAN and would like
> > to
> > > install it on solaris with freeTDS.
> > > I have executed perl Makefile.PL, it was completed successfully.
> > > But when I run *make *I get the following error.
> > >
> > > "CTlib.xls", line2081: undefined symbol: BLK_VERSION_150
> > > "CTlib.xls", line2085: undefined symbol: BLK_VERSION_125
> > > "CTlib.xls", line2089: undefined symbol: BLK_VERSION_120
> > > cc: acomp failed for CTlib.c
> > > *** Error code 2
> > > make: Fatal error: Command failed for target `CTlib.o`
> > > Current working directory /home/..../sybperl 1-2.19/CTlib
> > > *** Error code 1
> > > make: Fatal error: Command failed for target `subdirs`
> > >
> > > Any suggestions please?
> > >
> > > Thanks,
> > > Mahendra
> > > _______________________________________________
> > > 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
> >
> _______________________________________________
> 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