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

Jov amutu at amutu.com
Wed Jan 27 12:35:18 UTC 2016


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

Jov
blog: http:amutu.com/blog <http://amutu.com/blog>

2016-01-27 12:08 GMT+08:00 Ian Lepore <ian at freebsd.org>:

> On Wed, 2016-01-27 at 11:28 +0800, Jov wrote:
> > I am downloading the src and try to test the patch.
> > How can I only compile the pfctl? I do not want to compile the whole
> > world
> > and kernel because the SD card is too slow.
> >
>
> If you're doing it on the rpi itself, just apply the patch, cd to
> /usr/src/sbin/pfctl and type make.  You'll get this warning:
>
> Warning: Object directory not changed from original /usr/src/sbin/pfctl
>
> which you can ignore, then there'll be a new pfctl binary in the
> current directory ready to test.  If it works you can do "make install"
> to replace the bad one, and I'll get the fix committed.
>
> -- Ian
>


More information about the freebsd-arm mailing list