From owner-freebsd-current@freebsd.org Fri Feb 10 13:37:20 2017 Return-Path: Delivered-To: freebsd-current@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 70E21CD85F6 for ; Fri, 10 Feb 2017 13:37:20 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) (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 2FB1110C2 for ; Fri, 10 Feb 2017 13:37:20 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from amavis-ori.ijs.si (localhost [IPv6:::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ijs.si (Postfix) with ESMTPS id 3vKbbG1XnnzZ9; Fri, 10 Feb 2017 14:37:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= user-agent:message-id:references:in-reply-to:organization :subject:subject:from:from:date:date:content-transfer-encoding :content-type:content-type:mime-version:received:received :received:received; s=jakla4; t=1486733829; x=1489325830; bh=m94 qZVqDrX/brLlL0HnNaKnDSFIhUvdlD9JlEMLpjUA=; b=eDCypPAWNLIJBvAfWo9 3tcSlUExnZ7hdqCX6kWEbLqtKzVK8B8O/toS7/LLwkZ+Yl/iaJvzfJyfSQJAGzNO zRMZw8C3mJOUJjzZNbT6GeHeFLLau/E+4uRZ/7y5IzqgHjxzlBR2vZvOUzkHv9yo 2+Xn3Zl/gH/JTzK6yK6m+O5o= X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([IPv6:::1]) by amavis-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10026) with LMTP id ACvQKXZjXmwp; Fri, 10 Feb 2017 14:37:09 +0100 (CET) Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP id 3vKbb60hS9zZ1; Fri, 10 Feb 2017 14:37:06 +0100 (CET) Received: from nabiralnik.ijs.si (nabiralnik.ijs.si [IPv6:2001:1470:ff80::80:16]) by mildred.ijs.si (Postfix) with ESMTP id 3vKbb56xF6zHP; Fri, 10 Feb 2017 14:37:05 +0100 (CET) Received: from neli.ijs.si (2001:1470:ff80:88:21c:c0ff:feb1:8c91) by webmail.ijs.si with HTTP (HTTP/1.1 POST); Fri, 10 Feb 2017 14:37:05 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 10 Feb 2017 14:37:05 +0100 From: Mark Martinec To: freebsd-current@freebsd.org Cc: Iblis Lin Subject: Re: r313494 make perl File::Temp broken Organization: Jozef Stefan Institute In-Reply-To: <20170210130952.GA70284@abeing> References: <20170210130952.GA70284@abeing> Message-ID: X-Sender: Mark.Martinec+freebsd@ijs.si User-Agent: Roundcube Webmail/1.2.3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2017 13:37:20 -0000 2017-02-10 14:09, Iblis Lin wrote: > as not a perl programmer myself. I have no idea what is going on. > I found this issue while compiling math/openblas. > > [iblis@ns]% uname -a > FreeBSD ns 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r313500: Fri Feb 10 > 16:39:21 > CST 2017 root@ns:/usr/obj/usr/src/sys/GENERIC amd64 > > [iblis@ns]% cat test.pl > use File::Temp qw(tempfile); > $tmpf = new File::Temp( UNLINK => 1 ); > > [iblis@ns]% perl test.pl > Error in tempfile() using template /tmp/XXXXXXXXXX: Could not create > temp file > /tmp/dI5uhUsijR: Bad file descriptor at test.pl line 2. [...] > stat("/tmp/",{ mode=drwxrwxrwt > ,inode=24317568,size=1024,blksize=32768}) = 0 (0x0) > stat("/tmp/",{ mode=drwxrwxrwt > ,inode=24317568,size=1024,blksize=32768}) = 0 (0x0) > openat(AT_FDCWD,"/tmp/Nn0Epra5ff",O_RDWR|O_EXLOCK|O_NOFOLLOW|O_CREAT|O_EXCL,0600) > ERR#9 'Bad file descriptor' Perhaps your /tmp is a logical link, and O_NOFOLLOW does not allow that. Mark