OpenSSH 6.6p1 configure script error
Scott Neugroschl
scott_n at xypro.com
Sat Jul 12 07:19:08 EST 2014
In the configure script, when it checks to see if _res is an extern, there are two problems:
1. There is no ac_WHATEVER variable to control it and override it.
2. Because the extern reference to _res is unused, the linker on some systems may elide it, causing an erroneous definition of HAS__RES_EXTERN
The test should be coded as follows:
/* ... confdefs.h */
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
extern struct __res_state _res;
int
main ()
{
struct __res_state *volatile p = &_res; /* force resolution of _res */
return 0;
}
---
Scott Neugroschl | XYPRO Technology Corporation
4100 Guardian Street | Suite 100 |Simi Valley, CA 93063 | Phone 805 583-2874|Fax 805 583-0124 |
More information about the openssh-unix-dev
mailing list