[ZCM] [ZC] 1786/ 1 Request "optimize flag causes install to fail,
"undefined symbol: PL_dowarn""
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Wed May 18 08:37:30 EDT 2005
Issue #1786 Update (Request) "optimize flag causes install to fail, "undefined symbol: PL_dowarn""
Status Pending, Zope/bug medium
To followup, visit:
http://www.zope.org/Collectors/Zope/1786
==============================================================
= Request - Entry #1 by to_be on May 18, 2005 8:37 am
Specifying the --optimize flag with ./configure causes make install to fail:
<SNIP>
0 www:~/download/Zope-2.7.5-final # ./configure --prefix=/opt/Zope-2.7.6 --optimize
Configuring Zope installation
Testing for an acceptable Python interpreter...
Python version 2.3.5 found at /usr/local/bin/python
The optimum Python version (2.3.5) was found at /usr/local/bin/python.
- Zope top-level binary directory will be /opt/Zope-2.7.6.
- Distutils install flags will be "--optimize=1 --no-compile"
- Makefile written.
Next, run make.
0 www:~/download/Zope-2.7.5-final # make
(...)
changing mode of /root/download/Zope-2.7.5-final/build-base/python-2.3/build-scripts/test.py from 644 to 755
Zope built. Next, do 'make install' (or 'make instance'
to run a Zope instance directly from the build directory).
0 www:~/download/Zope-2.7.5-final # make install
(...)
copying /root/download/Zope-2.7.5-final/build-base/python-2.3/build-lib/Lifetime.py -> /opt/Zope-2.7.6/lib/python
writing byte-compilation script '/tmp/tmpSnL1Uq.py'
/usr/local/bin/python -O /tmp/tmpSnL1Uq.py
Traceback (most recent call last):
File "/tmp/tmpSnL1Uq.py", line 1, in ?
from distutils.util import byte_compile
File "/usr/local/lib/python2.3/distutils/util.py", line 9, in ?
import sys, os, string, re
ImportError: /tmp/re.so: undefined symbol: PL_dowarn
error: command '/usr/local/bin/python' failed with exit status 1
make: *** [install] Fehler 1
2 www:~/download/Zope-2.7.5-final #
</SNIP>
(The number at the beginning of the prompt is $?, the return code of the last executed command; no .pyo files have been created nor any .pyc)
With --optimize removed, the installation succeeds.
==============================================================
More information about the Zope-Collector-Monitor
mailing list