[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compile error on Solaris 11.2 (tests for inet_pton and inet_ntop fail)
Hi Andreas,
On 06/06/15 15:40, Venturini, Andreas wrote:
> I am trying to compile tarsnap on a Solaris 11.2 box. For some reason the
> compile script fails to properly detect both, inet_pton and inet_ntop.
>
> See my comment on the following gist for console output:
> https://gist.github.com/robinsmidsrod/ae6ca91a166ef5313048
>
> Is there someone running tarsnap with Solaris 11.2 who can help with this?
You need to edit the configure script: Look for the lines
> *solaris* | *sunos*)
> CPPFLAGS="${CPPFLAGS} -I/usr/sfw/include"
> LDFLAGS="${LDFLAGS} -L/usr/sfw/lib -R/usr/sfw/lib"
> LIBS="${LIBS} -lsocket"
> ;;
> esac
and change the LIBS line to
> LIBS="${LIBS} -lsocket -lnsl"
Will be fixed in the next release. :-)
--
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid