Forgot to mention, there is an easy fix:
~]# LDFLAGS="-lnsl" ./configure --enable-thread-safety
But I assume that only works if I use gethostbyname_r(), right?
No, works for gethostbyname as well. They are all in libnsl.
But we do check for that in thread_test.c.
The problem with the current check is its only an AC_CHECK_FUNCS. We need an
AC_SEARCH_LIBS first so the proper -llibrary is appended to LIBS, which is used
by AC_CHECK_FUNCS.
AC_SEARCH_LIBS(gethostbyname_r, c nsl)
AC_CHECK_FUNCS([strerror_r getpwuid_r gethostbyname_r])
(AC_CHECK_FUNCS from configure.in line 1371)
So that library that is all that is
needed?
It worked for me.
--
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers