From owner-freebsd-ports@FreeBSD.ORG Fri Aug 9 05:26:00 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B08E0F79; Fri, 9 Aug 2013 05:26:00 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6CF852DEA; Fri, 9 Aug 2013 05:26:00 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.80.1) with esmtp (envelope-from ) id <1V7fD4-0008OE-Ub>; Fri, 09 Aug 2013 07:25:58 +0200 Received: from g229117132.adsl.alicedsl.de ([92.229.117.132] helo=munin.geoinf.fu-berlin.de) by inpost2.zedat.fu-berlin.de (Exim 4.80.1) with esmtpsa (envelope-from ) id <1V7fD4-003BSn-Ps>; Fri, 09 Aug 2013 07:25:58 +0200 Date: Fri, 9 Aug 2013 07:29:56 +0200 From: "O. Hartmann" To: Dimitry Andric Subject: Re: ftp/curl: FAILURE due to configure: using CFLAGS: -DLDAP_DEPRECATED Message-ID: <20130809072956.65ba2054@munin.geoinf.fu-berlin.de> In-Reply-To: References: <20130808200228.230109f7@munin.geoinf.fu-berlin.de> Organization: FU Berlin X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd9.2) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/xYr_uIeObQpZKx_+QubQQtF"; protocol="application/pgp-signature" X-Originating-IP: 92.229.117.132 Cc: FreeBSD Ports 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: Fri, 09 Aug 2013 05:26:00 -0000 --Sig_/xYr_uIeObQpZKx_+QubQQtF Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 8 Aug 2013 21:06:47 +0200 Dimitry Andric wrote: > On Aug 8, 2013, at 20:02, O. Hartmann > wrote: > > On several most recently update FreeBSD 10.0-CURRENT machines the > > update of port ftp/curl went smoothly, but on exactly one box the > > portbuild fails with a very strange error: > >=20 > > [...] > > configure: using CFLAGS: -O2 -pipe -O3 -march=3Dnative > > -DLDAP_DEPRECATED -fno-strict-aliasing configure: CFLAGS error: > > CFLAGS may only be used to specify C compiler flags, not macro > > definitions. Use CPPFLAGS for: -DLDAP_DEPRECATED configure: error: > > Can not continue. Fix errors mentioned immediately above this line. > > [...] > >=20 > > I haven't set -DLDAP_DEPRECATED nor in /etc/make.conf neither > > in /etc/src.conf nor can I find in /etc or //usr/local/etc any > > settings of such a flag for CFLAGS! I delete /usr/ports/Mk > > and /usr/ports/Templates and checked them out again via subversion, > > but this mysterious CFLAGS setting is sticky like hell. >=20 > This is most likely because you are building the curl port with the > LDAP option on. Whenever this option is on, the port defines > USE_OPENLDAP=3Dyes, and this pulls in /usr/ports/Mk/bsd.ldap.mk, which > has (around line 66): >=20 > CFLAGS+=3D -DLDAP_DEPRECATED >=20 > It is a GNU convention to use CPPFLAGS for preprocessor-specific > compiler options, but the level of checking in this configure script > is overdoing it a little bit, in my opinion. >=20 > We can't just change the above line to read CPPFLAGS+=3D > -DLDAP_DEPRECATED, since a lot of other software does not use nor > cares about CPPFLAGS. >=20 > Probably the easiest workaround for your case, if you can miss LDAP > support, is to just turn off the LDAP option. >=20 > -Dimitry Thanks, disabled the option. I wasn't aware of the fact that I had choosen the LDAP option. Without, curl compiles well. My fault ( I should have checked the options on the boxes were it compiled earlier). Oliver --Sig_/xYr_uIeObQpZKx_+QubQQtF Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iQEcBAEBAgAGBQJSBH5UAAoJEOgBcD7A/5N8bEkH/2JVc3kJcDUhSd88jdvmfTYt BQMhdJpCbL03JEEzYeG+uEqiLjFsw7bfJsRwoEABnBXDcWmrbfR38E+tpBg+jktF sco3aiUK1cHpeafZqVLlyhMHIdhZPU5Pdb+EN7maEhuzv0I+FJMpyrp1JXNvPhta eCjWvNxCiWVq3NLgITVSwzFI0IxsRZ0rD9bj7kyRe2MnYPp0mK8WsXduGOuZdScq xOklfK4srMHAxMMW+BO26fxQxGp22c8uvPjoPIfDZAUQaAfmfOSAdCAcwcb6h5Br 1H4xQZa3HW2ZJt+uy5rxMA3xkVFNKP6nbGTsu/lib38s2UvCkJ4lcuSHyJU+qzY= =Jgyu -----END PGP SIGNATURE----- --Sig_/xYr_uIeObQpZKx_+QubQQtF--