https://bugzilla.mindrot.org/show_bug.cgi?id=2259

            Bug ID: 2259
           Summary: Checking for external _res fails
           Product: Portable OpenSSH
           Version: 6.6p1
          Hardware: Other
                OS: Other
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Build system
          Assignee: [email protected]
          Reporter: [email protected]

I'm not familiar enough with autoconf to edit the configure.ac file,
but...

The location in configure.ac is around line 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 ()
{
struct __res_state *volatile p = &_res;  /* force resolution of _res */
return 0; }

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to