From owner-freebsd-ports@freebsd.org Thu Apr 14 22:27:18 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 EEA62ADAB78 for ; Thu, 14 Apr 2016 22:27:18 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A3501E92 for ; Thu, 14 Apr 2016 22:27:18 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::7d3a:d9a8:389c:8c71] (unknown [IPv6:2001:7b8:3a7:0:7d3a:d9a8:389c:8c71]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id DD7C8291AA; Fri, 15 Apr 2016 00:27:14 +0200 (CEST) Subject: Re: Compiling binutils-2.25.1 failed Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_AD6A1643-F897-4AF8-8646-51E98626A638"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <20160414121051.GA5047@vpn.offrom.nl> Date: Fri, 15 Apr 2016 00:27:07 +0200 Cc: freebsd-ports@FreeBSD.org Message-Id: <5C562392-725E-46C4-BAD4-6D450CF4C86D@FreeBSD.org> References: <20160414121051.GA5047@vpn.offrom.nl> To: Willem@Offermans.Rompen.nl X-Mailer: Apple Mail (2.3124) 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: Thu, 14 Apr 2016 22:27:19 -0000 --Apple-Mail=_AD6A1643-F897-4AF8-8646-51E98626A638 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 14 Apr 2016, at 14:10, Willem Offermans = wrote: >=20 > 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 >=3D 4009) # define ATTRIBUTE_RETURNS_NONNULL __attribute__ = ((__returns_nonnull__)) # else # define ATTRIBUTE_RETURNS_NONNULL # endif /* GNUC >=3D 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 --Apple-Mail=_AD6A1643-F897-4AF8-8646-51E98626A638 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlcQGUIACgkQsF6jCi4glqN8lQCg6o672bDS1ZWSyx8KsXgI2AC5 /gMAoIgd6ZfU6xiGotBJAOnhdmAEDv+Z =0svu -----END PGP SIGNATURE----- --Apple-Mail=_AD6A1643-F897-4AF8-8646-51E98626A638--