[Python-bugs-list] [ python-Bugs-436131 ] freeze: global symbols not exported
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 06 Nov 2002 14:17:18 -0800
Bugs item #436131, was opened at 2001-06-25 17: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: Closed
>Resolution: Fixed
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: Gustavo Niemeyer (niemeyer)
Date: 2002-11-06 22:17
Message:
Logged In: YES
user_id=7887
Thanks for reporting. This problem is already fixed in the CVS.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2002-09-13 00:18
Message:
Logged In: YES
user_id=33168
Is there a test case I can use to trigger this error?
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2002-07-15 23: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 12: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