Re: use of modules, static vs shared, and dependencies

2005-09-20 Thread Gary V. Vaughan
Hi Howard, Hope you don't mind my chiming in here... mostly for the benefit of the archives, and lurkers: Howard Chu wrote: why should we go through the module-handling work for something that is statically linked into the main executable... You only have to write the module calling code onc

postdeps empty on OpenBSD

2005-09-20 Thread Olly Betts
I'm trying to link C++ code into a shared object for use as a Python module. I'm using libtool to do the linking. On Linux this works well, but on OpenBSD it fails with lots of C++ library symbols not found. The problem seems to be that on OpenBSD the shared object doesn't pull in libstdc++. Py

Re: postdeps empty on OpenBSD

2005-09-20 Thread Bob Friesenhahn
On Tue, 20 Sep 2005, Olly Betts wrote: I'm trying to link C++ code into a shared object for use as a Python module. I'm using libtool to do the linking. On Linux this works well, but on OpenBSD it fails with lots of C++ library symbols not found. You may encounter more problems even after a

Re: postdeps empty on OpenBSD

2005-09-20 Thread Bob Friesenhahn
On Tue, 20 Sep 2005, Olly Betts wrote: I've carefully avoided creating static objects, so at least that shouldn't be a problem. And exceptions are at least only thrown in exceptional circumstances... If you are using the C++ standard library, there are things going on that you are normally b

Re: postdeps empty on OpenBSD

2005-09-20 Thread Bob Friesenhahn
On Tue, 20 Sep 2005, Olly Betts wrote: Should libtool be able to link a C++ module such that it can be dlopen-ed by a C program (on platforms where this can be made to work)? Yes. Any libraries necessary for C++ programs should be applied when linking using the C++ compiler. It seems that y

Re: postdeps empty on OpenBSD

2005-09-20 Thread Olly Betts
On Tue, Sep 20, 2005 at 01:30:37PM -0500, Bob Friesenhahn wrote: > On Tue, 20 Sep 2005, Olly Betts wrote: > > >I'm trying to link C++ code into a shared object for use as a Python > >module. I'm using libtool to do the linking. On Linux this works > >well, but on OpenBSD it fails with lots of C+

Re: postdeps empty on OpenBSD

2005-09-20 Thread Olly Betts
On Tue, Sep 20, 2005 at 01:51:28PM -0500, Bob Friesenhahn wrote: > If you are using the C++ standard library, there are things going on > that you are normally blissfully unaware of. These may use static > initialization. Fair enough, a C++ Python module may simply not work on some platforms. B