Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Nov 2017 08:45:30 +0800
From:      "Kristof Provost" <kristof@sigsegv.be>
To:        "Andriy Voskoboinyk" <avos@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r324657 - head/usr.sbin/wlandebug
Message-ID:  <9057DDCF-F38A-45F5-A3CB-3ED9F5C00111@sigsegv.be>
In-Reply-To: <201710160701.v9G71RHX065541@repo.freebsd.org>
References:  <201710160701.v9G71RHX065541@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <owner-svn-src-head@freebsd.org>
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 <emaste@FreeBSD.org>
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
 <svn-src-head.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/svn-src-head>,
 <mailto:svn-src-head-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-head/>;
List-Post: <mailto:svn-src-head@freebsd.org>
List-Help: <mailto:svn-src-head-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/svn-src-head>,
 <mailto:svn-src-head-request@freebsd.org?subject=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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9057DDCF-F38A-45F5-A3CB-3ED9F5C00111>