Re: [ROOT] Error compiling ROOT for MacOSX - 2.problem

From: Remi Mommsen (remi.mommsen@gmx.net)
Date: Mon Feb 24 2003 - 04:32:37 MET


Hi,

On Sunday, February 23, 2003, at 03:13  PM, cstrato wrote:

> Dear MacRooters
>
> After downloading dlcompat-dev I could continue the compilation, but 
> at the end I get:
> ---------------
> g++ -O -Xlinker -bind_at_load -flat_namespace -o bin/root.exe 
> main/src/rmain.o  \
>           -Llib -lCore -lCint -lHist -lGraf -lGraf3d -lTree -lMatrix 
> -lRint -lm  -L/sw/lib -ldl
> ld: warning dynamic shared library: lib/libCint.dylib not made a weak 
> library in output with MACOSX_DEPLOYMENT_TARGET environment variable 
> set to: 10.1
> ld: warning dynamic shared library: /sw/lib/libdl.dylib not made a 
> weak library in output with MACOSX_DEPLOYMENT_TARGET environment 
> variable set to: 10.1
> etc
> etc
> g++ -O -Xlinker -bind_at_load -flat_namespace -o bin/hadd 
> main/src/hadd.o -Llib -lCore -lCint -lHist -lGraf -lGraf3d -lTree 
> -lMatrix -lm  -L/sw/lib -ldl
> ld: warning dynamic shared library: lib/libCint.dylib not made a weak 
> library in output with MACOSX_DEPLOYMENT_TARGET environment variable 
> set to: 10.1
> ld: warning dynamic shared library: /sw/lib/libdl.dylib not made a 
> weak library in output with MACOSX_DEPLOYMENT_TARGET environment 
> variable set to: 10.1
> ------------------
>
> What do these messages mean?

This kind of warning can be safely ignored. "It essentially has to do 
with whether missing symbols at runtime is considered a fatal error on 
startup or not, for applications that use weak references" [1]. Root 
does not use weak references. The environment MACOSX_DEPLOYMENT_TARGET 
is available since Mac OS 10.2.0, but only since the Dec 2002 Developer 
tools the linker warns about it.

[1] http://fink.sourceforge.net/faq/comp-general.php#weak_lib


> When I try to start root, I get: Command not found.
>
> Could it be that my environment variables are no longer correct?
> The following setting did work until now:
> setenv ROOTSYS /Users/rabbitus/ROOT/root
> setenv DYLD_LIBRARY_PATH $ROOTSYS/lib
> setenv PATH $ROOTSYS/bin:$PATH

These environments look reasonable to me. I can think of a few problems:

- Have you made a make install and did it went to the right directory, 
i.e. $ROOTSYS ?
- Have you made a rehash ?
- Is it root or root.exe which is not found?
- What gives which root or which root.exe?

Cheers,
		Remi

---------------------------------------------------------------------
The Americans will always do the right thing...
after they've exhausted all the alternatives.     (Winston Churchill)

*********************************************************************
Remigius K. Mommsen                 e-mail: mommsen@slac.stanford.edu
University of California, Irvine       URL:    http://cern.ch/mommsen
c/o SLAC                             voice:        ++1 (650) 926-3595
2575 Sand Hill Road #35             mobile:        ++1 (650) 387-1402
Menlo Park, CA 94025, US               fax:        ++1 (650) 926-8522
*********************************************************************



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET