how to rebuild Python with static linking (freeze/AIX) ?

Eugene Leitl Eugene.Leitl at lrz.uni-muenchen.de
Wed Apr 4 12:08:59 EDT 2001


FYI, the problem went away when I went back to Python 1.5.2. Medusa now
freezes just fine. I don't have the time to find out whether this was due
to 2.0 or the cc_r compiler the ./configure used. 1.5.2 ./config built
using GCC 2.95.2.

The RS/6000 43P Model 140 does creak a bit, I was able to produce

error: uncaptured python exception, closing channel <http_channel
connected 192.168.0.58:1091 at 20124b68 channel#: 0 requests:74>
(socket.error:(32, 'Broken pipe') [./asynchat.py|initiate_send|211]
[./http_server.py|send|391] [./asyncore.py|send|274])
error: uncaptured python exception, closing channel <http_channel
connected 192.168.0.58:1092 at 200d2dc8 channel#: 1 requests:57>
(socket.error:(32, 'Broken pipe') [./asynchat.py|initiate_send|211]
[./http_server.py|send|391] [./asyncore.py|send|274])

When hitting the /status page *really quickly*. I guess the CPU is a tad
slow.

In any case, thanks for the suggestions.

-- Eugene

On Wed, 4 Apr 2001, Eugene Leitl wrote:

>
> I've just built Python 2.1b2 (#1, Apr  4 2001, 15:58:55) [C] on aix4
> (uname -a sez AIX RS01 1 4 009931444C00) via a vanilla ./configure
>
> When I try to freeze a program, I get a
>
>  Warning: unknown modules remain: _socket binascii cStringIO errno math
>  pcre pwd strop time
>
> Built result dumps core. Documentation says
> """
>  A warning against shared library modules
>  ----------------------------------------
>
>  When your Python installation uses shared library modules, these will
>  not be incorporated in the frozen program.  Again, the frozen program
>  will work when you test it, but it won't work when you ship it to a
>  site without a Python installation.
>
>  Freeze prints a warning when this is the case at the end of the
>  freezing process:
>
>          Warning: unknown modules remain: ...
>
>  When this occurs, the best thing to do is usually to rebuild Python
>  using static linking only.
> """
>
> Though the frozen program does not work when I test it (dumps core),
> I would like to try this.
>
> Any idea how to do that?
>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

______________________________________________________________
ICBMTO  : N48 10'07'' E011 33'53'' http://www.lrz.de/~ui22204
57F9CFD3: ED90 0433 EB74 E4A9 537F CFF5 86E7 629B 57F9 CFD3





More information about the Python-list mailing list