Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#16756 closed defect (fixed)

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 (Jeremy Huddleston Sequoia)
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 (6)

comment:1 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Cc: jeremyhu@… added

Cc Me!

comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Still hitting this... annoying =/

comment:3 Changed 12 years ago by dbevans (David B. Evans)

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

comment:4 Changed 12 years ago by dbevans (David B. Evans)

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

Maintainer fix committed in r48239.

comment:5 Changed 12 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

comment:6 Changed 12 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.