Compile problems for lorg3.1 on RH7.3

Ralf Corsepius rc040203 at freenet.de
Sun May 28 10:04:18 PDT 2006


On Sun, 2006-05-28 at 19:19 +0300, Panu Matilainen wrote:
> On Sun, 2006-05-28 at 17:38 +0200, Dag Wieers wrote:

> > 	checking for pkg-config... /usr/bin/pkg-config
> > 	checking pkg-config is at least version 0.9.0... no
> > 	checking for LIBXML2... configure: error: The pkg-config script could not be found or is too old.  Make sure it
> > 	is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config.
> > 
> > 	Alternatively, you may set the environment variables LIBXML2_CFLAGS
> > 	and LIBXML2_LIBS to avoid the need to call pkg-config.
> > 	See the pkg-config man page for more details.
> > 
> > 	To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
> > 
> > I think we can simply do:
> > 
> > 	LIBXML2_CFLAGS=$(xml2-config --cflags)
> > 	LIBXML2_LIBS=$(xml2-config --libs)
> > 
> > and get done with it ?
> 
> I wonder if the auto*foo stuff would be smart enough to pick xml2-config
> instead of pkgconfig if you run 'autoreconf' on EL2.1 or something like
> that.
It already does.

>  IIRC it can do something like that, at least in some cases. This
> isn't an area I'm too familiar with... Ralf / others?
The requirement for pkg-config 0.9.0 stems from the aclocal macro
PKG_CHECK_MODULES from inside of /usr/share/aclocal/pkg.m4, which
originates from the pkgconfig package.

I.e. the current apt-rpm package has a build-requirement on
pkgconfig >= 0.9.0. This qualifies the breakdown above as a dependency
bug in Dag's repo.


An alternative to using PKG_CHECK_MODULES would be using the macros from
inside of /usr/share/aclocal/libxml.m4. This would avoid the dependency
on pkg-config in favor or xml2-config. The price would be a dependency
on the deficiencies of these macros.

I'd rather not walk this way, and leave things as they are.

The other issue (Not being able to set LIBXML_CFLAGS etc.) is a bug in
apt-rpm's configuration. I can have a look into this, when I can get
around to it, probably some time later this week.

Ralf





More information about the Apt-Rpm mailing list