ctffind on mac

hello,

i am trying to compile ctffind on mac (snow leopard 10.6.2), and i am having a small problem.
the problem is with compiling ioc.c with gcc - it gets compiled, but then when trying to put it
all together, there is a following error:

gfortran -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
ctffind3.o iof.f ioc.o -o ctffind3.exe
ld: warning: in ioc.o, file is not of required architecture

i tried to change the compilation option in gcc to -mtune=generic, and tried with different
types, but the result is always the same.
any idea what i could do ?

best,

jp