From owner-freebsd-ports@freebsd.org Mon Apr 18 12:43:46 2016 Return-Path: Delivered-To: freebsd-ports@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 F3426B128E3 for ; Mon, 18 Apr 2016 12:43:46 +0000 (UTC) (envelope-from Willem@Offermans.Rompen.nl) Received: from cpsmtpb-ews01.kpnxchange.com (cpsmtpb-ews01.kpnxchange.com [213.75.39.4]) by mx1.freebsd.org (Postfix) with ESMTP id 59B6D1CCD; Mon, 18 Apr 2016 12:43:45 +0000 (UTC) (envelope-from Willem@Offermans.Rompen.nl) Received: from cpsps-ews14.kpnxchange.com ([10.94.84.181]) by cpsmtpb-ews01.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 18 Apr 2016 14:43:38 +0200 Received: from cpsmtpm-cmt101.kpnxchange.com ([195.121.3.17]) by cpsps-ews14.kpnxchange.com with Microsoft SMTPSVC(7.5.7601.17514); Mon, 18 Apr 2016 14:43:38 +0200 Received: from donald.offrom.nl ([77.164.21.27]) by cpsmtpm-cmt101.kpnxchange.com over TLS secured channel with Microsoft SMTPSVC(7.0.6002.18264); Mon, 18 Apr 2016 14:43:37 +0200 Received: from squid (squid.vpn.offrom.nl [10.168.0.72]) by donald.offrom.nl (8.15.2/8.14.9) with ESMTPS id u3IChVML010323 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 18 Apr 2016 14:43:31 +0200 (CEST) (envelope-from Willem@Offermans.Rompen.nl) Received: from willy by squid with local (Exim 4.80) (envelope-from ) id 1as8WT-0002mP-LN; Mon, 18 Apr 2016 14:43:25 +0200 Date: Mon, 18 Apr 2016 14:43:25 +0200 From: Willem Offermans To: Dimitry Andric Cc: Willem@Offermans.Rompen.nl, freebsd-ports@FreeBSD.org Subject: Re: Compiling binutils-2.25.1 failed Message-ID: <20160418124325.GE4998@vpn.offrom.nl> Reply-To: Willem@Offermans.Rompen.nl References: <20160414121051.GA5047@vpn.offrom.nl> <5C562392-725E-46C4-BAD4-6D450CF4C86D@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5C562392-725E-46C4-BAD4-6D450CF4C86D@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on donald.offrom.nl X-OriginalArrivalTime: 18 Apr 2016 12:43:37.0877 (UTC) FILETIME=[EDB27450:01D1996F] X-RcptDomain: FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2016 12:43:47 -0000 Hello Dimitry and FreeBSD friends, On Fri, Apr 15, 2016 at 12:27:07AM +0200, Dimitry Andric wrote: > On 14 Apr 2016, at 14:10, Willem Offermans wrote: > > > > I have inherited an ``old'' FreeBSD server. I like to bring it up to date. > > However I have problems to compile binutils-2.25.1. > ... > > In file included from ./cp-demangle.c:128: > > ./../include/libiberty.h:113:38: error: expected function body after > > function declarator > > extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL > > ATTRIBUTE_NONNULL(1); > > ^ > > In binutils' include/ansidecl.h header, there is this code fragment: > > /* Attribute `returns_nonnull' was valid as of gcc 4.9. */ > #ifndef ATTRIBUTE_RETURNS_NONNULL > # if (GCC_VERSION >= 4009) > # define ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__)) > # else > # define ATTRIBUTE_RETURNS_NONNULL > # endif /* GNUC >= 4.9 */ > #endif /* ATTRIBUTE_RETURNS_NONNULL */ > > For some reason this doesn't seem to be picked up by your ports build. > For example, it is possible that your build picks up an ansidecl.h from > somewhere else, so search your system for duplicate copies of this > header. > > Also, can you preprocess the file with -E, or use -save-temps to save > the intermediate result? Then you should be able to see what the macro > expands to, if anything. > > -Dimitry > I already found a solution by applying `pkg install devel/binutils`. But to solve this issue, I did a search for the file ansidecl.h, as you suggested. There were several: /usr/local/include/ansidecl.h /usr/src/contrib/binutils/include/ansidecl.h /usr/src/contrib/gcclibs/include/ansidecl.h /usr/src/contrib/gdb/include/ansidecl.h /usr/ports/devel/binutils/work/binutils-2.25.1/include/ansidecl.h I would assume that the last one would have preference above the others. Am I wrong? -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, De jrus wah, Will ************************************* W.K. Offermans Powered by .... (__) \\\'',) \/ \ ^ .\._/_) www.FreeBSD.org