httpdapy compile help
Oleg Broytmann
phd at phd.russ.ru
Mon Mar 27 04:19:29 EST 2000
Hello!
Seems like a well-known problem. Try to add -Wl,-E flag (no spaces
here!) to the gcc options. For more details lookup "man ld" for -E
option...
On Fri, 24 Mar 2000, Robert Bill wrote:
> In trying to use httpdapy I have been unable to get it to compile properly.
>
> Platform linux 2.1.12 i686 (redhat 6.1)
> python 1.5.2
>
> The error is ...
> <ERROR>
> gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite `./apaci`
> -rdynamic \
> -o httpd buildmark.o modules.o modules/standard/libstandard.a
> modules/extra/libextra.a main/libmain.a ./os/unix/libos.a ap/libap.a
> regex/libregex.a lib/expat-lite/libexpat.a -lm -lcrypt -lndbm -ldl
> modules/extra/libextra.a(mod_python.o): In function `make_pblockobject':
> mod_python.o(.text+0x1c): undefined reference to `PyErr_NoMemory'
>
> <snip>---all other python types here- removed for brevity --</snip>
>
> mod_python.o(.text+0x2c96): undefined reference to `PyEval_ReleaseLock'
> mod_python.o(.text+0x2cd6): undefined reference to `PyString_Type'
> modules/extra/libextra.a(mod_python.o)(.rodata+0x798): undefined reference to
> `PyType_Type'
> modules/extra/libextra.a(mod_python.o)(.rodata+0x80c): undefined reference to
> `PyType_Type'
> modules/extra/libextra.a(mod_python.o)(.rodata+0x880): undefined reference to
> `PyType_Type'
> collect2: ld returned 1 exit status
> make[2]: *** [target_static] Error 1
> make[2]: Leaving directory `/usr/src/apache_1.3.12/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/usr/src/apache_1.3.12'
> make: *** [build] Error 2
> </ERROR>
>
> Any ideas??
Oleg.
----
Oleg Broytmann http://members.xoom.com/phd2.1/ phd2 at earthling.net
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list