[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Intent to remove: libapache-mod-python



Hello

On Thu, Jul 08, 1999 at 10:10:07PM +0200, Gregor Hoffleit wrote:
> I can't get PyApache to work with Apache 1.3.6. Is there any volunteer 
> what wants to look into it ? If not, I intent to remove
> libapache-mod-python from potato.
Though I am not a developer (so I can't take the package, but I'd like to do
it :)), I could perhaps help you to get it running. Conditions here are:
Apache 1.3.6, Python 1.5.2 and PyApache 4.16.

"apxs -lpython1.5 -lpthreads -i -a -c mod_pyapache.c" and you got
mod_pyapache.so (without those silly unresolved symbols :-)).

If you stop here, you've lost :-). Here's an excerpt from mod_pyapache.c:
 * MODULE-DEFINITION-START
 Name: PyApache
 ConfigStart
 PyVERSION=`python1.5 -c "import sys; print sys.version[:3]"`
 PyEXEC_INSTALLDIR=`python1.5 -c "import sys; print sys.exec_prefix"`
 PyLIBP=${PyEXEC_INSTALLDIR}/lib/python${PyVERSION}
 PyLIBPL=${PyLIBP}/config
 PyLIBS=`grep "^LIB[SMC]=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr
 '\011\012\015'
 '   '`
 PyLFS=`grep "^LINKFORSHARED=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr
 '\011\012\015' '   '`
 PyPYTHONLIBS=${PyLIBPL}/libpython${PyVERSION}.a
 LIBS="${LIBS} ${PyPYTHONLIBS} ${PyLIBS}"
 LDFLAGS="${LDFLAGS} ${PyLFS}"
   
After I put this variables in my httpd.conf (SetEnv) I didn't have any
problem. (If you got, mail me)

MfG/Greetings, Alexander

-- 
Alexander Reelsen       http://joker.rhwd.owl.de
Making use of non-free software on another machine is unfortunate but does not
put you in the same moral dilemma as having it on your own machine.
   -- Richard Stallman on debian-policy@lists.debian.org


Reply to: