[gnutls-help] Compiling gnutls on solaris

Nikos Mavrogiannopoulos nmav at gnutls.org
Sat Sep 27 17:53:46 CEST 2014

On Sat, 2014-09-27 at 06:56 -0400, dev wrote:

> OKay, this looks familiar and I remember running into this last time I
> tried a build of gnutls and I think I recall the solution was we need
> -lsocket -lnsl on Solaris because the socket funcs inet_ntop, inet_ntoa
> etc etc are buried somewhere in some lib.  We definately need this :
>      #include <sys/types.h>
>      #include <sys/socket.h>
>      #include <netinet/in.h>
>      #include <arpa/inet.h>
> In any case we have progress and let me hack at it and I will certainly
> let you know.


> Just aside, I see two flavours of inet_pton.c here at ./lib/inet_pton.c
> and also ./src/gl/inet_pton.c which is different.
> One is a version from ISC and the other from the FSF.  Okay .. I'll look
> into this also to see if there is a reason for why these are separate,
> different or why they even exist or whatever .. don't know.  This means
> coffee needed.

gnulib (the gl directory) has sockets functions, but they work fine only
when used in an end application not a library. For example they override
recv() and send(), and in windows it was not possible to pass socket
descriptors to gnutls if they were not obtained from gnulib. Thus, I've
removed all gnulib networking from the library and only remains for the
end applications (in src).


More information about the Gnutls-help mailing list