[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [msmtp-users] Build problem on Solaris



On Sat, Feb 17, 2007 at 12:18:26PM +0100, Martin Lambers wrote:
> On Fri, 16. Feb 2007, 16:02:07 +0000, Eur Ing Chris Green wrote:
> > I'm trying to build msmtp on a Solaris 2.6 system, but I'm getting the
> > following compile error:-
> > 
> >     gcc  -g -O2   -o msmtp conf.o list.o msmtp.o  net.o netrc.o smtp.o stream.o  tools.o ../gnulib/libgnu.a -lposix4  -lsocket -lnsl
> >     Undefined                       first referenced
> >      symbol                             in file
> >      hstrerror                           net.o
> >     ld: fatal: Symbol referencing errors. No output written to msmtp
> >     collect2: ld returned 1 exit status
> >     *** Error code 1
> >     make: Fatal error: Command failed for target `msmtp'
> >     Current working directory /proj/chris/msmtp-1.4.10/src
> > 
> > Does anyone have any idea how to work around this?
> 
> Try 
> $ ./configure LIBS="-lresolv" 
> to force linking against libresolv.
> 
> Could you send me your config.log? Configure should have added -lresolv
> automatically...
> 
That isn't the problem, while running ./configure I see:-

    checking for hstrerror... no
    checking for hstrerror in -lresolv... no

There isn't a hstrerror in Solaris 2.6.  It's on our Solaris 2.8
systems though (not sure about 2.7, we don't have any).

-- 
Chris Green