I’m trying to build root from source on my mac since the binaries found on the website are too recent for my OS (10.5.,
but I’m having some issues apparently related to X11. I don’t really understand where does this come from since X11 is correctly installed on my computer.
I’m using version root_v5.32.00.source .
Here are the last lines of the compilation, where the error occurs (I used ./configure macosx --prefix=):
g++ -dynamiclib -single_module -Wl,-dead_strip_dylibs -install_name /EPFL//lib/root/libGLEW.so -O2 -m32 -mmacosx-version-min=10.5 -o lib/libGLEW.so graf3d/glew/src/glew.o -ldl -L/usr/X11/lib -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices -lfreetype -lz -L/usr/X11R6/lib -lXpm -L/usr/X11R6/lib -lXext -lX11 -L/usr/X11R6/lib -lGLU -lGL -L/usr/X11R6/lib -lX11 -lm -Llib -lCore -lCint
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
collect2: ld returned 1 exit statuscollect2:
ld returned 1 exit status
make: *** [lib/libGLEW.so] Error 1
make: *** Waiting for unfinished jobs…
make: *** [lib/libFTGL.so] Error 1
Thanks for your help, I am not really used to work with the shell so maybe the solution is really easy!
I am having problems with root when I try to compile v5.32.01 with Mac OS X 10.5.8.
I obtained the same error of this post so I have followed these instruccions but I have get a new error:
Undefined symbols:
“glTexSubImage2D", referenced from:
FTTextureGlyph::FTTextureGlyph(FT_GlyphSlotRec, int, int, int, int, int)in FTTextureGlyph.o
"glPopClientAttrib", referenced from:
FTGLBitmapFont::PostRender() in FTGLBitmapFont.o
FTGLPixmapFont::PostRender() in FTGLPixmapFont.o
FTTextureGlyph::FTTextureGlyph(FT_GlyphSlotRec, int, int, int, int, int)in FTTextureGlyph.o
”_glGenTextures", referenced from:
FTGLTextureFont::MakeGlyph(unsigned int)in FTGLTextureFont.o
FTGLTextureFont::MakeGlyph(unsigned int)in FTGLTextureFont.o
…
I have tried: ./configure macosx --enable-builtin-ftgl
but the result has been the same:
ndefined symbols:
“glTexSubImage2D", referenced from:
FTTextureGlyph::FTTextureGlyph(FT_GlyphSlotRec*, int, int, int, int, int)in FTTextureGlyph.o
”_glPopClientAttrib", referenced from:
FTGLBitmapFont::PostRender() in FTGLBitmapFont.o
FTGLPixmapFont::PostRender() in FTGLPixmapFont.o
(…)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [lib/libFTGL.so] Error 1
Should I try the latest subversion of root (v5.32.2)?
Cheers, regina
try the following, in ./configure comment out the following lines and run ./configure again:
if test ! "x$macosx105" = "x" && test "x$macosx106" = "x" ; then
# Mac OS X 10.5 problem
opengllib="-dylib_file /usr/X11R6/lib/libGL.dylib:/usr/X11R6/lib/libGL.dylib"
fi
ok, so you need the 3 lines you did comment out, so put them back. Next check if you have the latest Xcode installed for you 10.5.8 machine. What does gcc -v say? Try installing Xquartz as alternative X11/OpenGL environment. See xquartz.macosforge.org/trac/wiki/Releases and install version 2.6.2.
I have tried to install Xquartz but it’s only available for OS-X 10.6.3 or later and I have Mac OS X 10.5.8 (9L31a).
The newer and older Xquartz versions are only for 10.6.X so they don’t work in my computer. I updated my X11 and I’m using the X11 2.6.3 but the error is the same.
This is the information that I have obtained with gcc -v :
sing built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)
Thank you very much for your help! Now I can compile the latest root version.
Nevertheless I have seen that my programs that ran fine in 5.30 don’t work now:
Error: no such template @@ ex autload entry remove by typedef declaration @@map<string,int>
Should I put other ticket for this problem?
Thank you again!
Regina
If you have a #pragma link statement for map<string,int> in your Linkdef.h file (or a selection rule in your genreflex selection XML file) then please remove it, rebuild your software and try again. The dictionary for that class is already provided by CINT and must not be duplicated.
If your program still fails afterwards then please open a Savannah ticket and tell us how we can reproduce the problem. If that’s too difficult I will need to debug your program.