pkgsrc-Users archive

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

Re: bootstraping fails on Solaris 10 (newbie question)



 >>> In file included from getaddrinfo.c:41:
 >>> ./nbcompat/netdb.h:178: error: conflicting types for 'gai_strerror'
 >>> /usr/include/netdb.h:329: error: previous declaration of 'gai_strerror' 
 >>> was here
 >>> ./nbcompat/netdb.h:178: error: conflicting types for 'gai_strerror'
 >>> /usr/include/netdb.h:329: error: previous declaration of 'gai_strerror' 
 >>> was here

NAME
     getaddrinfo,  getnameinfo,  freeaddrinfo,   gai_strerror   -
     translate between node name and address

SYNOPSIS
     cc [flag ...] file ... -lsocket -lnsl [library ...]
     #include <sys/socket.h>
     #include <netdb.h>

The following patch is really necessary for Solaris.
Should I send-pr?

> Index: configure.ac
> ===================================================================
> RCS file: /cvsroot/pkgsrc/pkgtools/libnbcompat/files/configure.ac,v
> retrieving revision 1.68
> diff -u -r1.68 configure.ac
> --- configure.ac        10 Oct 2008 00:21:43 -0000      1.68
> +++ configure.ac        21 Oct 2008 15:21:25 -0000
> @@ -27,6 +27,8 @@
>  
>  dnl Checks for libraries
>  AC_CHECK_LIB(util, fparseln)
> +AC_CHECK_LIB(nsl, main)
> +AC_CHECK_LIB(socket, main)
>  
>  dnl Checks for header files.
>  AC_HEADER_STDC

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index