From owner-freebsd-arm@freebsd.org Wed Jan 27 12:35:18 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 152CEA464EE for ; Wed, 27 Jan 2016 12:35:18 +0000 (UTC) (envelope-from amutu@amutu.com) Received: from mail-yk0-x22f.google.com (mail-yk0-x22f.google.com [IPv6:2607:f8b0:4002:c07::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D6EAB1DCC for ; Wed, 27 Jan 2016 12:35:17 +0000 (UTC) (envelope-from amutu@amutu.com) Received: by mail-yk0-x22f.google.com with SMTP id a85so238308184ykb.1 for ; Wed, 27 Jan 2016 04:35:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amutu-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=GHXetLCgiS+t+sOx2xAyHztVBLz8jEq6O21n3Jh8jFc=; b=OezTiJSbtZa7LevGyTW0ZJuHyANM2Lz8fLqlGFTy+jOe6Q5MDCKL/4uCG6nc7buWGq +xYK/DMVB+MOipyrBJ/6Wc0QF10yFXS28+priX8MNSFVP8+Ik7HIwsS+Iz3ylKOLL3g6 8wngK4881oQTVEGDVVeA7J27b4iI/xLg12XfrxhTksQiuWdPbiq7qzRzlIplvuIACLtn nsKk9+i8P1OaB/0Msgy+CTP099fWTeukhy3z/ThJ8Fz8lHai71KZGuKGwahqKNqTcmDo y5KVp82uZJafBqPOzO1e3HPMUUopkIotqEJngtw9pITi3y4MFiaGMWKT4H72v6JuUY/i eUpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=GHXetLCgiS+t+sOx2xAyHztVBLz8jEq6O21n3Jh8jFc=; b=cgnVc77Dzggb2rQc3lnO9lVlYe5QIr0OFTTgbYf1ODZfEnQ9rhFOKJT7C2L8j/TzwI 3LE49GOnJrZRahfxd27UvDVh/PHOaMuf8eO25eknQdgxkoDwRNrI4UOEC22Sshx7cIne ralIVsI3bl8/cFb0RUKhKZj82sW0MaW4XiLkG6setntRojd5jQRGVBX36H1fekfMNDsh Eq4jc7YPzRoO7Ys9IJjtT5/Uw0uW4kaKjH/hjgZ+gHqcwsX95qUL7xgpmNTBGyA9H5K/ hHeCQyly80WVYtagbWa5Wu6bm5QPhm8J2HEb2YHff2Jv+nL1AwL8bUzcT+Hr5VjHUvtX 6eWA== X-Gm-Message-State: AG10YOQ394ke2N0oyIGlURpiCBg6ePezuVv8YzDCLeyXn+1b8vgEY8Tth0iZgymxuIcJFw== X-Received: by 10.13.228.1 with SMTP id n1mr5923007ywe.295.1453898116859; Wed, 27 Jan 2016 04:35:16 -0800 (PST) Received: from mail-yk0-f180.google.com (mail-yk0-f180.google.com. [209.85.160.180]) by smtp.gmail.com with ESMTPSA id w139sm1879327ywa.44.2016.01.27.04.35.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jan 2016 04:35:15 -0800 (PST) Received: by mail-yk0-f180.google.com with SMTP id v14so238303749ykd.3; Wed, 27 Jan 2016 04:35:15 -0800 (PST) X-Received: by 10.13.196.196 with SMTP id g187mr14525702ywd.264.1453898115457; Wed, 27 Jan 2016 04:35:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.79.6 with HTTP; Wed, 27 Jan 2016 04:34:56 -0800 (PST) In-Reply-To: <1453867724.42081.28.camel@freebsd.org> References: <1453862939.42081.25.camel@freebsd.org> <1453867724.42081.28.camel@freebsd.org> From: Jov Date: Wed, 27 Jan 2016 20:34:56 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Bug 206658] Bus error for pfctl -sa on rpi2 r294499 snap To: Ian Lepore Cc: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2016 12:35:18 -0000 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 2016-01-27 12:08 GMT+08:00 Ian Lepore : > 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 >