Thanks. Sorry that I couldn't get back to this sooner but I haven't had much time to look at this since I first posted.
Anyway... I just tried building from source as you recommend and then installing the ODE package with same results as before (I think). Here is the whole output (there were also some uninitialized variable warnings before this but I they aren't shown):
I reported this problem a while back. mkoctfile was changed some time
ago to pass any argument starting with dash "-" to the compiler, solving
most of similar issued. In GNU compiler, I believe all arguments but
input files start with dash, but this is not true for Apple versions
(i.e., -framework xxx). Logic in mkoctfile does not cover those cases,
but fortunately mkoctflags uses "LFLAGS" environment variable to solve
argument passing to the linker.
ODE makefile tries to pass some flags in both LFLAGS and as mkoctfile
parameters, and this fails in OS X.