Installation probelms on Mac

Hi ;
I am trying to install root on

System Version: Mac OS X 10.3.7 (7T62)
Kernel Version: Darwin 7.7.2

I have installed all development tools + X11. The make process is breaking at following point

ld: warning can’t open dynamic library: /lib/libfreetype.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:

( The detailed error message is attached as follows; so is the output of the configure step)

==========MAKE ERROR ===========================
==> lib/libThread.dylib done
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/ClassMethodHolder.o -c pyroot/src/ClassMethodHolder.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/ConstructorDispatcher.o -c pyroot/src/ConstructorDispatcher.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/MemoryRegulator.o -c pyroot/src/MemoryRegulator.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/MethodDispatcher.o -c pyroot/src/MethodDispatcher.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/MethodHolder.o -c pyroot/src/MethodHolder.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/ObjectHolder.o -c pyroot/src/ObjectHolder.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/PropertyHolder.o -c pyroot/src/PropertyHolder.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/PyBufferFactory.o -c pyroot/src/PyBufferFactory.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/Pythonize.o -c pyroot/src/Pythonize.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/RootModule.o -c pyroot/src/RootModule.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/RootWrapper.o -c pyroot/src/RootWrapper.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/TPyClassGenerator.o -c pyroot/src/TPyClassGenerator.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/TPyReturn.o -c pyroot/src/TPyReturn.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/TPython.o -c pyroot/src/TPython.cxx
g++ -O2 -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -o pyroot/src/Utility.o -c pyroot/src/Utility.cxx
g++ -pipe -W -Wall -Wno-long-double -Woverloaded-virtual -fsigned-char -fno-common -I/usr/X11R6/include -Iinclude -I/sw/include -D_REENTRANT -Wno-long-double -I. -o pyroot/src/G__PyROOT.o -c pyroot/src/G__PyROOT.cxx

python -c 'import py_compile; py_compile.compile( “lib/ROOT.py” )'
python -O -c 'import py_compile; py_compile.compile( “lib/ROOT.py” )'
g++ -O2 -dynamiclib -single_module -undefined dynamic_lookup -install_name /lib/libPyROOT.dylib -o lib/libPyROOT.dylib pyroot/src/ClassMethodHolder.o pyroot/src/ConstructorDispatcher.o pyroot/src/MemoryRegulator.o pyroot/src/MethodDispatcher.o pyroot/src/MethodHolder.o pyroot/src/ObjectHolder.o pyroot/src/PropertyHolder.o pyroot/src/PyBufferFactory.o pyroot/src/Pythonize.o pyroot/src/RootModule.o pyroot/src/RootWrapper.o pyroot/src/TPyClassGenerator.o pyroot/src/TPyReturn.o pyroot/src/TPython.o pyroot/src/Utility.o pyroot/src/G__PyROOT.o -L/sw/lib -ldl -Wl,-u,_G__cpp_setupG__Hist -Wl,-u,_G__cpp_setupG__Graf1 -Wl,-u,_G__cpp_setupG__G3D -Wl,-u,_G__cpp_setupG__GPad -Wl,-u,_G__cpp_setupG__Tree -Wl,-u,_G__cpp_setupG__Matrix -Llib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix /System/Library/Frameworks/Python.framework/Versions/2.3/Python
ld: warning can’t open dynamic library: /lib/libfreetype.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:
_FT_Done_Face referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Done_FreeType referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Done_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Get_Char_Index referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Get_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Get_Kerning referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Glyph_Get_CBox referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Glyph_Transform referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Init_FreeType referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Library_Version referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Load_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_New_Face referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Set_Char_Size referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Set_Charmap referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Vector_Transform referenced from libGraf expected to be defined in /lib/libfreetype.dylib
/usr/bin/libtool: internal link edit command failed
g++ -O -bundle -undefined dynamic_lookup -o lib/libPyROOT.so pyroot/src/ClassMethodHolder.o pyroot/src/ConstructorDispatcher.o pyroot/src/MemoryRegulator.o pyroot/src/MethodDispatcher.o pyroot/src/MethodHolder.o pyroot/src/ObjectHolder.o pyroot/src/PropertyHolder.o pyroot/src/PyBufferFactory.o pyroot/src/Pythonize.o pyroot/src/RootModule.o pyroot/src/RootWrapper.o pyroot/src/TPyClassGenerator.o pyroot/src/TPyReturn.o pyroot/src/TPython.o pyroot/src/Utility.o pyroot/src/G__PyROOT.o -L/sw/lib -ldl -Wl,-u,_G__cpp_setupG__Hist -Wl,-u,_G__cpp_setupG__Graf1 -Wl,-u,_G__cpp_setupG__G3D -Wl,-u,_G__cpp_setupG__GPad -Wl,-u,_G__cpp_setupG__Tree -Wl,-u,_G__cpp_setupG__Matrix -Llib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix /System/Library/Frameworks/Python.framework/Versions/2.3/Python
ld: warning can’t open dynamic library: /lib/libfreetype.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:
_FT_Done_Face referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Done_FreeType referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Done_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Get_Char_Index referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Get_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Get_Kerning referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Glyph_Get_CBox referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Glyph_Transform referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Init_FreeType referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Library_Version referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Load_Glyph referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_New_Face referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Set_Char_Size referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Set_Charmap referenced from libGraf expected to be defined in /lib/libfreetype.dylib
_FT_Vector_Transform referenced from libGraf expected to be defined in /lib/libfreetype.dylib
make: *** [lib/libPyROOT.dylib] Error 1

==========END MAKE ERROR ========================

========CONFIGURE OUTPUT =========================
tsf4-039:~/root asifjan$ rm config.out
tsf4-039:~/root asifjan$ ./configure
Configuring for macosx
Checking for libX11 … /usr/X11R6/lib
Checking for X11/Xlib.h … /usr/include
Checking for libXpm … /usr/X11R6/lib
Checking for libpthread … /usr/lib
Checking for GL/gl.h … /usr/X11R6/include
Checking for libGL, or libMesaGL … /usr/X11R6/lib
Checking for libGLU, or libMesaGLU … /usr/X11R6/lib
Checking for mysql.h … no
Checking for libmysqlclient, or mysqlclient … no
Checking for libpq-fe.h … no
Checking for libpq … no
Checking for sql.h … no
Checking for libsqlod … no
Checking for rfio_api.h … no
Checking for libshift, shiftmd, or shift … no
Checking for libpacklib, packmd, or packlib … no
Checking for libkernlib, kernmd, or kernlib … no
Checking for libPythia6 … no
Checking for libVenus … no
Checking for dcap.h … no
Checking for libdcap … no
Checking for chirp_client.h … no
Checking for libchirp_client … no
Checking for AliEnAPI++.h … no
Checking for libAliEnAPI++ … no
Checking for jpeglib.h … no
Checking for png.h … no
Checking for tiffio.h … no
Checking for gif_lib.h … no
Checking for libjpeg … no
Checking for libtiff … no
Checking for libungif … no
Checking for libz … /usr/lib
Checking for libpng … no
Checking for ldap.h … /usr/include
Checking for libldap … /usr/lib
Checking for liblber … /usr/lib
Checking for Python.h … /System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
Checking for libpython2.4, libpython2.3, libpython2.2, python24, python23, or Python … /System/Library/Frameworks/Python.framework/Versions/2.3
Checking for libxml/tree.h … /usr/include/libxml2
Checking for libxml2_a, or libxml2 … /usr/lib
Checking whether to build xrootd … yes
Checking for globusdir … no
Checking for GLOBUS_LOCATION … no
Checking for libssl … /usr/lib
Checking for libcrypto … /usr/lib
Checking for openssl/bio.h … /usr/include
Checking for openssl/blowfish.h … /usr/include
Checking for openssl/err.h … /usr/include
Checking for openssl/pem.h … /usr/include
Checking for openssl/rand.h … /usr/include
Checking for openssl/rsa.h … /usr/include
Checking for t_server.h … no
Checking for libsrp … no
Checking for libgmp … no
Checking for libmisc … no
Checking for pwauth.h … no
Checking for krb5.h … /usr/include
Checking for libk5crypto … /usr/lib
Checking whether we’re using MIT Kerberos … yes
Checking for libkrb5 … /usr/lib
Checking for kinit … /usr/bin/kinit
Checking for libcom_err … /usr/lib
Checking for shadow passwords … no
Checking whether to build libTable … no
Writing config/Makefile.config … done
Writing include/config.h … done
Writing bin/root-config … done
Writing etc/system.rootrc … done
Writing etc/system.rootauthrc … done
Writing etc/system.rootdaemonrc … done
Writing etc/root.mimes … done
Writing bin/memprobe … done
Writing build/misc/root-help.el … done
Writing config.status … done

Enabled support for asimage, exceptions, krb5, ldap, opengl, python, shared, ssl, thread, xml, xrootd.

To build ROOT type:

make
============END CONFIGURE ========================

Thanks
Asif

Hi Asif,

for now, this might help (see Fons’ reply):

root.cern.ch/phpBB2/viewtopic.php?t=882

I’ll see whether I can reproduce the problems tomorrow (I don’t have my Mac
handy right now).

HTH,
Wim

Asif,

try as I may, I can’t reproduce the problem (with HEAD CVS). I do see in
my list at the end of configure “builtin_freetype”. Which version of ROOT
are you installing?

Best regards,
Wim

Hi Wim

I was using the source distribution 4.03/04. Last night I tried the installation using the CVS version and everything worked (with and without setting up the DYLD_LIBRARY_PATH ).

Thanks for your help though.

Asif