[Bug 206658] Bus error for pfctl -sa on rpi2 r294499 snap

Ian Lepore ian at freebsd.org
Wed Jan 27 14:03:56 UTC 2016


On Wed, 2016-01-27 at 20:34 +0800, Jov wrote:
> Warning: Object directory not changed from original
> /usr/src/sbin/pfctl
> cc -O -pipe -mfloat-abi=softfp   -Wall -Wmissing-prototypes
> -Wno-uninitialized -Wstrict-prototypes -DENABLE_ALTQ 
> -I/usr/src/sbin/pfctl
> -DWITH_INET6 -DWITH_INET -g -std=gnu99 -Wsystem-headers -Werror -Wall
> -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body
> -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological
> -compare
> -Wno-unused-value -Wno-parentheses-equality -Wno-unuse  function
> -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno
> -switch-enum
> -Wno-knr-promoted-parameter  -Qunused-arguments -c pf_print_state.c 
> -o
> pf_print_state.o
> pf_print_state.c:149:25: error: passing 'struct in_addr' to parameter
> of
> incompatible type 'const void *'
>                 memcpy(&sin.sin_addr, addr->v4,
> sizeof(sin.sin_addr));
>                                       ^~~~~~~~
> /usr/include/string.h:62:56: note: passing argument to parameter here
> void    *memcpy(void * __restrict, const void * __restrict, size_t);
>                                                           ^
> pf_print_state.c:160:27: error: passing 'struct in6_addr' to
> parameter of
> incompatible type 'const void *'
>                 memcpy(&sin6.sin6_addr, addr->v6,
> sizeof(sin6.sin6_addr));
>                                         ^~~~~~~~
> /usr/include/string.h:62:56: note: passing argument to parameter here
> void    *memcpy(void * __restrict, const void * __restrict, size_t);
>                                                           ^
> 2 errors generated.
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src/sbin/pfctl
> 

Oops, sorry about that, try this one...

-- Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pfctl_align2.diff
Type: text/x-patch
Size: 1214 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20160127/a56fde56/attachment.bin>


More information about the freebsd-arm mailing list