Skip to Content.
Sympa Menu

freetds - RE: [freetds] compilation issue

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Michael Peppler <mpeppler AT peppler.org>
  • To: freetds AT lists.ibiblio.org
  • Subject: RE: [freetds] compilation issue
  • Date: 05 Feb 2003 09:32:53 -0800

Looks like an old version of the unbundled compiler.

I suppose that it *should* work (it's not the even older K&R compiler
that was part of the SunOS 4.x releases).

The simple solution for you is to install gcc (there's probably a binary
on www.sunfreeware.com). The alternative is to fix the configure script
as someone mentioned a little while ago...

Michael

On Wed, 2003-02-05 at 09:21, Thompson, Bill D (London) wrote:
> again, for what its worth...
>
> $ cc -v
> ### ucbcc: Note: LM_LICENSE_FILE = (null)
> ### ucbcc: Note: NLSPATH =
> /export/home/SUNWspro/SC3.0.1/bin/../lib/locale/C/LC_MESSAGES/%N
> ### ucbcc: Note: LD_LIBRARY_PATH =
> /export/home/SUNWspro/lib:/usr/openwin/lib:/opt/sybase/lib:/usr2/cap_web/cas
> p/lib:/usr2/cap_web/j
> dk1.2.2/lib:/usr2/cap_web/ImageMagick-5.1.1/magick/.libs/libMagick.a
> ### ucbcc: Note: LD_RUN_PATH = /usr/ucblib
> ### ucbcc: Note: LD_OPTIONS = (null)
> /usr/ccs/bin/ld -o a.out /export/home/SUNWspro/SC3.0.1/lib/crti.o
> /export/home/SUNWspro/SC3.0.1/lib/crt1.o /export/home/SUNWspro/SC3
> .0.1/lib/cg89/__fstd.o /export/home/SUNWspro/SC3.0.1/lib/values-xs.o -Y
> P,:/usr/ucblib:/export/home/SUNWspro/SC3.0.1/bin/../lib:/exp
> ort/home/SUNWspro/SC3.0.1/bin:/usr/ccs/lib:/usr/lib -lucb -lsocket -lnsl
> -lelf -laio -lc /export/home/SUNWspro/SC3.0.1/lib/crtn.o
> Undefined first referenced
> symbol in file
> main /export/home/SUNWspro/SC3.0.1/lib/crt1.o
> ld: fatal: Symbol referencing errors. No output written to a.out
>
>
> $ cc -V
> ucbcc: SC3.0.1 13 Jul 1994
> ld: Software Generation Utilities - Solaris/ELF (3.0)
> Undefined first referenced
> symbol in file
> main /export/home/SUNWspro/SC3.0.1/lib/crt1.o
> ld: fatal: Symbol referencing errors. No output written to a.out
> $
>
> > -----Original Message-----
> > From: Michael Peppler [SMTP:mpeppler AT peppler.org]
> > Sent: 05 February 2003 17:02
> > To: freetds AT lists.ibiblio.org
> > Subject: RE: [freetds] compilation issue
> >
> > On Wed, 2003-02-05 at 08:53, Thompson, Bill D (London) wrote:
> > > Thanks guys, Im getting some quality responses here!
> > >
> > > $ uname -a
> > > SunOS pinto 5.6 Generic_105181-07 sun4m sparc SUNW,SPARCstation-20
> > > $
> > >
> > > doesn't mean a lot to me..
> >
> > Old, but not *that* old.
> >
> > Shot in the dark: What does cc -v (or cc -V) give you? (don't know if
> > those options are even supported)
> >
> > I'd try to install gcc to get a stable situation.
> >
> > Michael
> >
> > > > -----Original Message-----
> > > > From: Michael Peppler [SMTP:mpeppler AT peppler.org]
> > > > Sent: 05 February 2003 16:39
> > > > To: freetds AT lists.ibiblio.org
> > > > Subject: Re: [freetds] compilation issue
> > > >
> > > > On Wed, 2003-02-05 at 08:20, Thompson, Bill D (London) wrote:
> > > > > Hi,
> > > > >
> > > > > I'm trying to compile FreeTDS on a SUN solaris box that's unfamiliar
> > to
> > > > me.
> > > > >
> > > > > I'm getting some errors that I'm at pains to understand. I know
> > there's
> > > > some
> > > > > people out there with much more knowledge of the different compilers
> > > > than
> > > > > me, so I'll throw myself on your tender mercies.
> > > > >
> > > > > On this box the default cc compiler appears to be /usr/ucb/cc .
> > There is
> > > > no
> > > > > gcc on the box.
> > > > >
> > > > > Out of configure , Ive gotten:
> > > > >
> > > > > checking for /usr/ucb/cc option to accept ANSI C... none needed
> > > > > ...
> > > > > checking for asprintf... no
> > > > > checking for vasprintf... no
> > > > > ...
> > > > >
> > > > > then out of make I've gotten:
> > > > >
> > > > > /usr/ucb/cc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> > > > > -D_FREETDS_LIBRARY_SOURCE -DTDS50 -g -c asprintf.c -KPIC -DPIC
> > > > > -o .libs/asprintf.o
> > > > > "asprintf.c", line 24: va_start: argument mismatch
> > > > > "../../include/replacements.h", line 38: warning: const is a keyword
> > in
> > > > ANSI
> > > > > C
> > > >
> > > > Err - what version of Solaris is this?
> > > >
> > > > These errors look suspiciously like those coming from the old K&R C
> > > > compiler from SunOS 4.x...
> > > >
> > > > Michael
> > > > --
> > > > Michael Peppler Data Migrations, Inc.
> > > > mpeppler AT peppler.org http://www.mbay.net/~mpeppler
> > > > Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for
> > short or
> > > >
> > > > long term contract positions -
> > http://www.mbay.net/~mpeppler/resume.html
> > > > _______________________________________________
> > > > 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.mbay.net/~mpeppler
> > Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
> >
> > long term contract positions - http://www.mbay.net/~mpeppler/resume.html
> > _______________________________________________
> > 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.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.mbay.net/~mpeppler/resume.html




Archive powered by MHonArc 2.6.24.

Top of Page