Re: Compilation error when building root 5.26 on a SL5 machine

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Tue, 11 May 2010 17:31:20 +0200


Hi Nicolas,

don't use the xpm from the ROOT ftp site but install the SLC5 package xpm-devel.

Cheers, Axel.

Nicolas Arnaud wrote on 05/11/2010 04:30 PM:
>
> Hello,
>
> I'm trying to build root 5.26 on my SL5 virtual machine which is running
> in Sun VirtualBox on my XP laptop.
>
> After downloading ftp://root.cern.ch/root/xpm/xpmLinuxegcs.tar.gz and
> installing libXpm.* in /usr/lib/ I ran
>
> ./configure linux --prefix=/usr/bin
> [the choice of 'linux' as parameter comes from the output of |uname -a|:
> Linux localhost.localdomain 2.6.18-164.9.1.el5 #1 SMP Tue Dec 15
> 15:08:06 EST 2009 i686 i686 i386 GNU/Linux]
>
> The command |gmake| runs for a while 'successfully' but ends with the
> following error:
>
> (...)
> g++ -m32 -O2 -o bin/root rootx/src/rootx.o rootx/src/rootxx.o -lXpm
> -lXext -lX11 -lXft
> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXpm.a(parse.o): In
> function `xpmParseExtensions':
> parse.c:(.text+0x13f8): undefined reference to `__ctype_b'
> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXpm.a(data.o): In
> function `xpmNextWord':
> data.c:(.text+0x482): undefined reference to `__ctype_b'
> data.c:(.text+0x4bf): undefined reference to `__ctype_b'
> data.c:(.text+0x504): undefined reference to `__ctype_b'
> data.c:(.text+0x51b): undefined reference to `__ctype_b'
> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXpm.a(data.o):data.c:(.text+0x532):
> more undefined references to `__ctype_b' follow
> collect2: ld returned 1 exit status
> gmake: *** [bin/root] Error 1
>
> Any idea about how I could fix this issue?
>
> Thanks in advance,
>
> Nicolas
>
>
Received on Tue May 11 2010 - 17:30:19 CEST

This archive was generated by hypermail 2.2.0 : Tue May 11 2010 - 23:50:01 CEST