Re: [ROOT] Problem compiling root test programs

From: cstrato@EUnet.at
Date: Fri Apr 05 2002 - 23:31:23 MEST


Dear Damir, Christian and Jiri

Thank you all for your suggestions, which I will try.
First I will try to set  the LD_LIBRARY_PATH again, since I also believe
that this could be the error. However, I was not able to find out
where this variable is stored or should be stored. Do you know where
I can find it?

Sorrowly, currently I have also a hardware problem, so that I can
turn on my PowerBook only sporadically. So testing will be slow.

Thank you once again.
Best regards
Christian

Damir Buskulic wrote:

> Hi Christian,
>
> By anywhere else, I mean is there any other non-ROOT program that has
> the same behaviour ?
> At link time, you specify the path to libraries, so it's not surprising
> that everything compiles fine. At run time, something in your
> configuration makes the loader think that it doesn't know where to find
> libraries.
> Could you run "ldd" on one of your ROOT test programs ? It should tell
> you all the paths to libraries it can find. If not, I don't see why, but
> you are misconfigured somehow. Does at least ROOT run correctly ?
> Somehow, rootcint launched from "make" doesn't see the libs. Perhaps is
> it that your LD_LIBRARY_PATH is not set or unset in the makefile ? Does
> rootcint at least launch when you are on command line ? Which would mean
> that LD_LIBRARY_PATH is correctly set in your shells, but not correctly
> set when launching "make" or another shell ?
>
> Well, very hard to make a diagnostics without more information.
>
> Cheers
>
> Damir
>
> cstrato@EUnet.at wrote:
> > Hi Damir
> >
> > What do you mean with anywhere else?
> > My problem is that I cannot compile any of my code, I get always the same
> > error. Since all my make files are based on the makefile of the root
> > test programs, I tried to compile these and got the same error message.
> >
> > It is also not quite clear to me what the error message means, since
> > I get an object file myprogram.o which means that the compiler must
> > have found the root libs, but it is not able to create the dictionary.
> > Usually, I think that there must be a mistake in my makefile, but
> > this can no longer be me.
> >
> > Do you have any hints, which options I could try?
> > (I do not understand why Linux != Linux  !!!)
> >
> > Regards
> > Christian
> >
> > Damir Buskulic wrote:
> >
> >
> >>Hi Christian,
> >>
> >>I'm using Suse7.3 on PPC (Powerbook) and don't see any problem. Just
> >>compiled the 3.03/03 and it worked fine. Do you have this behaviour
> >>anywhere else ?
> >>
> >>Damir
> >>
> >>cstrato@EUnet.at wrote:
> >>
> >>>Dear Rooters
> >>>
> >>>Due to diverse problems I had to reformat my HD and have now
> >>>installed YellowDog Linux on my PowerBook since LinuxPPC no
> >>>longer exists.
> >>>
> >>>I could successfully compile root_v3.03.02 and run the tutorials.
> >>>However, now I am not able to compile the test programs (or
> >>>my own programs) due to the following error:
> >>>[strato@localhost test]$ make
> >>>Generating dictionary EventDict.cxx...
> >>>rootcint: error while loading shared libraries: libCint.so:
> >>>cannot load shared object file: No such file or directory
> >>>make: *** [EventDict.cxx] Error 127
> >>>
> >>>Since I had the same problem some time ago with LinuxPPC 2000
> >>>due to an error in the make file, see:
> >>>http://root.cern.ch/root/roottalk/roottalk01/3032.html
> >>>I suppose that my current problems may be caused by a similar
> >>>problem, maybe once again in the following part:
> >>>ifeq ($(ARCH),linuxppcegcs)
> >>># MkLinux with egcs/glibc
> >>>CXX           = g++
> >>>CXXFLAGS      = -O -Wall -fPIC
> >>>LD            = g++
> >>>LDFLAGS       = -O
> >>>SOFLAGS       = -shared
> >>>#SOFLAGS       = -shared -Wl,-soname
> >>>endif
> >>>
> >>>Could it be that SOFLAGS need a different definition with
> >>>YellowDog Linux 2.1 than with LinuxPPC 2000?
> >>>
> >>>The following shows my PATH settings:
> >>>[strato@localhost test]$ echo $PATH
> >>>/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/strato/bin:/home/strato/rt/root/bin
> >>>
> >>>[strato@localhost test]$ echo $LD_LIBRARY_PATH
> >>>:/home/strato/rt/root/lib
> >>>
> >>>Any help would be greatly appreciated.
> >>>
> >>>Best regards
> >>>Christian
> >>>----------------------------------
> >>>C.h.r.i.s.t.i.a.n  S.t.r.a.t.o.w.a
> >>>V.i.e.n.n.a,  A.u.s.t.r.i.a
> >>>
> >>>
> >>>
> >>
> >>--
> >>=====================================================================
> >>| Damir Buskulic                  | Universite de Savoie/LAPP       |
> >>|                                 | Chemin de Bellevue, B.P. 110    |
> >>| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
> >>| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
> >>=====================================================================
> >>mailto:buskulic@lapp.in2p3.fr
> >
> >
>
> --
> =====================================================================
> | Damir Buskulic                  | Universite de Savoie/LAPP       |
> |                                 | Chemin de Bellevue, B.P. 110    |
> | Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
> | e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
> =====================================================================
> mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:48 MET