[Python-bugs-list] [ python-Bugs-436131 ] freeze: global symbols not exported
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 15 Jul 2002 16:47:10 -0700
Bugs item #436131, was opened at 2001-06-26 03:26
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=436131&group_id=5470
Category: Demos and Tools
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Charles Schwieters (chuckorama)
Assigned to: Mark Hammond (mhammond)
Summary: freeze: global symbols not exported
Initial Comment:
python-2.1
linux-2.2, others?
the freeze tool does not export global symbols. As a
result the frozen executable fails with unresolved
symbols in shared objects.
fix: include the LINKFORSHARED flag in freeze.py:
*** freeze.py~ Tue Mar 20 15:43:33 2001
--- freeze.py Fri Jun 22 14:36:23 2001
***************
*** 434,440 ****
somevars[key] = makevars[key]
somevars['CFLAGS'] = string.join(cflags) #
override
! files = ['$(OPT)', '$(LDFLAGS)', base_config_c,
base_frozen_c] + \
files + supp_sources + addfiles + libs +
\
['$(MODLIBS)', '$(LIBS)', '$(SYSLIBS)']
--- 434,440 ----
somevars[key] = makevars[key]
somevars['CFLAGS'] = string.join(cflags) #
override
! files = ['$(OPT)', '$(LDFLAGS)',
'$(LINKFORSHARED)',base_config_c, base_frozen_c] + \
files + supp_sources + addfiles + libs +
\
['$(MODLIBS)', '$(LIBS)', '$(SYSLIBS)']
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2002-07-16 09:47
Message:
Logged In: YES
user_id=14198
This seems to have bene found on Linux. While the patch
looks reasonable to me, I am not in a position to test. Can
anyone else with a Unix background tell me this seems
reasonable?
----------------------------------------------------------------------
Comment By: Jens Krinke (krinke)
Date: 2002-02-21 23:39
Message:
Logged In: YES
user_id=345110
I think this patch will fix most of the "freeze fails" reports and requests in newsgroups. The bug itself is still in 2.2 and 2.1.2 :-(
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=436131&group_id=5470