Compile problems for lorg3.1 on RH7.3

Dag Wieers dag at wieers.com
Sun May 28 09:07:39 PDT 2006


On Sun, 28 May 2006, Dag Wieers wrote:

> For EL2.1 it still requires a pkgconfig > 0.9, not sure if we can work 
> around that somehow using xml2-config ?
> 
> 	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 ?

Trying to export these variables from my SPEC files, it still fails with 
the same error, so the help output from configure is incorrect:

  LIBXML2_CFLAGS
              C compiler flags for LIBXML2, overriding pkg-config
  LIBXML2_LIBS
              linker flags for LIBXML2, overriding pkg-config

It does not disable the pkg-config check and makes configure still fail. I 
guess it would work if pkg-config was not installed, but that's not what 
--help says :)

I added a patch that works around it (but probably does not fail when 
both pkg-config is old and the LIBXML2 environment variables or not set)

That said, it might be better to use xml2-config instead if pkg-config is 
too old.

Kind regards,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[all I want is a warm bed and a kind word and unlimited power]
-------------- next part --------------
--- configure.orig	2006-05-28 18:01:19.027948176 +0200
+++ configure	2006-05-28 18:03:58.558695816 +0200
@@ -21421,7 +21421,6 @@
 echo "$as_me:$LINENO: checking for LIBXML2" >&5
 echo $ECHO_N "checking for LIBXML2... $ECHO_C" >&6
 
-if test -n "$PKG_CONFIG"; then
     if test -n "$LIBXML2_CFLAGS"; then
         pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
     else
@@ -21436,10 +21435,7 @@
   pkg_failed=yes
 fi
     fi
-else
-	pkg_failed=untried
-fi
-if test -n "$PKG_CONFIG"; then
+
     if test -n "$LIBXML2_LIBS"; then
         pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
     else
@@ -21454,9 +21450,6 @@
   pkg_failed=yes
 fi
     fi
-else
-	pkg_failed=untried
-fi
 
 
 


More information about the Apt-Rpm mailing list