Skip to Content.
Sympa Menu

freetds - Re: getting error "gethostbyname: referenced symbol not found" after compiling frettds is successful

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Nick Gorham <nick AT easysoft.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: getting error "gethostbyname: referenced symbol not found" after compiling frettds is successful
  • Date: Mon, 21 Jan 2002 16:20:18 +0000


Brian Bruns wrote:

> On Mon, 21 Jan 2002, Nick Gorham wrote:
>
> > Brian Bruns wrote:
> >
> > > Anyone know if Solaris puts gethostbyname is a weird place?
> Sheesh, somebody stop me from replying first thing in the morning, I make
> no sense.
>
> >
> > You will either need a -lsocket or a -lsocket -lnsl
> > --
> > Nick Gorham
> > Easysoft Ltd
>
> Thanks nick, not sure why autoconf isn't picking this up, i'll have to
> look into that but in the meantime, you could probably do:
>
> export LIBS=-lsocket -lnsl
> /configure --with-...
> make
>
> And it should pick up the libs it needs.
>

I do this

dnl I need to check for libsocket before testing X
AC_CHECK_LIB(socket, socket, [LIBSOCKET="-lsocket"]) dnl for Solaris
AC_SUBST(LIBSOCKET)
AC_CHECK_LIB(nsl, gethostbyname, [LIBNSL="-lnsl"]) dnl for Solaris
AC_SUBST(LIBNSL)

in the unixODBC configure.in for just this reason

--
Nick Gorham
Easysoft Ltd







Archive powered by MHonArc 2.6.24.

Top of Page