can you check if in the ./configure output you see:
Checking for pcre-config ... not found
Checking whether to build included libpcre ... yes
in this case the pcre shipped with ROOT is being compiled and used and this should work fine. If not do you have an own, incompatible, version of libpcre?
Now I have another issue… although I might need to post in the PyRoot forum.
>>> import ROOT
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Applications/root/lib/ROOT.py", line 85, in <module>
import libPyROOT as _root
ImportError: dlopen(/Applications/root/lib/libPyROOT.so, 2): Symbol not found: _FT_Done_Face
Referenced from: /Applications/root/lib/libGraf.so
Expected in: flat namespace
in /Applications/root/lib/libGraf.so
PyROOT should work out of the box, but it looks you installed a non-default, newer, version. This is for Wim to investigate. Please put it on the Python forum.
So Wim said it wasn’t a PyRoot issue. (moving it back here) He had me add --enable-builtin-freetype to the list however during the make it crashes with the following…
make all ARCH=x86_64_macosx --no-print-directory
make[5]: *** No rule to make target `XrdOucFactoryBonjour.hh', needed by `../../obj/XrdOucBonjour.o'. Stop.
make[4]: *** [Darwinall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdOuc] Error 2
make[1]: *** [all] Error 2
*** Error condition reported by make (rc = 2):
make: *** [net/xrootd/src/xrootd/LastBuild.d] Error 1
make: *** Waiting for unfinished jobs....
and got the error:
make[5]: *** No rule to make target XrdOucFactoryBonjour.hh', needed by…/…/obj/XrdOucBonjour.o’. Stop.
I’ve also tried (based on this thread)
./configure --enable-roofit --enable-builtin-pcre
./configure --enable-roofit --enable-builtin-pcre --enable-builtin-freetype
This computer has OS X 10.5.8 with gcc version 4.0.1 (Apple Inc. build 5488).
I followed the suggestions from this thread and I am not able to solve the same problem.
I did svn co root.cern.ch/svn/root/tags/v5-28-00 v5-28-00, then
./configure
make
//error
../../lib/libXrdSec.so: undefined reference to `_dl_init_static_tls'
../../lib/libXrdSec.so: undefined reference to `__libc_setup_tls'
../../lib/libXrdSec.so: undefined reference to `__syscall_error'
../../lib/libXrdSec.so: undefined reference to `_dl_sysinfo_dso'
../../lib/libXrdSec.so: undefined reference to `_dl_stack_flags'
../../lib/libXrdSec.so: undefined reference to `_dl_wait_lookup_done'
collect2: ld returned 1 exit status
make[5]: *** [../../bin/testclient] Error 1
make[4]: *** [Linuxall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdSec] Error 2
make[1]: *** [all] Error 2
make: *** [net/xrootd/src/xrootd/LastBuild.d] Error 1
$make distclean-xrootd
$ make all-xrootd
//error
../../lib/libXrdSec.so: undefined reference to `_dl_init_static_tls'
../../lib/libXrdSec.so: undefined reference to `__libc_setup_tls'
../../lib/libXrdSec.so: undefined reference to `__syscall_error'
../../lib/libXrdSec.so: undefined reference to `_dl_sysinfo_dso'
../../lib/libXrdSec.so: undefined reference to `_dl_stack_flags'
../../lib/libXrdSec.so: undefined reference to `_dl_wait_lookup_done'
collect2: ld returned 1 exit status
make[5]: *** [../../bin/testclient] Error 1
make[4]: *** [Linuxall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdSec] Error 2
make[1]: *** [all] Error 2
make: *** [net/xrootd/src/xrootd/LastBuild.d] Error 1
Try to add “–disable-xrootd” in the end of the “./configure” line.
See also notes about “Xrootd” in the bottom of the “ROOT Build Prerequisites” web page and the “Installing xrootd” web page.
g++ -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -I. -I/users/root_v5-34-00-patches/cint/cint/inc -o core/thread/src/G__Thread.o -c core/thread/src/G__Thread.cxx
g++ -shared -Wl,-soname,libThread.so -m32 -O2 -Wl,--no-undefined -Wl,--as-needed -o lib/libThread.so core/thread/src/TCondition.o core/thread/src/TConditionImp.o core/thread/src/TMutex.o core/thread/src/TMutexImp.o core/thread/src/TRWLock.o core/thread/src/TSemaphore.o core/thread/src/TThread.o core/thread/src/TThreadFactory.o core/thread/src/TThreadImp.o core/thread/src/TPosixCondition.o core/thread/src/TPosixMutex.o core/thread/src/TPosixThread.o core/thread/src/TPosixThreadFactory.o core/thread/src/G__Thread.o -pthread -Llib -lCore -lCint -ldl
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(pthread_create.o): In function `pthread_create':
(.text+0x1073): undefined reference to `_dl_stack_flags'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(pthread_create.o): In function `pthread_create':
(.text+0x14f8): undefined reference to `_dl_stack_flags'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(ptw-pause.o): In function `__pause_nocancel':
(.text+0x18): undefined reference to `__syscall_error'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(ptw-pause.o): In function `__pause_nocancel':
(.text+0x3b): undefined reference to `__syscall_error'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(init.o): In function `__pthread_initialize_minimal':
(.text+0x19c): undefined reference to `__libc_setup_tls'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(init.o): In function `__pthread_initialize_minimal':
(.text+0x3ba): undefined reference to `_dl_init_static_tls'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(init.o): In function `__pthread_initialize_minimal':
(.text+0x3df): undefined reference to `_dl_wait_lookup_done'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(ptw-read.o): In function `__read_nocancel':
(.text+0x26): undefined reference to `__syscall_error'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(ptw-read.o): In function `__read_nocancel':
(.text+0x56): undefined reference to `__syscall_error'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(ptw-open.o): In function `__open_nocancel':
(.text+0x26): undefined reference to `__syscall_error'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(ptw-open.o): In function `__open_nocancel':
(.text+0x56): undefined reference to `__syscall_error'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(sigaction.o): In function `__libc_sigaction':
(.text+0x60): undefined reference to `_dl_sysinfo_dso'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libpthread.a(sigaction.o): In function `sigaction':
(.text+0x19a): undefined reference to `_dl_sysinfo_dso'
collect2: ld returned 1 exit status
make: *** [lib/libThread.so] Error 1
It seems to me that the problem appears to be due to trying to statically link “libpthread.a”.
For the moment I have no idea why it didn’t choose the shared version “libpthread.so”.
Maybe Philippe can say something about it.