Gregory (Grisha) Trubetskoy
grisha at modpython.org
Wed Dec 4 19:34:39 EST 2002
No, shared lib is not required. I have Python 2.2.1 and apache 2.0.43 installed from ports on a FreeBSD 4.7-RELEASE-p1 box and mod_python compiles just fine. There is no libpython2.2.so. If your apache installation is not from ports, then another thing you might try is to rebuild apache after running ./buildconf (then ./configure), then make. Apxs uses the libtool script that is packaged with apache, and it in turn is created by ./buildconf, so it may have something to do with that. Grisha On Wed, 4 Dec 2002, Cameron S. Watters wrote: > > You don't mention your FreeBSD version, it's possible that you have a > > really old libtool. Also make sure that Apache is compiled with > > --enable-threads. See the FreeBSD section in mod_python README. > > FreeBSD 4.7-RELEASE > libtool 1.3.4 (installed from ports) > > Thanks for the pointer to the FreeBSD note in the readme, I had missed > it, BUT.... > > I still get the same message after recompiling apache with the > --enable-threads flag set. I think it has more to do with the fact that > there isn't a libpython2.2.so built (as mentioned by > gdamjan at mail.net.mk). > > I would suggest adding that either to the docs on the website (and to > the README of future releases). The standard python built from source > doesn't appear to do it for you and according to the python FAQ, item > 3.30, Why is the Python interpreter not built as a shared library?, it > won't until v2.3. If this IS required by mod_python, it should be at > least given a mention, and optimally, there would be instructions about > how to create it. > > > Grisha > > > > On Wed, 4 Dec 2002, Cameron S. Watters wrote: > > > >> Hello all, > >> > >> figured you could help. > >> > >> I keep getting this message when I try to make mod_python 3.0.1 > >> > >> *** Warning: This library needs some functionality provided by > >> -lpython2.2. > >> *** I have the capability to make that library automatically link in > >> when > >> *** you link to this library. But I can only do this if you have a > >> *** shared version of the library, which you do not appear to have. > >> > >> *** Warning: libtool could not satisfy all declared inter-library > >> *** dependencies of module mod_python. Therefore, libtool will create > >> *** a static module, that should work as long as the dlopening > >> *** application is linked with the -dlopen flag. > >> > >> I installed apache 2.0.43 and python 2.2.2 from source on FreeBSD. I'm > >> explicitly passing --with-python and --with-apxs to the configure > >> script. > >> > >> Any help would be appreciated. > >> > >> --cameron > >> > >> _______________________________________________ > >> Mod_python mailing list > >> Mod_python at modpython.org > >> http://www.modpython.org/mailman/listinfo/mod_python > >> > > > > > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://www.modpython.org/mailman/listinfo/mod_python >
|