"Blaster" wrote:
> I'm trying to build 4.1.9 on Solaris 10 and the build fails with the
> following:
> 
> gcc -I. -g -I../.. -D_BSD_SOURCE  -DSOLARIS2=10 -DIPFILTER_LOG
> -DIPFILTER_LOOKUP  -DIPFILTER_SCAN -DIPFILTER_SYNC -DIPFILTER_CKSUM -c
> ../../ip_sync.c -o ip_sync_u.o
> ../../ip_sync.c: In function `ipfsync_storder':
> ../../ip_sync.c:232: warning: passing arg 1 of `htonl' makes integer from
> pointer without a cast
> ../../ip_sync.c:232: error: incompatible types in assignment
...

Might be fixed by the following change to ip_sync.c:
232,233c232,235
<               ips->is_opt = htonl(ips->is_opt);
<               ips->is_optmsk = htonl(ips->is_optmsk);
---
>               ips->is_opt[0] = htonl(ips->is_opt[0]);
>               ips->is_opt[1] = htonl(ips->is_opt[1]);
>               ips->is_optmsk[0] = htonl(ips->is_optmsk[0]);
>               ips->is_optmsk[1] = htonl(ips->is_optmsk[1]);
247,248c249,252
<               ips->is_opt = ntohl(ips->is_opt);
<               ips->is_optmsk = ntohl(ips->is_optmsk);
---
>               ips->is_opt[0] = ntohl(ips->is_opt[0]);
>               ips->is_opt[1] = ntohl(ips->is_opt[1]);
>               ips->is_optmsk[0] = ntohl(ips->is_optmsk[0]);
>               ips->is_optmsk[1] = ntohl(ips->is_optmsk[1]);

Reply via email to