From owner-freebsd-ports@FreeBSD.ORG Tue Jun 4 12:51:11 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 68ADDE50 for ; Tue, 4 Jun 2013 12:51:11 +0000 (UTC) (envelope-from gnugcc@marino.st) Received: from shepard.synsport.net (mail.synsport.com [208.69.230.148]) by mx1.freebsd.org (Postfix) with ESMTP id 471421FEF for ; Tue, 4 Jun 2013 12:51:05 +0000 (UTC) Received: from [192.168.0.22] (unknown [130.255.16.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by shepard.synsport.net (Postfix) with ESMTP id 5EB1243600 for ; Tue, 4 Jun 2013 07:41:47 -0500 (CDT) Message-ID: <51ADE082.1000606@marino.st> Date: Tue, 04 Jun 2013 14:41:38 +0200 From: John Marino User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Change when using gcc48 References: <51ADCED5.8000605@ShaneWare.Biz> In-Reply-To: <51ADCED5.8000605@ShaneWare.Biz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jun 2013 12:51:11 -0000 On 6/4/2013 13:26, Shane Ambler wrote: > As the port maintainer of graphics/openimageio I have come across a > change when building with gcc48. > > The current version of openimageio compiles fine with clang gcc and > gcc46, but when compiled with gcc48 the unlink function is not defined. > > The simple solution is to add #include to the source file > but why is this only needed for gcc48? Is this an intended change? I'm pretty sure this is not new for gcc48. This behavior is seen with gcc47 too. unistd.h is a big culprit, string.h, , etc, also frequently need to be added to older codebases. Yeah, I don't think it's accidental. :) John