[rrd-users] Trying to build rrdtool 1.4.1 on RedHat EL4

Ulf Zimmermann ulf at openlane.com
Thu Nov 5 02:39:23 CET 2009


> -----Original Message-----
> From: William R. Lorenz [mailto:wrl at express.org]
> Sent: Wednesday, November 04, 2009 4:50 PM
> To: Ulf Zimmermann
> Cc: 'Tobias Oetiker'; rrd-users at lists.oetiker.ch
> Subject: Re: [rrd-users] Trying to build rrdtool 1.4.1 on RedHat EL4
> 
> Hi Ulf,
> 
> On Wed, 4 Nov 2009, Ulf Zimmermann wrote:
> 
> >> Ok, I got a working configure now on EL4, I will see to modify the
> >> .spec file in a few minutes to see if I can build a rpm from it.
> 
> > Now running into actual compile problems with libxml2. Rrdtool 1.4.1
> > code wants xmlTextReaderGetParserLineNumber, which was added to
> libxml2
> > 2.6.17 and EL4 only has 2.6.16, sigh.
> 
> Welcome to my RPM building world.  That's why I didn't make EL4 RPMs.
> ;-)
> 
> > evolution28-cairo-1.2.4-6.el4.i386.rpm
> > evolution28-cairo-devel-1.2.4-6.el4.i386.rpm
> > evolution28-glib2-2.12.3-6.el4.i386.rpm
> > evolution28-glib2-devel-2.12.3-6.el4.i386.rpm
> > evolution28-pango-1.14.9-11.el4_7.i386.rpm
> > evolution28-pango-devel-1.14.9-11.el4_7.i386.rpm
> 
> Where did you find these evolution28 packages?  I may try to take a
> peek
> and see if I can't make something work with these and some other
> packages.
> Is there a particular site with the SRPMS for these so I can
> deconstruct?

They are part of RH EL4 Updates, also available via CentOS. They provided an Evolution 2.8 package, which needs these updated libraries.

Using them I continued on trying to build rrdtool. Next stopper was rrd_restore.c wanting to use xmlTextReaderGetParserLineNumber when printing out errors about importing. This function was defined in libxml2 2.6.17, EL4 only has 2.6.16. Got around it by just doing

#define xmlTextReaderGetParserLineNumber(xmlTextReaderPtr) 0

Which just means any error will show line 0, instead of the real line when there is an import.

Continuing on the next hurdle was dejavu-lgc-fonts, which is available on EL5, is noarch but requires fontconfig >= 2.3, I rebuild it for now setting fontconfig requirement to just >= 2.2.

Now the rpm refuses still to install because of it is looking for libpangocairo-1.0.so.0, which is in /usr/evolution28/lib, but the evolution28 rpms don't add any ld.conf file to point there, so I am still trying to figure out how to teach rpmbuild/rpm to look there for the libs for installing and running. As compiled it does:

el4build ulf rpmbuild/SPECS > ldd /usr/bin/rrdtool 
        librrd.so.4 => /usr/lib/librrd.so.4 (0x00c7a000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x008f2000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x004b4000)
        libm.so.6 => /lib/tls/libm.so.6 (0x00295000)
        libpangocairo-1.0.so.0 => not found
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x0013e000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00821000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x0089d000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00886000)
        libdl.so.2 => /lib/libdl.so.2 (0x00111000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00174000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00a3d000)
        libz.so.1 => /usr/lib/libz.so.1 (0x0088b000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00d6e000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00676000)
        libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x00adc000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x004c8000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x005a9000)
        libc.so.6 => /lib/tls/libc.so.6 (0x002b8000)
        /lib/ld-linux.so.2 (0x00127000)
        libpangocairo-1.0.so.0 => not found
        libdirectfb-1.2.so.0 => /usr/lib/libdirectfb-1.2.so.0 (0x00f6d000)
        libfusion-1.2.so.0 => /usr/lib/libfusion-1.2.so.0 (0x00498000)
        libdirect-1.2.so.0 => /usr/lib/libdirect-1.2.so.0 (0x001ef000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x006c3000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x00202000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x0021a000)


> 
> Thanks,
> 
> --
> William R. Lorenz



More information about the rrd-users mailing list