On Sat, Jan 20, 2018 at 12:14:00PM +0100, Landry Breuil wrote: <snip>
> that explains why the 'compat' backend doesnt work. And that one is > pretty hilarious :) The configure script has: > > #include <pthread.h> > > ... lol. 1.7.2 has it too :) And i have no idea where this interesting > html comes from.. web 2.0 autoconf ? Aaand after digging more, this gem comes from https://github.com/libusual/libusual/blob/51d444927e55fed0523e03dd17b392fc70556023/m4/acx_pthread.m4#L117 > patching configure to fix that one yields: > checking whether pthreads work with -pthread... yes > > Aaaand this finally produces a working pgbouncer with hostnames, since i > think it ends up falling back to our plain libc getaddrinfo. Maybe. I > don't really know, > https://github.com/pgbouncer/pgbouncer/blob/master/src/dnslookup.c > is a maze :) In the end we use the getaddrinfo_a compat function from here: https://github.com/libusual/libusual/blob/51d444927e55fed0523e03dd17b392fc70556023/usual/netdb.c#L179 Landry