Root 5.17.04@kubuntu 7.10 "shape.h" no such file

Hi,

I cannot compile the source of root root_v5.17.04.source.tar.gz
on kubuntu 7.10.

I get the mesage below. Can it be fixed?

Cheers,

Ytsen.

Generating dictionary guihtml/src/G__GuiHtml.cxx…
utils/src/rootcint_tmp -cint -f guihtml/src/G__GuiHtml.cxx -c guihtml/inc/TGHtml.h guihtml/inc/TGHtmlTokens.h guihtml/inc/TGHtmlUri.h guihtml/inc/LinkDef.h
bin/rmkdepend -R -fguihtml/src/G__GuiHtml.d -Y -w 1000 –
-pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -D__cplusplus -Icint/lib/prec_stl
-Icint/stl – guihtml/src/G__GuiHtml.cxx
g++ -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -I. -o guihtml/src/G__GuiHtml.o -c guihtml/src/G__GuiHtml.cxx
g++ -shared -Wl,-soname,libGuiHtml.so -m32 -O2 -o lib/libGuiHtml.so guihtml/src/TGHtml.o guihtml/src/TGHtmlDraw.o guihtml/src/TGHtmlElement.o guihtml/src/TGHtmlForm.o guihtml/src/TGHtmlImage.o guihtml/src/TGHtmlIndex.o guihtml/src/TGHtmlLayout.o guihtml/src/TGHtmlParse.o guihtml/src/TGHtmlSizer.o guihtml/src/TGHtmlTable.o guihtml/src/TGHtmlTokenMap.o guihtml/src/TGHtmlUri.o guihtml/src/G__GuiHtml.o
==> lib/libGuiHtml.so done
bin/rmkdepend -R -fx11/src/GX11Gui.d -Y -w 1000 – -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -D__cplusplus – x11/src/GX11Gui.cxx
g++ -O2 -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -DUSEPCH -include precompile.h -o x11/src/GX11Gui.o -c x11/src/GX11Gui.cxx
x11/src/GX11Gui.cxx:41:34: error: X11/extensions/shape.h: No such file or directory
x11/src/GX11Gui.cxx: In member function ‘virtual void TGX11::ShapeCombineMask(Window_t, Int_t, Int_t, Pixmap_t)’:
x11/src/GX11Gui.cxx:2642: error: ‘ShapeBounding’ was not declared in this scope
x11/src/GX11Gui.cxx:2643: error: ‘ShapeSet’ was not declared in this scope
x11/src/GX11Gui.cxx:2643: error: ‘XShapeCombineMask’ was not declared in this scope
make: *** [x11/src/GX11Gui.o] Error 1
rm utils/src/rootcint_tmp.cxx utils/src/RStl_tmp.cxx


It’s this line:

#include “TClassTable.h”
#include “KeySymbols.h”
#include “TEnv.h”

#include <X11/extensions/shape.h>

//---- MWM Hints stuff

struct MWMHintsProperty_t {
Handle_t fFlags;


How do I get this file properly?

Many thanks in advance.

was in the libext-dev package … let’s see if all goes right now.

Is this a serious problem?:

ytsen@paranoia:~/root$ root


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 5.17/05 16 October 2007 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      [root.cern.ch](http://root.cern.ch)            *
    
  •                                     *
    

ROOT 5.17/05 (trunk@20369, Nov 06 2007, 14:19:00 on linux)

CINT/ROOT C/C++ Interpreter version 5.16.27, Oct 25, 2007
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] TBrowser t;
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libMatrix.so = 51704, ROOT = 51705
Error in TCint::AutoLoad: failure loading dependent library libHist.so for class TPad
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libRIO.so = 51704, ROOT = 51705
Error in TCint::AutoLoad: failure loading dependent library libGraf.so for class TPad
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libHist.so = 51704, ROOT = 51705
Error in TCint::AutoLoad: failure loading library libGpad.so for class TPad
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libGraf.so = 51704, ROOT = 51705
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libGX11.so = 51704, ROOT = 51705
Error in TCint::AutoLoad: failure loading library libGX11.so for class TGX11
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libGpad.so = 51704, ROOT = 51705
Error in TCint::AutoLoad: failure loading dependent library libGpad.so for class TRootGuiFactory
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libGui.so = 51704, ROOT = 51705
Error in TCint::AutoLoad: failure loading library libGui.so for class TRootGuiFactory
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libGX11TTF.so = 51704, ROOT = 51705
Error in TCint::AutoLoad: failure loading library libGX11TTF.so for class TGX11TTF
Error in TPluginHandler::SetupCallEnv: class TRootBrowserLite not found in plugin Gui
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libASImage.so = 51704, ROOT = 51705
Error in TCint::AutoLoad: failure loading library libASImage.so for class TASImage

How can I fix this, my root is broken now :frowning:

root [0] TH1F * h = new TH1F(“h1”,“blaat”,10,0,1)
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libMatrix.so = 51704, ROOT = 51705
Error in TCint::AutoLoadCallback: failure loading dependent library libMatrix.so for class TH1F
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libHist.so = 51704, ROOT = 51705
Error in TCint::AutoLoadCallback: failure loading library libHist.so for class TH1F
root [1] h->Print()
TH1.Print Name = h1, Entries= 0, Total sum= 0
root [2] h->Fill(.2)
(Int_t)(3)
root [3] h->Fill(.5)
(Int_t)(6)
root [4] h->Draw()
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libRIO.so = 51704, ROOT = 51705
Error in TCint::AutoLoadCallback: failure loading dependent library libGraf.so for class TCanvas
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libGraf.so = 51704, ROOT = 51705
Error in TCint::AutoLoadCallback: failure loading library libGpad.so for class TCanvas
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libGpad.so = 51704, ROOT = 51705
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libGX11.so = 51704, ROOT = 51705
Error in TCint::AutoLoad: failure loading library libGX11.so for class TGX11
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libGui.so = 51704, ROOT = 51705
Error in TCint::AutoLoad: failure loading library libGui.so for class TRootGuiFactory
Error in TUnixSystem::Load: version mismatch, /usr/local/lib/root/libGX11TTF.so = 51704, ROOT = 51705
Error in TCint::AutoLoad: failure loading library libGX11TTF.so for class TGX11TTF
Error in TCint::AutoLoadCallback: failure loading library libGpad.so for class TCanvas
Error: Function MakeDefCanvas() is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***

*** Break *** segmentation violation
Using host libthread_db library “/lib/tls/i686/cmov/libthread_db.so.1”.
Attaching to program: /proc/32267/exe, process 32267
[Thread debugging using libthread_db enabled]
[New Thread -1225664832 (LWP 32267)]
0xffffe410 in __kernel_vsyscall ()
error detected on stdin
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/32267/exe, process 32267
Root >

Hi,

Apparently, some libraries have not been rebuilt after the last update…
Try “make distclean” then “make”…

Cheers, Bertrand.

I had libroot 5.17.05.3 installed via the package manager. Maybe this was a bad idea?

I tried to remake root, each time after a “.configure” and " make distclean", and every time after about half an hour I found my laptop shut down!? (Which does not happen if I do not make root.)

Is this a known thing?

Hi Ytsen,

First you say:

And then:

You should choose which one you want to use, and CLEAN-UP the old version first, to not mix different versions.
This kind of error message:

as it says, is typically a mix between versions (or an incomplete rebuild after a svn update)

Not as far as I know…

Cheers,
Bertrand.[/u]

I tried both (and also the mix).

But my problem is now that my laptop shuts down after +/- 20 minutes of compilation. This happened now 6 times in a row.

I removed everything now.

Yes, I know, weak weak, I gave up.

I don’t need it that much, spent way too much time on it already.

I’ll wait untill root is nicely installable via synaptic or I might give it a shot under windows when I feel like.

Going to relaxt now.

Cheers,

Ytsen.