From owner-svn-src-head@freebsd.org Sun Nov 5 00:44:42 2017 Return-Path: Delivered-To: svn-src-head@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 44130E5BDD5; Sun, 5 Nov 2017 00:44:42 +0000 (UTC) (envelope-from srs0=133k=cd=sigsegv.be=kristof@codepro.be) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EB51265A6F; Sun, 5 Nov 2017 00:44:41 +0000 (UTC) (envelope-from srs0=133k=cd=sigsegv.be=kristof@codepro.be) Received: from [192.168.228.1] (n219078030071.netvigator.com [219.78.30.71]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id CEE104DAF2; Sun, 5 Nov 2017 01:44:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigsegv.be; s=mail; t=1509842678; bh=h+Hlrmdy86wgHTYOhdOwOOJ2K6JA0n2k9Y8WWf6i8Qo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=aUM+LuxVOj4x0qNdfC6xsCzCMIo4+ljxPLBwu8M+PIslSyPDeA9hC4/UJvVyuAZsc aq2l8d08V0DJdzgGrF6+XQGUdUtoUQ/D3PiDEiauHpHwveWQPYtf2WDew56f7wm+pL PesAaHXnAF6gCNqutvXpvGprOcxL+2AjLKkFVj0c= From: "Kristof Provost" To: "Andriy Voskoboinyk" Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r324657 - head/usr.sbin/wlandebug Date: Sun, 05 Nov 2017 08:45:30 +0800 Message-ID: <9057DDCF-F38A-45F5-A3CB-3ED9F5C00111@sigsegv.be> In-Reply-To: <201710160701.v9G71RHX065541@repo.freebsd.org> References: <201710160701.v9G71RHX065541@repo.freebsd.org> MIME-Version: 1.0 X-Mailer: MailMate (2.0BETAr6093) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Nov 2017 00:44:42 -0000 On 16 Oct 2017, at 15:01, Andriy Voskoboinyk wrote: > Author: avos > Date: Mon Oct 16 07:01:27 2017 > New Revision: 324657 > URL: https://svnweb.freebsd.org/changeset/base/324657 > > Log: > wlandebug(8): obtain original interface name via > ifconfig_get_orig_name() > > Modified: > head/usr.sbin/wlandebug/Makefile > head/usr.sbin/wlandebug/wlandebug.c > This appears to have broken bsdbox: /usr/home/kp/tplink/src/contrib/netcat/netcat.c:351: warning: warning: mktemp() possibly used unsafely; consider using mkstemp() wlandebug.lo: In function `get_orig_iface_name': /usr/home/kp/tplink/src/usr.sbin/wlandebug/wlandebug.c:171: undefined reference to `ifconfig_open' /usr/home/kp/tplink/src/usr.sbin/wlandebug/wlandebug.c:172: undefined reference to `ifconfig_get_orig_name' /usr/home/kp/tplink/src/usr.sbin/wlandebug/wlandebug.c:173: undefined reference to `ifconfig_err_errno' /usr/home/kp/tplink/src/usr.sbin/wlandebug/wlandebug.c:178: undefined reference to `ifconfig_close' collect2: error: ld returned 1 exit status --- bsdbox --- *** [bsdbox] Error code 1 make[4]: stopped in /usr/home/kp/tplink/obj/mips_ap/usr/home/kp/tplink/src/mips.mips/tools/bsdbox This is a freebsd-wifi-build driven cross-compile for mips. bsdbox now requires libifconfig. I’ve had a quick try to teach it how to include that, but haven’t managed to get that to work yet. Regards, Kristof From owner-svn-src-head@freebsd.org Sun Nov 5 00:51:54 2017 Return-Path: Delivered-To: svn-src-head@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 813EFE5BFEA; Sun, 5 Nov 2017 00:51:54 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47E3765DFC; Sun, 5 Nov 2017 00:51:54 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vA50prrM060473; Sun, 5 Nov 2017 00:51:53 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vA50prZc060472; Sun, 5 Nov 2017 00:51:53 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201711050051.vA50prZc060472@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Sun, 5 Nov 2017 00:51:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r325420 - head/contrib/llvm/lib/Support/Unix X-SVN-Group: head X-SVN-Commit-Author: emaste X-SVN-Commit-Paths: head/contrib/llvm/lib/Support/Unix X-SVN-Commit-Revision: 325420 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Nov 2017 00:51:54 -0000 Author: emaste Date: Sun Nov 5 00:51:53 2017 New Revision: 325420 URL: https://svnweb.freebsd.org/changeset/base/325420 Log: lld: accept EINVAL to indicate posix_fallocate is unsupported As of r325320 posix_fallocate on a ZFS filesystem returns EINVAL to indicate that the operation is not supported. (I think this is a strange choice of errno on the part of POSIX.) PR: 223383, 223440 Reported by: Mark Millard Tested by: Mark Millard MFC after: 3 days Sponsored by: The FreeBSD Foundation Modified: head/contrib/llvm/lib/Support/Unix/Path.inc Modified: head/contrib/llvm/lib/Support/Unix/Path.inc ============================================================================== --- head/contrib/llvm/lib/Support/Unix/Path.inc Sun Nov 5 00:26:28 2017 (r325419) +++ head/contrib/llvm/lib/Support/Unix/Path.inc Sun Nov 5 00:51:53 2017 (r325420) @@ -427,7 +427,7 @@ std::error_code resize_file(int FD, uint64_t Size) { // If we have posix_fallocate use it. Unlike ftruncate it always allocates // space, so we get an error if the disk is full. if (int Err = ::posix_fallocate(FD, 0, Size)) { - if (Err != EOPNOTSUPP) + if (Err != EINVAL && Err != EOPNOTSUPP) return std::error_code(Err, std::generic_category()); } #endif