Hello,
I started having more luck when attempting to recompile root
under Solaris 2.7 with gcc 2.8.1. Below is modified Makefile.solarisegcs
I have been using. I also modified files UNIX_UnixSystem.cxx and
ROOTX_rootx.cxx following Jonathan Hays' instructions
(http://root.cern.ch/root/roottalk/roottalk98/2479.html).
It seems adding -fno-rtti -fno-exceptions to CXXFLAGS helped
to resolve my problem when creating libraries when SunOS linker
was failing with a message
Text relocation remains referenced
against symbol offset in file
__uflow 0xb4 /usr/local/lib/libstdc++.a(iogetline.o)
__uflow 0x28 /usr/local/lib/libstdc++.a(iogetc.o)
close__7filebuf 0x5b0 /usr/local/lib/libstdc++.a(fstream.o)
........................
Right now all shared object libraries seemed to created but the gmake
failed with the message
ld: Software Generation Utilities - Solaris/ELF (3.0)
Undefined first referenced
symbol in file
sincos /data1/cern/root/lib/libBase.so
ld: fatal: Symbol referencing errors. No output written to /data1/cern/root/bin/root.exe
gmake: *** [/data1/cern/root/bin/root.exe] Error 1
when trying to build the main root executable
g++ -O -g -v -o /data1/cern/root/bin/root.exe MAIN_rmain.o \
-L/data1/cern/root/lib -lNew -lBase -lCint -lClib -lCont -lFunc -lGraf -lGraf3d -lHist -lHtml -lMatrix -lMeta -lMinuit -lNet -lPhysics -lPostscript -lProof -lTree -lUnix -lZip -lGpad -lGui -lGX11 -lX3d -lXpm -lRint -L/usr/openwin/lib -lX11 -lm -lgen -ldl -lsocket
Thanks for any help
Michal Lijowski
-----------------------------------------------------------------------------
# Makefile to build ROOT for SOLARIS with egcs1.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
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
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET