[sane-devel] backends 1.0.12 compile-error

Julien BLACHE jb@jblache.org
Tue, 03 Jun 2003 18:11:32 +0200


Gerfried Maier <moali@sbox.tugraz.at> wrote:

>>If you do not need IPv6 support, configure sane-backends with
>>--disable-ipv6 and it'll build fine.
>
> Unfortunately not. Same error.

Oh, yes, sorry. My bad.

Well, has Henning said, this is a bug in certain versions of the libc,
as the relevant RFCs document a ss_family member in struct sockaddr
storage.

Comment the definition of SANE_USES_AF_INDEP in saned.c, and it'll
fall back to the IPv4-only code, which do not use this particular
structure. You may need to do the same in backend/net.c.

I'll look into adding a check to configure.

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb@jblache.org>