New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16756 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

mediatomb-0.11.0 Configure error: lwres_gethostbyname_r not found when port bind9 installed

Reported by: lorenzo.costanzia@… Owned by: yattenator@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: lwres, bind, gethostbyname Cc: jeremyhu@…
Port: mediatomb

Description

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
                ])
        ])

Change History

comment:1 Changed 4 years ago by jeremyhu@…

  • Cc jeremyhu@… added

Cc Me!

comment:2 Changed 4 years ago by jeremyhu@…

Still hitting this... annoying =/

comment:3 Changed 4 years ago by devans@…

  • Summary changed from mediatomb-0.11.0 Configure error: lwres_gethostbyname_r not found to mediatomb-0.11.0 Configure error: lwres_gethostbyname_r not found when port bind9 installed

comment:4 Changed 4 years ago by devans@…

  • Owner changed from macports-tickets@… to yattenator@…
  • Cc yattenator@… removed

Maintainer fix committed in r48239.

comment:5 Changed 4 years ago by devans@…

  • Status changed from new to closed
  • Resolution set to fixed

comment:6 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.