[R-SIG-Mac] R CMD SHLIB

Sourya Shrestha souryashrestha at gmail.com
Sat Aug 9 03:02:05 CEST 2008


Hi,

I am using osx 10.4.11 with R version 2.7.1. I am trying to create a
share lib from a little C code and I am getting some errors, which I
cannot make anything out of. The code written is fine, since I am able
to compile it on a linux elsewhere. Any help would be appreciated.

Here's the error --
===
R CMD SHLIB mckvf.c

gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-mmacosx-version-min=10.4 -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/i386  -msse3
-fPIC  -g -O2 -march=nocona -c mckvf.c -o mckvf.o
gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-mmacosx-version-min=10.4 -std=gnu99 -dynamiclib
-Wl,-headerpad_max_install_names -mmacosx-version-min=10.4 -undefined
dynamic_lookup -single_module -multiply_defined suppress
-L/usr/local/lib -o mckvf.so mckvf.o
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
-Wl,CoreFoundation
/usr/bin/libtool: for architecture cputype (16777223) cpusubtype (3)
object: /usr/local/lib/libgcc_s.10.4.dylib malformed object (unknown
load command 4)
make: *** [mckvf.so] Error 1
===

Thanks,

Sourya



More information about the R-SIG-Mac mailing list