Hello,
I've tried installing the latest version of basemap on OSX Lion and am getting the following error:
# -------------------
scotthenderson@...4266...:python setup.py build
ld: warning: ld: warning: ignoring file nad2bin.o, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): nad2bin.oignoring file src/pj_malloc.o, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): src/pj_malloc.o
Undefined symbols for architecture i386:
"_main", referenced from:
-u command line option
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: ld: warning: ignoring file nad2bin.o, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): nad2bin.oignoring file src/pj_malloc.o, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): src/pj_malloc.o
Undefined symbols for architecture i386:
"_main", referenced from:
-u command line option
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
File "setup.py", line 97, in <module>
cc.link_executable(objects, execname)
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/distutils/ccompiler.py", line 698, in link_executable
debug, extra_preargs, extra_postargs, None, target_lang)
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/distutils/unixccompiler.py", line 262, in link
raise LinkError, msg
distutils.errors.LinkError: Command "cc -arch i386 nad2bin.o src/pj_malloc.o -o nad2bin" failed with exit status 1