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

Re: [msmtp-users] Build problem on Solaris



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...

Regards,
Martin