From simon.urbanek at r-project.org  Fri Jun  8 18:35:38 2007
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Fri, 8 Jun 2007 12:35:38 -0400
Subject: [Rd] R CMD SHLIB error using OS X
In-Reply-To: <466959A5.9020005@uchicago.edu>
References: <466959A5.9020005@uchicago.edu>
Message-ID: <B0986BA7-42D1-4A8F-A2E0-513105A114AC@r-project.org>

Richard,

On Jun 8, 2007, at 9:29 AM, Richard Zur wrote:

> I'm using R 2.5.0 with OS X 10.4.9 and Xcode 2.4.1 on a PowerPC.  My
> code used to compile fine with R 2.4.* and Xcode 2.2 (I think).
>
> I'm compiling some C code (named mhroc_prop.c) that calls a fortran
> routine from mvndstpack.f  I get the error
>
> /usr/bin/libtool: file: mvndstpack.o is not an object file (not  
> allowed
> in a library)
>

The problem is then apparently somewhere earlier - do you have a  
proper Fortran compiler installed? Apparently the fortran object file  
is not created correctly. Please send me the full output (and tell me  
which Fortran you are using and how you installed it).

Cheers,
Simon

PS: I'm moving this to R-SIG-Mac as this is Mac-specific.


> after R outputs (sorry... not sure if this is useful information or  
> not)
>
> gcc-4.0 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -std=gnu99
> -dynamiclib -Wl,-macosx_version_min -Wl,10.3 -undefined dynamic_lookup
> -single_module -multiply_defined suppress -L/usr/local/lib -o
> mhroc_prop.so mhroc_prop.o mvndstpack.o
> -L/Library/Frameworks/R.framework/Resources/lib/ppc -lRlapack
> -L/Library/Frameworks/R.framework/Resources/lib/ppc -lRblas
> -L/usr/local/lib/gcc/powerpc-apple-darwin8/4.2.0 -lgfortran -lgcc_s. 
> 10.4
> -lSystemStubs -L/usr/local/lib/gcc/powerpc-apple-darwin8/4.2.0
> -lgfortran -lgcc_s.10.4 -lSystemStubs
> -F/Library/Frameworks/R.framework/.. -framework R
>
> Any ideas?
>
> Thank you,
> Richard Zur
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



[Rd] R CMD SHLIB error using OS X
Simon Urbanek