[MacPorts] #62468: _sasl_locate_entry() in Cyrus SASL's lib/dlopen.c assumes a leading underscore is needed for calls to dlsym()
MacPorts
noreply at macports.org
Wed Mar 17 00:22:12 UTC 2021
#62468: _sasl_locate_entry() in Cyrus SASL's lib/dlopen.c assumes a leading
underscore is needed for calls to dlsym()
---------------------------------------------+--------------------
Reporter: steven-michaud | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: cyrus-sasl2 @2.1.27_2+kerberos |
---------------------------------------------+--------------------
Comment (by kencu):
it checks here (configure.ac)
{{{
dnl Do we need leading underscores on our symbols?
AC_CHECK_PROGS(NM, nm)
AC_MSG_CHECKING(for underscore before symbols)
AC_CACHE_VAL(sasl_cv_uscore,[
echo "int main(){int i=1; return 0;}
void foo(){int i=6;}" > conftest.c
${CC} -o a.out conftest.c > /dev/null
if (${NM} a.out | grep _foo) > /dev/null; then
sasl_cv_uscore=yes
else
sasl_cv_uscore=no
fi])
AC_MSG_RESULT($sasl_cv_uscore)
rm -f conftest.c a.out
}}}
and on my Mojave system, finds this:
{{{
configure:15311: checking for underscore before symbols
configure:15327: result: yes
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62468#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list