[sane-devel] backends 1.0.12 compile-error

Gerfried Maier moali@sbox.tugraz.at
Tue, 03 Jun 2003 13:25:55 +0200


Erik Inge Bolsų wrote:

>Can you check in your config.h post-configure if "SANED_USES_AF_INDEP" is
>defined or undefined?
>
in include/sane/config.h: (around line 70)
[...]
/* Define to 1 if you have the `getaddrinfo' function. */
#define HAVE_GETADDRINFO 1

/* Define to 1 if you have the `getenv' function. */
#define HAVE_GETENV 1

/* Define to 1 if you have the `getnameinfo' function. */
#define HAVE_GETNAMEINFO 1
[...]

and in frontend/saned.c: (around line 35)
[...]
#if defined(HAVE_GETADDRINFO) && defined (HAVE_GETNAMEINFO)
# define SANED_USES_AF_INDEP
#else
# undef ENABLE_IPV6
#endif /* HAVE_GETADDRINFO && HAVE_GETNAMEINFO && HAVE_POLL */
[...]

so finally, SANED_USES_AF_INDEP should be defined.

>If it is undefined, the error would seem to be straightforward, since at
>least my struct in_addr (in netinet/in.h ) doesn't have any ss_family
>member...
>
>/* Internet address.  */
>typedef uint32_t in_addr_t;
>struct in_addr
>  {
>    in_addr_t s_addr;
>  };
>
Same here.

Maier Gerfried