Igor Sylvester wrote:
Hi Igor,
> Statically linking python is of no avail. Adding python's time.so to
> the linker list doesn't help either. I believe it still tries to dlopen
> a library it isn't finding. I'll start looking at the source to see
> what's going on.
Stracing Matlab might help here. When dlopen() complains about not
finding something it is often that an external symbol in a dynamic lib
cannot be found. dlopen's error message is a little retarded in that
aspect and I found out about it after patching python's dlopen code and
after a fifteen hour session of debugging Sage on Cygwin I learned that
some dynamic libs can be loaded and others not. That lead me to the
rather obvious idea to use a dependency tracker script to find all
involved dynamic libs.
One thing that might be different between Matlab and python are the
RTLD_* flags used by Matlab itself. I am clueless if this is documented
or if you have to poke around in Matlab to find out. To check the
various flags check out /usr/include/dlfcn.h (or in case it isn't there
on your Unix-y box grep around for RTLD_ in /usr/include.
Another thing: For me on OSX time.so is in
local/lib/python2.5/lib-dynload
and I kind of doubt that this dynamic lib is picked up by your
LD_LIBRARY_PATH, so you might want to copy missing dynamic libs in a
location where you are 100% sure that LD_LIBRARY_PATH finds them.
> It looks like other people have had similar problems but I haven't been
> able to find a concrete solution.
> http://lists.cistron.nl/pipermail/freeradius-users/2007-October/msg00032.html
>
> I'm using R2008a. Do you know the relevant commands?
Nope, I used to write C++ extensions for 2006a or so and I would rather
not touch Matlab ever again. In fact, I deleted it from my old laptop
and never installed it on my new one.
One last comment: If you post to another list like the numpy list about
the same problem you might want to mention that you asked about the
problem on another list and give a link to the archives.
Cheers,
Michael
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev