Skip to Content.
Sympa Menu

freetds - Re: [freetds] Undefined symbols building sqsh with freetds (Solaris 8)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Tom Millar <Tom.Millar AT optusnet.com.au>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Undefined symbols building sqsh with freetds (Solaris 8)
  • Date: Fri, 28 May 2004 16:57:07 +0000

Of course you were absolutely right - turns out the libnsl was already
there, just needed the libsocket ... so after running the configure, I
manually added it to the src/Makefile before building.

Works a treat now!!

Thanks for being so patient with me - yes, I'm something of a newbie
when it comes to programming (or linking in this case)... I'm not sure
if this is something that needs to be addressed in the sqsh build or not
(I'm using the 2.1.1rc2 source).

Thanks again!

Tom.

On Fri, 2004-05-28 at 01:37, Nick Stoughton wrote:
> On Thu, 2004-05-27 at 18:10, James K. Lowden wrote:
> > Hmm. Clearly you need to link in:
> >
> > setsockopt
> > connect
> > getservbyname_r
> > socket
> >
> > In NetBSD, those are in libc. Are they in a different library in Solaris
> > 8?
> >
> Yes ... they are in libnsl and libsocket ... this is from "man
> setsockopt":
> SYNOPSIS
> cc [ flag ... ] file ... -lsocket -lnsl [ library ... ]
> #include <sys/types.h>
> #include <sys/socket.h>
>
> > I think this may be a sqsh link question, insofar as these functions
> > aren't provided by FreeTDS. I know, we're a drop in replacement for OC,
> > but that just make things a little mysterious....
> >





Archive powered by MHonArc 2.6.24.

Top of Page