[freetds] compilation issue

Bort, Paul pbort at tmwsystems.com
Wed Feb 5 12:25:01 EST 2003


I don't have a Solaris box, but I can second the recommendation to get gcc.
I've seen problems like this on half a dozen mailing lists that were all
caused by that compiler, for everything from backup software to server
monitoring. 

> -----Original Message-----
> From: Thompson, Bill D (London) [mailto:ThompBil at exchange.uk.ml.com]
> Sent: Wednesday, February 05, 2003 12:21 PM
> To: 'freetds at lists.ibiblio.org'
> Subject: RE: [freetds] compilation issue
> 
> 
> 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:/us
> r2/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



More information about the FreeTDS mailing list