search for: has__res_extern

Displaying 2 results from an estimated 2 matches for "has__res_extern".

2014 Jul 11
0
OpenSSH 6.6p1 configure script error
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 *v...
2014 Jul 25
11
[Bug 2259] New: Checking for external _res fails
...ine 3902 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 in "configure" 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 (...