Bug#249033: [xml/sgml-pkgs] Bug#249033: libxml2-dev: /usr/share/aclocal/libxml.m4 does not work with C++

Wesley W. Terpstra "Wesley W. Terpstra" <wesley@terpstra.ca>, 249033@bugs.debian.org
Sat, 22 May 2004 12:14:30 +0200


--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 17, 2004 at 05:12:24PM +0900, Mike Hommey wrote:
> tag 249033 +moreinfo
> thanks
>=20
> Wesley W. Terpstra wrote:
> >Package: libxml2-dev
> >Version: 2.6.9-2
> >Severity: normal
> >Tags: upstream
> >
> >When using AM_PATH_XML2 in a C++ program, the generated configure script
> >will always fail. This problem stems from placing xml2-config --cflags in
> >the CFLAGS variable rather than in the CPPFLAGS or CXXFLAGS variable.
>=20
> Could you provide some more information ? I fail to see why AM_PATH_XML2=
=20
> would fail, since the only use of the CFLAGS it does is for checking=20
> libxml2 is properly installed and with the version you asked, not for=20
> compiling the "./configured" software.

During the configure test, the AM_PATH_XML2 macro compiles a test program
which includes the xml headers and checks that the version number matches
your request.

When invoking C++, the CFLAGS variable is not used and thus the -I directive
is missing. The test is compiled as C++ b/c in the configure.ac is:

AC_PROG_CXX
AC_LANG(C++)

=2E.. which is normal for a purely C++ project.

--=20
Wesley W. Terpstra <wesley@terpstra.ca>

--bg08WKrSYDhXBjb5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFArygGvLvElXGKklYRAl+dAJ43UHuWyP7DgdDHPljEmIwFNhxUtACeKVky
vXOpUp484/+4ZAmxp2mV/1Q=
=esX2
-----END PGP SIGNATURE-----

--bg08WKrSYDhXBjb5--