Re: [ROOT] Problems compiling ROOT 2.25.03

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Sep 28 2001 - 08:55:28 MEST


The ./configure supports the following combinations on Solaris:

solaris              for Solaris CC
solarisCC5           for Solaris CC 5.0
solarisegcs          for Solaris egcs 1.1.x
solarisgcc           for Solaris gcc 2.8.1
solariskcc           for Solaris KCC

Which one did you select ?

It could also be that 2.25 was not fully ported to Solaris with gcc.
Version 3 is OK.

Rene Brun

Andrés Gómez Tato wrote:
> 
> Hello.
> 
> Several users of CESGA have requested the instalation of ROOT (version 2.25.03)  in our machines for compatibility with their experimental software. We have downloaded it and making the compilation with gcc we obtain several errors that I send attached in this mail. Could you help us?
> 
> Thanks in advance
> 
> Best regards
> 
> Andres Gomez Tato
> Dep. Aplications & Projects
> Centro de Supercomputacion de Galicia S.A.
> Avda. de Vigo s/n
> E-15706 Santiago de Compostela
> Spain
> Tel. +34 981569810
> Fax: +34 981594616
> e-mail: agomez@cesga.es
> URL: http://www.cesga.es
> 
> SO: SunOS 5.6
> Arch: SPARC
> Compiler: gcc 2.95.3
> gmake:  3.76.1
> 
> ROOTSYS=<directory where I decompressed root>
> configure: solarisgcc --with-xpm=<libXpm.a found in cern ftp>
> 
> Make out
> 
> --8<--------------
> 
> gcc -O -fPIC -DG__REGEXP1 -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT
> -DG__REDIRECTIO -Iinclude  -o cint/src/loadfile.o -c cint/src/loadfile.c
> g++ -shared -O -o lib/libCint.so cint/src/auxu.o cint/src/cast.o
> cint/src/debug.o cint/src/decl.o cint/src/disp.o cint/src/dump.o
> cint/src/end.o cint/src/error.o cint/src/expr.o cint/src/fread.o
> cint/src/func.o cint/src/g__cfunc.o cint/src/gcoll.o cint/src/global1.o
> cint/src/global2.o cint/src/ifunc.o cint/src/inherit.o cint/src/init.o
> cint/src/input.o cint/src/intrpt.o cint/src/loadfile.o cint/src/macro.o
> cint/src/malloc.o cint/src/memtest.o cint/src/new.o cint/src/newlink.o
> cint/src/newsos.o cint/src/oldlink.o cint/src/opr.o cint/src/parse.o
> cint/src/pause.o cint/src/pcode.o cint/src/pragma.o cint/src/quote.o
> cint/src/scrupto.o cint/src/shl.o cint/src/sizeof.o cint/src/stdstrct.o
> cint/src/struct.o cint/src/stub.o cint/src/tmplt.o cint/src/typedef.o
> cint/src/val2a.o cint/src/value.o cint/src/var.o cint/main/G__setup.o
> cint/src/Api.o cint/src/Apiif.o cint/src/BaseCls.o cint/src/CallFunc.o
> cint/src/Class.o cint/src/DataMbr.o cint/src/Method.o cint/src/MethodAr.o
> cint/src/Token.o cint/src/Type.o cint/src/Typedf.o cint/src/libstrm.o
> Text relocation remains                         referenced
>     against symbol                  offset      in file
> ofstream::ios virtual table         0xd0
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(fstream.o)
> ofstream::ios virtual table         0x1c
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(fstream.o)
> ofstream::ios virtual table         0xe0
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(fstream.o)
> ofstream::ios virtual table         0xc
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(fstream.o)
> 
> [...]
> 
> fstreambase::ios virtual table      0x330
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(fstream.o)
> fstreambase::ios virtual table      0x1b0
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(fstream.o)
> fstreambase::ios virtual table      0x31c
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(fstream.o)
> ostream::form(char const *,...)     0x148
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(osform.o)
> _IO_getline_info                    0x268
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(isgetline.o)
> _IO_getline_info                    0x1fc
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(isgetline.o)
> _IO_getline_info                    0xa0
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(isgetline.o)
> _IO_getline_info                    0x18
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(iogetline.o)
> __expm1                             0x8c
> /opt/cesga/SUNWspro/WS6/lib/libm.a(cosh.o)__expm1
> 0x108       /opt/cesga/SUNWspro/WS6/lib/libm.a(tanh.o)__expm1
>             0xbc        /opt/cesga/SUNWspro/WS6/lib/libm.a(tanh.o)__expm1
>                         0x98
> /opt/cesga/SUNWspro/WS6/lib/libm.a(sinh.o)_IO_file_xsputn
> [...]
> 
> ifstream::ios virtual table         0xcc
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(fstream.o)
> fseek                               0x15c
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(stdiostream.o)
> .umul                               0x14c
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(floatconv.o)
> .umul                               0x15c
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(floatconv.o)
> .umul                               0x594
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(floatconv.o)
> .umul                               0x510
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(floatconv.o)
> .umul                               0x4f4
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(floatconv.o)
> .umul                               0x574
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(floatconv.o)
> .umul                               0x1cf4
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(floatconv.o)
> .umul                               0x1d04
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(floatconv.o)
> __filbuf                            0xc0
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(stdiostream.o)
> __libm_TBL_exp2_lo                  0xc68
> /opt/cesga/SUNWspro/WS6/lib/libm.a(pow.o) __libm_TBL_exp2_lo
> 0xc60       /opt/cesga/SUNWspro/WS6/lib/libm.a(pow.o) errno
>             0x1430
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(floatconv.o)
> errno                               0x1260
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(floatconv.o)
> errno                               0x1428
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(floatconv.o)
> 
> [...]
> 
> ostream::ios virtual table          0x68
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(stdiostream.o)
> ostream::ios virtual table          0xdc
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(fstream.o)
> ostream::ios virtual table          0xd4
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(fstream.o)
> ostream::ios virtual table          0x68
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(iostream.o)
> ostream::ios virtual table          0xcc
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(fstream.o)
> _IO_getc                            0x70
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(iostream.o)
> _IO_getc                            0x8fc
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(iostream.o)
> _IO_getc                            0xbc
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(iovfscanf.o)
> _IO_getc                            0x48
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(iovfscanf.o)
> _IO_getc                            0xe4c
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(iostream.o)
> _IO_getc                            0x814
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(iostream.o)
> _IO_getc                            0x7
> 
> [...]
> 
> <unknown>                           0xc58
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(iovfscanf.o)
> <unknown>                           0xc68
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(iovfscanf.o)
> <unknown>                           0xc70
> /opt/cesga/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/libstdc++.a(iovfscanf.o)
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: ld returned 1 exit status
> gmake: *** [lib/libCint.so] Error 1
> 
> -------------->8--



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:00 MET