[R-SIG-Mac] RE: [Rpy] Rpy-0.3.4 on OS X (10.3.3)

Warnes, Gregory R gregory_r_warnes at groton.pfizer.com
Tue Feb 17 20:11:16 MET 2004


Ok, I think I've fixed the undefined symbols problem.   When I copied the
definitions out of the .h files into the appropriate .c files, I forgot to
remove the 'extern' prefix.  Oops. 

Can you guys try the CVS version again?

-Greg


> -----Original Message-----
> From: Jan de Leeuw [mailto:deleeuw at stat.ucla.edu]
> Sent: Tuesday, February 17, 2004 12:17 PM
> To: Warnes, Gregory R
> Cc: 'Christopher Fonnesbeck'; rpy-list at lists.sourceforge.net; 
> R-SIG-Mac
> Subject: Re: [Rpy] Rpy-0.3.4 on OS X (10.3.3)
> 
> 
> Now compiles cleanly (no more multiply defined symbols) but the
> final link goes astray. It says
> 
> gcc -Wl,-F. -Wl,-F. -bundle -framework Python  
> build/temp.darwin-7.2.1-Power_Macintosh-2.3/src/rpymodule.o  
> build/temp.darwin-7.2.1-Power_Macintosh-2.3/src/R_eval.o  
> build/temp.darwin-7.2.1-Power_Macintosh-2.3/src/io.o  
> -L/Library/Frameworks/R.framework/Versions/1.9.0/Resources/Fra
> meworks  
> -L/Library/Frameworks/R.framework/Versions/1.9.0/Resources/bin
>  -lR -o  
> build/lib.darwin-7.2.1-Power_Macintosh-2.3/_rpy.so
> 
> and there is no such thing as   
> /Library/Frameworks/R.framework/Versions/1.9.0/Resources/Frameworks  
> (fortunately).
> 
> Also
> 
> ld: Undefined symbols:
> _R_interact
> _my_interp
> _python_sigint
> _rpy
> _rpy_dict
> 
> 
> On Feb 17, 2004, at 7:44, Warnes, Gregory R wrote:
> 
> > Wonderful Jan!
> >
> > I've been working with Christopher Fonnesbeck 
> [chris at fonnesbeck.org]  
> > to get
> > rpy to build cleanly on OS X, so your information is timely.
> >
> > I had already checked into CVS changes to make the infringing  
> > definitions in
> > the header files 'extern' with a single definition within 
> one .C file.  
> >  I've
> > now added the linker flags you suggested.
> >
> > If you have a moment, could you check to see if the CVS version  
> > compiles
> > cleanly now?
> >
> > To get it via anonymous CVS do:
> >
> > cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/rpy login
> > cvs -z3 -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/rpy rpy
> >
> > Thanks!
> >
> > -Greg
> >
> >
> >> -----Original Message-----
> >> From: Jan de Leeuw [mailto:deleeuw at stat.ucla.edu]
> >> Sent: Tuesday, February 17, 2004 2:56 AM
> >> To: rpy-list at lists.sourceforge.net
> >> Cc: R-SIG-Mac
> >> Subject: [Rpy] Rpy-0.3.4 on OS X (10.3.3)
> >>
> >>
> >> Compiles fine, with the usual caveats. gcc on OS X does 
> not know the
> >> -shared flag, so that generates warnings. And then there are many
> >> multiple defined symbols, which prevent the final link of 
> rpy.so. Most
> >> of them occur in different Rpy files, but setenv is both 
> in setenv.so
> >> and in libSystem.dylib. The correct solution is to turn some
> >> definitions
> >> into mere declarations by using extern, but the standard hack is to
> >> add -Xlinker -m to the link. This turns all multiple
> >> definitions errors
> >> into warnings, and it uses the first definition found by ld.
> >
> >
> >
> > LEGAL NOTICE
> > Unless expressly stated otherwise, this message is 
> confidential and  
> > may be privileged. It is intended for the addressee(s) 
> only. Access to  
> > this E-mail by anyone else is unauthorized. If you are not an  
> > addressee, any disclosure or copying of the contents of 
> this E-mail or  
> > any action taken (or not taken) in reliance on it is 
> unauthorized and  
> > may be unlawful. If you are not an addressee, please inform 
> the sender  
> > immediately.
> >
> >
> ===
> Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
> Editor: Journal of Multivariate Analysis, Journal of Statistical  
> Software
> US mail: 8130 Math Sciences Bldg, Box 951554, Los Angeles, CA 
> 90095-1554
> phone (310)-825-9550;  fax (310)-206-5658;  email: 
> deleeuw at stat.ucla.edu
> homepage: http://gifi.stat.ucla.edu
>    
> --------------------------------------------------------------
> ---------- 
> -------------------------
>            No matter where you go, there you are. --- Buckaroo Banzai
>                     http://gifi.stat.ucla.edu/sounds/nomatter.au
>    
> --------------------------------------------------------------
> ---------- 
> -------------------------
> 
>



More information about the R-SIG-Mac mailing list