[Nut-upsuser] make errors on solaris express dev 02/07

Charles Lepple clepple at gmail.com
Wed Mar 14 02:22:03 CET 2007

Arjen, could you please take a look at this?

from 'svn blame' on server/access.c:73:

   737 adkorte-guest            return (IN6_IS_ADDR_V4MAPPED(ip6) &&
   737 adkorte-guest                    ((((const u_int32_t *)ip6)[3]
& prefix) == net->s_addr));

Is there a more portable way of matching the embedded IPv4 address?

On 3/6/07, Zoltan Farkas <zoly at daxtechnologies.com> wrote:
> disabled to build snmp:
> ./configure --with-user=ups --with-group=ups --without-snmp
> now I get the following compilation error:
> if gcc -DHAVE_CONFIG_H -I. -I. -I../include    -I../include  -O -Wall -Wsign-compare -MT ssl.o -MD -MP -MF ".deps/ssl.Tpo" -c -o ssl.o ssl.c; \
> then mv -f ".deps/ssl.Tpo" ".deps/ssl.Po"; else rm -f ".deps/ssl.Tpo"; exit 1; fi
> if gcc -DHAVE_CONFIG_H -I. -I. -I../include    -I../include  -O -Wall -Wsign-compare -MT sstate.o -MD -MP -MF ".deps/sstate.Tpo" -c -o sstate.o sstate.c; \
> then mv -f ".deps/sstate.Tpo" ".deps/sstate.Po"; else rm -f ".deps/sstate.Tpo"; exit 1; fi
> if gcc -DHAVE_CONFIG_H -I. -I. -I../include    -I../include  -O -Wall -Wsign-compare -MT access.o -MD -MP -MF ".deps/access.Tpo" -c -o access.o access.c; \
> then mv -f ".deps/access.Tpo" ".deps/access.Po"; else rm -f ".deps/access.Tpo"; exit 1; fi
> access.c: In function `mask_cmp':
> access.c:73: error: syntax error before "u_int32_t"
> make[1]: *** [access.o] Error 1
> make[1]: Leaving directory `/export/home/zoly/Documents/nut/trunk/server'
> make: *** [all-recursive] Error 1
> will disable ipv6 and try again.

- Charles Lepple

More information about the Nut-upsuser mailing list