| Summary: | configure fails to find res_query/dn_expand on Linux amd64 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Colin Watson <cjwatson> | ||||||||
| Component: | Build system | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> | ||||||||
| Status: | CLOSED FIXED | ||||||||||
| Severity: | normal | ||||||||||
| Priority: | P2 | ||||||||||
| Version: | 3.8.1p1 | ||||||||||
| Hardware: | Other | ||||||||||
| OS: | Linux | ||||||||||
| URL: | http://bugs.debian.org/242462 | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 822 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Colin Watson
2004-05-12 07:03:59 AEST
Created attachment 630 [details]
look for res_query using compilation test
Comment on attachment 630 [details] look for res_query using compilation test >- AC_SEARCH_LIBS(res_query, resolv) >- AC_SEARCH_LIBS(dn_expand, resolv) >+ AC_MSG_CHECKING(for res_query) >+ AC_TRY_LINK_FUNC(res_query, AC_MSG_RESULT(yes), >+ AC_MSG_RESULT(no)) The new check is not going to look for res_query in libresolv, is it? The portion of the patch after the portion you quoted appears to do exactly that. (On closer inspection it does look buggy, though; for starters it seems that it'll add -lresolv twice on success.) I think the patch is trying to check for res_query in libc first and then in libresolv. Yeah, that looks like what it's trying to do but there's a missing [] pair. As it stands -lresolv will be added whether it's needed or not since the block I quoted doesn't actually do anything except generate a message. There's no check for dn_query any more either, I don't know if that matters if the res_query one always works (the HAVE_DN_EXPAND and HAVE_RES_QUERY defines never get used). Created attachment 631 [details]
Check for res_query in libc before searching libresolv
This seems to be what was intended. In testing here it stops if res_query is
found in libc.
Created attachment 633 [details]
Keep AC_SEARCH_LIBS too.
Hmm, patch #631 breaks old Solaris boxes, which needs:
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
I'm concerned that we might trip over dependancies on other platforms, so I
think we should keep the AC_SEARCH_LIBS calls and just add the new checks.
Kurt has confirmed that patch #633 fixes the problem for him, I think it's the way to go if someone wants to OK it. No quarms here, OK. Thanks to all, slight variant of patch #633 (better spacing, eliminated double "[[ ]]") committed to HEAD and 3.8.1 branch. |