From: | Andrew Chernow <ac(at)esilo(dot)com> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: solaris libpq threaded build fails |
Date: | 2009-01-14 04:09:34 |
Message-ID: | 496D657E.4070707@esilo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>>>
>> 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/
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2009-01-14 04:47:07 | Re: A single escape required for log_filename |
Previous Message | Koichi Suzuki | 2009-01-14 04:03:18 | Re: Documenting pglesslog |