Hi Christian, sorry for the delay. There is something wrong with the way you link the bundle. Just use the same what we use in $ROOTSYS/test/Makefile.arch. With this diff to your Makefile4CSMathUtils the loading of the shared library works fine: --- /Users/rdm/a/mathutils/Makefile4CSMathUtils Sun Aug 8 18:52:52 2004 +++ Makefile4CSMathUtils Tue Aug 17 12:57:11 2004 @@ -44,7 +44,7 @@ CXX = c++ CXXFLAGS = -O -pipe -Wall LD = c++ -LDFLAGS = -O -Xlinker -bind_at_load -flat_namespace +LDFLAGS = -O -bind_at_load -flat_namespace # The SOFLAGS will be used to create the .dylib; the .so will # be created separately DllSuf = dylib @@ -76,7 +76,7 @@ ifeq ($(ARCH),macosx) # We need to make both the .dylib and the .so $(LD) $(SOFLAGS) $^ $(OutPutOpt) $@ - $(LD) -bundle -undefined suppress -Wl,-x $(LDFLAGS) $^ \ + $(LD) -bundle -undefined suppress $(LDFLAGS) $^ \ $(OutPutOpt) $(subst .$(DllSuf),.so,$@) else $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ Note, on 10.3 you can replace "suppress" with "dynamic_lookup". Cheers, Fons. On Mon, 2004-08-16 at 21:07, cstrato wrote: > Dear MacRooters > > Sorrowly, until now I did not get any response to my problem, see: > http://root.cern.ch/phpBB2/viewtopic.php?t=1013&sid=9bc5bb83afcd5e62421081c07d19b3eb > > Since the problem still remains, I have the following questions: > 1, Can my example libary libCSMathUtils.so be loaded to root on > your Mac, or do you see the same error message as I do? > > 2, Does anybody know, what the error message means, and which > program is responsible for the display of this error message? > > 3, What could be the reason for this error message? > > Best regards > Christian > _._._._._._._._._._._._._._._._ > C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a > V.i.e.n.n.a A.u.s.t.r.i.a > _._._._._._._._._._._._._._._._ -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://www.rademakers.org/fons/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET