Graham Dumpleton
grahamd at dscpl.com.au
Fri Sep 2 17:20:13 EDT 2005
You got me at a really bad time, in an airport lounge, no access to source code and possibly no Internet access for days. I'll give a pointer to what to look for, but need someone else to step and guide you better. Standard C runtime library is called libc. There is a version called libc_r which is for when using multithreading. You may find an option to configure for Python to get it to enable threading. On FreeBSD I think it defaults to off. If not, you may be able to use: LDLIBS=-lc_r ./configure Check the source code for configure to see if it looks for LDLIBS for additional libraries to link in when building executables. Also check the README/INSTALL instructions file for Python as am sure it may talk about this platform specific issue of multithreading on BSD type platforms. Anyway, gotta fly, literally. :-) Good luck. Graham Tim Bellefy wrote .. > Thanks for the tips. > > "You need to force linking of -lc_r version of -lc." > > You'll have to excuse my lack of knowledge on this part but I have NO IDEA > what that means.. > > :-) > > Thanks in advance! > > "To get to the next level in your life requires a higher level of thinking > than the level of thinking that got you where you are." - Thomas Edison > > > > > Graham Dumpleton <grahamd at dscpl.com.au> wrote:BTW, your Apache was built > with threads so you shouldn't have an issue, > but be mindful of following as well: > > http://www.modpython.org/FAQ/faqw.py?req=show&file=faq02.011.htp > > On 02/09/2005, at 7:15 PM, Graham Dumpleton wrote: > > > You need to force linking of -lc_r version of -lc. Ie., POSIX threads > > functions on FreeBSD are in separate re-entrant version of C library. > > > > On 02/09/2005, at 6:31 PM, Tim Bellefy wrote: > > > >> Hi All, > >> > >> This is officially my first mailing list post. (Just > >> had to say that) > >> > >> Anyway, I'm having troubles installing mod_python with > >> a fresh install of Python and Apache. > >> > >> OS: FreeBSD 4.7-RELEASE-p28 #40 > >> Python: 2.4.1 > >> Apache: 2.0.54 > >> > >> Apache was installed via: > >> ./configure --enable-mods-shared --enable-threads > >> make > >> make install > >> > >> Apache and Python both work great. > >> > >> Then I tried to configure mod_python using: > >> ./configure --with-apxs=/usr/local/apache2/bin/apxs > >> > >> The output found in config.log doesn't make any sense > >> to me. Below is the snippet from config.log: > >> > >> Any help would be greatly appreciated! > >> > >> > >> ################################################# > >> configure:2694: gcc -o conftest -g -O2 > >> -L/usr/local/lib/python2.4/config conftest.c > >> -lpython2.4 -lutil -lm -lm >&5 > >> /usr/local/lib/python2.4/config/libpython2.4.a(posixmodule.o): > >> In function `posix_tmpnam': > >> /tim/software/Python-2.4.1/./Modules/posixmodule.c(.text+0x3d43): > >> warning: tmpnam() possibly used unsafely; consider > >> using mkstemp() > >> /usr/local/lib/python2.4/config/libpython2.4.a(posixmodule.o): > >> In function `posix_tempnam': > >> /tim/software/Python-2.4.1/./Modules/posixmodule.c(.text+0x3ca6): > >> warning: tempnam() possibly used unsafely; consider > >> using mkstemp() > >> /usr/local/lib/python2.4/config/libpython2.4.a(thread.o): > >> In function `find_key': > >> /tim/software/Python-2.4.1/Python/thread.c(.text+0x25): > >> undefined reference to `pthread_self' > >> /tim/software/Python-2.4.1/Python/thread.c(.text+0x3d): > >> undefined reference to `sem_wait' > >> /tim/software/Python-2.4.1/Python/thread.c(.text+0xc0): > >> undefined reference to `sem_post' > >> /usr/local/lib/python2.4/config/libpython2.4.a(thread.o): > >> In function `PyThread_delete_key': > >> /tim/software/Python-2.4.1/Python/thread.c(.text+0xfd): > >> undefined reference to `sem_wait' > >> /tim/software/Python-2.4.1/Python/thread.c(.text+0x162): > >> undefined reference to `sem_post' > >> /usr/local/lib/python2.4/config/libpython2.4.a(thread.o): > >> In function `PyThread_delete_key_value': > >> /tim/software/Python-2.4.1/Python/thread.c(.text+0x1a9): > >> undefined reference to `pthread_self' > >> /tim/software/Python-2.4.1/Python/thread.c(.text+0x1c1): > >> undefined reference to `sem_wait' > >> /tim/software/Python-2.4.1/Python/thread.c(.text+0x220): > >> undefined reference to `sem_post' > >> /usr/local/lib/python2.4/config/libpython2.4.a(thread.o): > >> In function `PyThread_start_new_thread': > >> /tim/software/Python-2.4.1/Python/thread_pthread.h(.text+0x28b): > >> undefined reference to `pthread_create' > >> /tim/software/Python-2.4.1/Python/thread_pthread.h(.text+0x29d): > >> undefined reference to `pthread_detach' > >> /usr/local/lib/python2.4/config/libpython2.4.a(thread.o): > >> In function `PyThread_get_thread_ident': > >> /tim/software/Python-2.4.1/Python/thread_pthread.h(.text+0x2ef): > >> undefined reference to `pthread_self' > >> /usr/local/lib/python2.4/config/libpython2.4.a(thread.o): > >> In function `PyThread_allocate_lock': > >> /tim/software/Python-2.4.1/Python/thread_pthread.h(.text+0x33a): > >> undefined reference to `sem_init' > >> /usr/local/lib/python2.4/config/libpython2.4.a(thread.o): > >> In function `PyThread_free_lock': > >> /tim/software/Python-2.4.1/Python/thread_pthread.h:313: > >> undefined reference to `sem_destroy' > >> /usr/local/lib/python2.4/config/libpython2.4.a(thread.o): > >> In function `PyThread_acquire_lock': > >> /tim/software/Python-2.4.1/Python/thread_pthread.h:299: > >> undefined reference to `sem_wait' > >> /tim/software/Python-2.4.1/Python/thread_pthread.h:298: > >> undefined reference to `sem_trywait' > >> /usr/local/lib/python2.4/config/libpython2.4.a(thread.o): > >> In function `PyThread_release_lock': > >> /tim/software/Python-2.4.1/Python/thread_pthread.h(.text+0x43d): > >> undefined reference to `sem_post' > >> /usr/local/lib/python2.4/config/libpython2.4.a(thread.o): > >> In function `PyThread_create_key': > >> /tim/software/Python-2.4.1/Python/thread.c:302: > >> undefined reference to `sem_init' > >> configure:2697: $? = 1 > >> configure: failed program was: > >> #line 2668 "configure" > >> #include "confdefs.h" > >> > >> > >> > >> > >> > >> > >> ____________________________________________________ > >> Start your day with Yahoo! - make it your home page > >> http://www.yahoo.com/r/hs > >> > >> _______________________________________________ > >> Mod_python mailing list > >> Mod_python at modpython.org > >> http://mailman.modpython.org/mailman/listinfo/mod_python > >> > > > > _______________________________________________ > > Mod_python mailing list > > Mod_python at modpython.org > > http://mailman.modpython.org/mailman/listinfo/mod_python > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com
|