[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Weak symbols in libresolv?
From: |
Niels Möller |
Subject: |
Re: Weak symbols in libresolv? |
Date: |
09 May 2002 01:01:26 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Roland McGrath <roland@frob.com> writes:
> resolv.h #define's those symbols to the __ names, so anything
> compiled with the current resolv.h ought to use the __ names
> directly.
I'm sure you're aware that such name mangling makes a standard autoconf
tests like
AC_CHECK_LIB(resolv, res_query)
fail, as the configure script will try to link with the symbol without
including resolv.h. The test must be rewritten as
AC_CHECK_LIB(resolv, __res_query)
(Unless autoconf has been hacked since I had the same problem when
upgrading to GMP-3.0, which uses similar name mangling defines like
#define mpz_foo __gmpz_foo).
/Niels