[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 16:44:17 MET 2004

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



> -----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 messag...{{dropped}}

More information about the R-SIG-Mac mailing list