From owner-freebsd-stable@freebsd.org Sat Apr 29 17:00:16 2017 Return-Path: Delivered-To: freebsd-stable@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 91041D56605 for ; Sat, 29 Apr 2017 17:00:16 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from ainaz.pair.com (ainaz.pair.com [209.68.2.66]) (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 70F63353; Sat, 29 Apr 2017 17:00:15 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from anthias (vie-188-118-250-006.dsl.sil.at [188.118.250.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ainaz.pair.com (Postfix) with ESMTPSA id 805183F56E; Sat, 29 Apr 2017 13:00:13 -0400 (EDT) Date: Sat, 29 Apr 2017 19:00:11 +0200 (CEST) From: Gerald Pfeifer To: Jung-uk Kim cc: papowell@astart.com, freebsd-stable@freebsd.org Subject: Re: GCC + FreeBSD 11.0 Stable - stat.h does not have vm_ooffset_t definition In-Reply-To: <22bfc9eb-f037-cb1e-931f-a995e98093e2@FreeBSD.org> Message-ID: References: <8316fd8e-056d-32a1-1e59-414269476190@astart.com> <95c6f08e-0cf7-f0f3-8b19-29e03b3f4f96@FreeBSD.org> <39149f1c-d939-5c60-a0c3-ab76fa0f750b@astart.com> <22bfc9eb-f037-cb1e-931f-a995e98093e2@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2017 17:00:16 -0000 On Thu, 27 Apr 2017, Jung-uk Kim wrote: >>>>>> I found the problem, but I do not know how to resolve this. When you >>>>>> install the GCC compiler from the PKG repository it appears to create a >>>>>> modified set of include files from the system (default?) include files >>>>>> (/usr/include). However, when the modified /usr/include/sys/types.h >>>>>> file is created, the typedef for vm_ooffset_t is modified, and there is >>>>>> no reference to __vm_ooffset_t that the compiler can resolve. >>>>>> >>>>>> < typedef __int64_t vm_ooffset_t; >>>>>> --- >>>>>> > typedef __vm_ooffset_t vm_ooffset_t; >>>>> ... >>>>> You have to rebuild lang/gcc from the ports tree to fix this problem. >>>>> >>>>> https://lists.freebsd.org/pipermail/freebsd-current/2017-February/064937.html >>>> Does this mean that the GCC port/package needs to be updated? If so, >>>> should I file a PR report on this issue? >>>> I (temporarily) fixed this problem by hand editting the modified types.h >>>> file and things seem to work. >>> I already wrote a patch (attached). :-) > If the maintainer (gerald) approves. CC'd. Thanks for bringing this to my attention. Can you please help me understand why this is necessary? If the port/package is builts from scratch, does this trigger the problem? Or is this only a question of an old package running on that new version of FreeBSD after these changes? (I am wondering whether just forcing a rebuild of that package is not going to have the same effect?) Gerald