Hi,

I am changing the the Zenoss source installer to use rrdtool 1.3.4. I want to 
build all of the dependencies outlined in the rrdbuild page. I've got 
everything building, but rrdtool seems to not use the pkg-config info for 
libxml2's include directory. First I set up the environment variables...


$ cat install.sh 
#! /usr/bin/env bash

INSTALL_DIR=/home/brian/rrdtool_inst/install
export PKG_CONFIG_PATH=${INSTALL_DIR}/lib/pkgconfig
export PATH=${INSTALL_DIR}/bin:$PATH
export LDFLAGS="-Wl,--rpath -Wl,${INSTALL_DIR}/lib" 
$ . ./install.sh


I created a Makefile which is almost a direct copy of the instructions from the 
rrdbuild.  Running make builds all the dependencies but rrdtool fails with this 
message. Notice the "-I/usr/include/libxml2" in the error message.  That is the 
wrong path.  The libxml2 pkgconfig file looks good (I pasted it's contents 
under the error message).


checking for xmlParseFile in -lxml2... no
checking for pkg-config... (cached) pkg-config
checking for xmlParseFile in -lxml2... no
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of libxml-2.0. Check config.log for hints on 
why
  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
  so that compiler and the linker can find libxml2 and its header files. If
  you have not installed libxml-2.0, you can get it either from its original 
home on

     http://xmlsoft.org/downloads.html

  You can find also find an archive copy on

     http://oss.oetiker.ch/rrdtool/pub/libs

  The last tested version of libxml-2.0 is 2.6.31.

       LIBS=-lcairo -lcairo -lcairo -lm  -lcairo -lpng12   -lpangocairo-1.0 
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lxml2  
   LDFLAGS=-Wl,--rpath -Wl,/home/brian/rrdtool_inst/install/lib 
-L/home/brian/rrdtool_inst/install/lib     
-L/home/brian/rrdtool_inst/install/lib     
-L/home/brian/rrdtool_inst/install/lib    
  CPPFLAGS= -I/home/brian/rrdtool_inst/install/include/cairo 
-I/home/brian/rrdtool_inst/install/include/libpng12 
-I/home/brian/rrdtool_inst/install/include/freetype2 
-I/home/brian/rrdtool_inst/install/include 
-I/home/brian/rrdtool_inst/install/include/pixman-1   
-I/home/brian/rrdtool_inst/install/include/pango-1.0 
-I/home/brian/rrdtool_inst/install/include/cairo 
-I/home/brian/rrdtool_inst/install/include/glib-2.0 
-I/home/brian/rrdtool_inst/install/lib/glib-2.0/include 
-I/home/brian/rrdtool_inst/install/include/freetype2 
-I/home/brian/rrdtool_inst/install/include 
-I/home/brian/rrdtool_inst/install/include/libpng12 
-I/home/brian/rrdtool_inst/install/include/pixman-1   -I/usr/include/libxml2 
-I/home/brian/rrdtool_inst/install/include/libxml2  

----------------------------------------------------------------------------
                
configure: error: Please fix the library issues listed above and try again.
make: *** [rrdtool-install] Error 1
[2]+  Done                    scite build/rrdtool-1.3.4/config.log
$ 


$ cat install/lib/pkgconfig/libxml-2.0.pc 
prefix=/home/brian/rrdtool_inst/install
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
modules=1

Name: libXML
Version: 2.6.31
Description: libXML library version2.
Requires:
Libs: -L${libdir} -lxml2
Libs.private:  -lz  -lm 
Cflags: -I${includedir}/libxml2 
$ 

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to