[MacPorts] #16756: mediatomb-0.11.0 Configure error: lwres_gethostbyname_r not found

MacPorts noreply at macports.org
Sun Oct 5 03:06:56 PDT 2008


#16756: mediatomb-0.11.0 Configure error: lwres_gethostbyname_r not found
-----------------------------------------+----------------------------------
 Reporter:  lorenzo.costanzia at gmail.com  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                       |      Status:  new                                  
 Priority:  Normal                       |   Milestone:  Port Bugs                            
Component:  ports                        |     Version:  1.6.0                                
 Keywords:  lwres, bind, gethostbyname   |        Port:  mediatomb                            
-----------------------------------------+----------------------------------
 {{{
 configure: You are running OSX, assuming threadsafe gethostbyname version
 checking how to run the C++ preprocessor... /usr/bin/g++-4.0 -E
 checking for gethostbyname_r... no
 checking lwres/netdb.h usability... yes
 checking lwres/netdb.h presence... yes
 checking for lwres/netdb.h... yes
 checking for lwres_gethostbyname_r in -llwres... no
 configure: error: required library function not found
 }}}

 I'm not a developer, but if I interpret the autoconf file correctly (see
 below), then it does not expect to find lwres/netdb.h on OS X, in which
 case it would just proceed. But having installed BIND, whose lwres library
 on darwin seems to lack a function (lwres_gethostbyname_r) found on other
 systems, it complains.

 {{{
 if test $DARWIN_OS -eq 1 ; then
         AC_MSG_NOTICE([You are running OSX, assuming threadsafe
 gethostbyname version])
 elif test $CYGWIN_OS -eq 1; then
         AC_MSG_NOTICE([Your are building under Cygwin, assuming threadsafe
 gethostbyname implementation])
 fi

 AC_CHECK_FUNCS([gethostbyname_r],[],
         [
             AC_CHECK_HEADERS([lwres/netdb.h],
                 [
                     AC_CHECK_LIB(lwres, lwres_gethostbyname_r,
                                  [
                                     LWRES_LIBS="-llwres"
                                     AC_DEFINE(HAVE_LIBLWRES, 1, [lwres
 library presence])
                                     AC_SUBST(LWRES_LIBS)
                                  ],
                                  [AC_MSG_ERROR(required library function
 not found)])
                 ],
                 [
                     if ((test $DARWIN_OS -eq 0) && (test $CYGWIN_OS -eq 0)
 && (test $OPENBSD_OS -eq 0)) ; then
                         AC_MSG_ERROR([required header not found])
                     fi
                 ])
         ])
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/16756>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list