Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2016 20:34:56 +0800
From:      Jov <amutu@amutu.com>
To:        Ian Lepore <ian@freebsd.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: [Bug 206658] Bus error for pfctl -sa on rpi2 r294499 snap
Message-ID:  <CADyrUxO-X3f6gXDHSKZ1Xy5PFxtZrsM0kiJrnN5MPhaAC5MZkA@mail.gmail.com>
In-Reply-To: <1453867724.42081.28.camel@freebsd.org>
References:  <bug-206658-7@https.bugs.freebsd.org/bugzilla/> <1453862939.42081.25.camel@freebsd.org> <CADyrUxPcndOaeUn_UcDN4F=N5XHsby-wQmLvRfUcYNTjNJPUiQ@mail.gmail.com> <1453867724.42081.28.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADyrUxO-X3f6gXDHSKZ1Xy5PFxtZrsM0kiJrnN5MPhaAC5MZkA>