Re: [ROOT] Problems compiling ROOT 2.25.03 on Debian

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Sat Dec 02 2000 - 13:24:03 MET


Hi Mike,

   I just realize that you were not working with the latest CVS version.
So, to get version for the new glibc just check out tag v2-26-01 from
the ROOT CVS. On how to do that see: http://root.cern.ch/root/CVS.html
"getting a previous version".

Cheers, Fons.


On Sat, Dec 02, 2000 at 12:59:05PM +0100, Fons Rademakers wrote:
> The pre-release of glibc 2.2 that came with RH 7.0 has fpos_t as a 
> struct. I assume Debian 2.4 is also now using the new glibc. However,
> they must have something funny since it does not seem to pass the
> test:
> 
> > #   if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 2
> > #      define G__NONSCALARFPOS2
> > #   endif
> 
> Specifically __GLIBC_MINOR__ >= 2. Could you check the headers on
> your Debian system to see what GLIBC_MINOR is and let me know so I
> can refine the test.
> 
> Cheers, Fons.
> 
> 
> 
> On Sat, Dec 02, 2000 at 12:00:03AM +0100, Jiri Masik wrote:
> > Mike Beddo <meb@DataVentures.com> writes:
> > 
> > > Dear RootTalk,
> > > 
> > > I'm trying to compile latest ROOT on my new thinkpad laptop which is
> > > running Debian 2.4 kernal (I think). The make stops when compiling
> > > cint/src/macro.c, lines 520 and 898 ("invalid operands to binary ==").
> > > Apparently, the typedef "fpos_t" is nonscalar (i.e., it is a structure)
> > > in debian release. I compared to a redhat release, in which "fpos_t" is
> > > a scalar (long). The configure script apparently doesn't check for this.
> > 
> > As it is now the build system is rather based on a knowledge base about
> > systems. 
> > 
> > > 
> > > I should point out that I recently got this laptop, and I'm not married
> > > to Debian so I'm willing to switch to RedHat. I've noticed similar
> > > problems building non-ROOT software as well, and haven't yet been
> > > successful installing StarOffice either.
> > > 
> > > I'm not sure what to do now. I DON'T WANT TO START A "My OS is better
> > > than your OS" series of discussions, but I'm wondering how many other
> > > Debian "features" I'll find if I work around this problem and go on to
> > > try and finish building ROOT. Any experience out there building ROOT on
> > > Debian?
> > > 
> > > - Mike Beddo
> > 
> > Define G__NONSCALARFPOS2 or whatever symbol in macro.c fits your libc
> > in cint/inc/G__ci.h
> > 
> > The following is what Fons did in 2.26 to match libc version in Redhat7
> > 
> > /* added by Fons Radamakers in 2000 Oct 2 */
> > #if defined(__linux)
> > #   include <features.h>
> > #   if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 2
> > #      define G__NONSCALARFPOS2
> > #   endif
> > #endif
> > 
> >         Jiri
> > 
> > 
> 
> -- 
> Org:    CERN, European Laboratory for Particle Physics.
> Mail:   1211 Geneve 23, Switzerland
> E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
> WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:38 MET