Root_v5.28.00c macos build problems

Hi All:

I have been trying to build root_v5.28 from source for a MacBookPro5. Intel Core 2 Duo chip:

[b]1. MacOSX 10.5.8 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

  1. Using the following gcc, g++ and gfortran versions:
    gcc (GCC) 4.3.0 20080125 (experimental)
    GNU Fortran (GCC) 4.3.0 20070316 (experimental
    i686-apple-darwin9-g+±4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)[/b]

I get the following errors on build and tried a few different things based on various posts I read here to no avail. Help from Anybody with any insights into this is much appreciated.

This is the error message I get at the very end of after executing…(I am unable to force the architecture selection to macosx and it wants to use macos64 and could this be the reason for the warnings below?)
[size=150]./configure --macosx
Checking for source directory … /Users/agopalan/root
Configuring for macosx64
Invalid option ‘–macosx’. Try ./configure --help[/size]

So I try the standard way…

[size=150]make distclean-xrootd
./configure
make all-xrootd
make [/size]

Root Compile Time Error Messages:
Some successful compiler messages and then…

[size=150]Compiling XrdSecProtocolsslProc.cc
g++ -c -Iinclude -DR__SSL -DOPENSSL_NO_KRB5 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -m64 -D_REENTRANT -D_GNU_SOURCE -Wall -D__macos__ -Wno-deprecated-declarations -O2 -DXrdDEBUG=0 -DHAVE_STRLCPY -DHAVE_LIBZ -I. -I… -o …/…/obj/XrdSecProtocolsslProc.o XrdSecProtocolsslProc.cc
Creating shared library …/…/lib/libXrdSecssl.so
g++ …/…/obj/grst_asn1.o …/…/obj/grst_err.o …/…/obj/grst_gacl.o …/…/obj/grst_http.o …/…/obj/grst_verifycallback.o …/…/obj/grst_x509.o …/…/obj/grst_xacml.o …/…/obj/XrdSecProtocolsslTest.o …/…/obj/XrdSecProtocolssl.o …/…/obj/XrdSecProtocolsslProc.o -undefined dynamic_lookup -multiply_defined suppress -dynamiclib -single_module -m64 -L…/…/lib -lXrdSec …/…/lib/libsslGridSite.a …/…/lib/libXrdNet.a …/…/lib/libXrdOuc.a …/…/lib/libXrdNetUtil.a …/…/lib/libXrdSys.a -lssl -lcrypto -lz -L/usr/local/lib -lxml2 -ldl -lc -o …/…/lib/libXrdSecssl.so;
ld warning: in /usr/local/lib/libxml2.dylib, file is not of required architecture
ld warning: in /usr/local/lib/libstdc++.dylib, file is not of required architecture

Creating executable …/…/bin/xrdsecssltest
g++ -m64 -D_REENTRANT -D_GNU_SOURCE -Wall -D__macos__ -Wno-deprecated -O2 …/…/obj/XrdSecProtocolsslTest.o -L…/…/lib -lXrdSecssl -L…/…/lib -lXrdSec …/…/lib/libsslGridSite.a …/…/lib/libXrdNet.a …/…/lib/libXrdOuc.a …/…/lib/libXrdNetUtil.a …/…/lib/libXrdSys.a -lssl -lcrypto -lz -L/usr/local/lib -lxml2 -ldl -lc -o …/…/bin/xrdsecssltest
ld warning: in /usr/local/lib/libxml2.dylib, file is not of required architecture
ld warning: in /usr/local/lib/libstdc++.dylib, file is not of required architecture
Undefined symbols:
“operator new(unsigned long)”, referenced from:
_main in XrdSecProtocolsslTest.o
_main in XrdSecProtocolsslTest.o
_main in XrdSecProtocolsslTest.o
_main in XrdSecProtocolsslTest.o
_main in XrdSecProtocolsslTest.o
"___gxx_personality_v0", referenced from:
EH_frame1 in XrdSecProtocolsslTest.o
"vtable for __cxxabiv1::__class_type_info", referenced from:
typeinfo for XrdOucErrInfoin XrdSecProtocolsslTest.o
typeinfo for XrdSecProtocolin XrdSecProtocolsslTest.o
"operator delete(void*)", referenced from:
_main in XrdSecProtocolsslTest.o
_main in XrdSecProtocolsslTest.o
_main in XrdSecProtocolsslTest.o
_main in XrdSecProtocolsslTest.o
_main in XrdSecProtocolsslTest.o
_main in XrdSecProtocolsslTest.o
XrdOucErrInfo::~XrdOucErrInfo()in XrdSecProtocolsslTest.o
XrdSecProtocol::~XrdSecProtocol()in XrdSecProtocolsslTest.o
"std::ios_base::Init::~Init()", referenced from:
___tcf_0 in XrdSecProtocolsslTest.o
"___cxa_pure_virtual", referenced from:
vtable for XrdSecProtocolin XrdSecProtocolsslTest.o
vtable for XrdSecProtocolin XrdSecProtocolsslTest.o
vtable for XrdSecProtocolin XrdSecProtocolsslTest.o
"std::basic_ostream<char, std::char_traits >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*)", referenced from:
_main in XrdSecProtocolsslTest.o
"std::ios_base::Init::Init()", referenced from:
__static_initialization_and_destruction_0(int, int)in XrdSecProtocolsslTest.o
"std::cerr", referenced from:
_main in XrdSecProtocolsslTest.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[5]: *** […/…/bin/xrdsecssltest] Error 1
make[4]: *** [Darwinall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdSecssl] Error 2
make[1]: *** [all] Error 2
*** Error condition reported by make (rc = 2):
make: *** [net/xrootd/src/xrootd/LastBuild.d] Error 1

<<<<<<<<<<<<<<<<[/size]

Cheers,
Philippe.