[ZCM] [ZC] 1786/ 2 Reject "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 10:06:38 EDT 2005


Issue #1786 Update (Reject) "optimize flag causes install to fail, "undefined symbol: PL_dowarn""
 Status Rejected, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1786

==============================================================
= Reject - Entry #2 by tseaver on May 18, 2005 10:06 am

 Status: Pending => Rejected

I can't reproduce this:

---------------8< ------------------------
$ cd /tmp
[/tmp]
$ mkdir collector_1786
[/tmp]
$ cd collector_1786/
[/tmp/collector_1786]
$ ~/projects/Zope-CVS/Zope-2.7-branch/configure --with-python=~/projects/Zope-CVS/bin/python2.3 --optimize

Using Python interpreter at ~/projects/Zope-CVS/bin/python2.3

Configuring Zope installation

/home/tseaver/projects/Zope-CVS/Zope-2.7-branch/configure: line 206: ~/projects/Zope-CVS/bin/python2.3: No such file or directory
$ ~/projects/Zope-CVS/Zope-2.7-branch/configure --with-python=/home/tseaver/projects/Zope-CVS/bin/python2.3 --optimize

Using Python interpreter at /home/tseaver/projects/Zope-CVS/bin/python2.3

Configuring Zope installation

  - Zope top-level binary directory will be /opt/Zope-2.7.
  - Distutils install flags will be "--optimize=1 --no-compile"
  - Makefile written.

  Next, run make.

$ make
....

Zope built. Next, do 'make install' (or 'make instance'
to run a Zope instance directly from the build directory).

$ make install
...
Zope binaries installed successfully.
Now run '/tmp/collector_1786/installed/bin/mkzopeinstance.py'

---------------8< ------------------------

I do see one odditiy in your environment: the traceback shows that
Python is trying to import an odd filename: '/tmp/re.so'.

The 're' module in Python is not a shared library, but a wrapper
around the 'pcre.so' library (in the 'lib-dynload' directory of
your Python library).

________________________________________
= 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