Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2013 07:29:56 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: ftp/curl: FAILURE due to configure: using CFLAGS: -DLDAP_DEPRECATED
Message-ID:  <20130809072956.65ba2054@munin.geoinf.fu-berlin.de>
In-Reply-To: <E98107E0-0464-4665-8B38-8CBC2052B326@FreeBSD.org>
References:  <20130808200228.230109f7@munin.geoinf.fu-berlin.de> <E98107E0-0464-4665-8B38-8CBC2052B326@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <dim@FreeBSD.org> wrote:

> On Aug 8, 2013, at 20:02, O. Hartmann <ohartman@zedat.fu-berlin.de>
> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130809072956.65ba2054>