Hello, Finally, I was able to recompile root under Solaris 2.7 with gcc 2.8.1. Below is my Makefile. Beside changes to UNIX_UnixSystem.cxx and ROOT_rootx.cxx files described by Jonathan Hays (http://root.cern.ch/root/roottalk/roottalk98/2479.html) I commented out lines 54 - 58 and 61 in file BASE_Math.cxx. This version of root does not work under Solaris 2.5 as opposed to the root binary distribution which works on both Solaris 2.5 and 2.7. # Makefile to build ROOT for SOLARIS 2.7 with gcc 2.8.1 PLATFORM = solaris # OPT = -g OPT = -O -g -v NOOPT = # Compiler: CXX = g++ CC = gcc CXXFLAGS = -fPIC -I/usr/openwin/include -fno-rtti -fno-exceptions CFLAGS = -fPIC -I/usr/openwin/include CINTCXXFLAGS = -fPIC -fno-rtti -fno-exceptions \ -DG__REGEXP1 -DG__UNIX -DG__SHAREDLIB \ -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO CINTCFLAGS = -fPIC -DG__REGEXP1 -DG__UNIX -DG__SHAREDLIB \ -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO # Linker: LD = g++ LDFLAGS = $(OPT) SOFLAGS = -G SOEXT = so # System libraries: SYSLIBS = -lm -ldl -lgen -lsocket -lnsl SYSXLIBS = -L/usr/openwin/lib -lX11 -lm -lgen -ldl -lsocket XLIBS = $(ROOTSYS)/lib/libXpm.a -L/usr/openwin/lib -lX11 CILIBS = -lm -ltermcap -ldl -L/usr/ccs/lib -lgen ##### MACROS and TARGETS ##### include Make-macros ##### DEPENDENCIES ##### include Make-depend When I attempt to compile test programs in root/test directory I get following error messages g++ -O -fPIC -I//data1/cern/root/include -c Event.cxx g++ -O -fPIC -I//data1/cern/root/include -c EventDict.cxx EventDict.cxx: In function `int G__EventHeader_EventHeader_0_0(struct G__value *, char *, struct G__param *, int)': EventDict.cxx:317: Internal compiler error. EventDict.cxx:317: Please submit a full bug report to `bug-g++@prep.ai.mit.edu'. gmake: [EventDict.o] Error 1 (ignored) g++ -O -fPIC -I//data1/cern/root/include -c MainEvent.cxx g++ -G -g Event.o EventDict.o -o libEvent.so g++: EventDict.o: No such file or directory gmake: [Event] Error 1 (ignored) g++ -g MainEvent.o Event.o EventDict.o -lBase -lCint -lClib -lCont -lFunc -lGraf -lGraf3d -lHist -lHtml -lMatrix -lMeta -lMinuit -lNet -lPhysics -lPostscript -lProof -lRint -lTree -lUnix -lZip -o Event g++: EventDict.o: No such file or directory gmake: [Event] Error 1 (ignored) Event done g++ -O -fPIC -I//data1/cern/root/include -c hworld.cxx g++ -g hworld.o -lGpad -lGui -lGX11 -lX3d -L/usr/openwin/lib -lXpm -lX11 -lgen -ldl -lnsl -lm -lsocket -o hworld Undefined first referenced symbol in file __6TGraphiPfT2 /data1/cern/root/lib/libGpad.so SetX1__4TBoxf /data1/cern/root/lib/libGpad.so GetterMethod__11TDataMember /data1/cern/root/lib/libGui.so GetName__C6TNamed /data1/cern/root/lib/libGpad.so SetFillColor__8TAttFills /data1/cern/root/lib/libGpad.so SetTextFont__8TAttTexts /data1/cern/root/lib/libGpad.so Thanks for any hints, Michal Lijowski
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET