This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: freeze: global symbols not exported
Type: Stage:
Components: Demos and Tools Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: mhammond Nosy List: chuckorama, krinke, mhammond, niemeyer, nnorwitz
Priority: normal Keywords:

Created on 2001-06-25 17:26 by chuckorama, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Messages (5)
msg5178 - (view) Author: Charles Schwieters (chuckorama) Date: 2001-06-25 17:26
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)']
  

msg5179 - (view) Author: Jens Krinke (krinke) Date: 2002-02-21 12:39
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 :-(
msg5180 - (view) Author: Mark Hammond (mhammond) * (Python committer) Date: 2002-07-15 23:47
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?
msg5181 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2002-09-13 00:18
Logged In: YES 
user_id=33168

Is there a test case I can use to trigger this error?
msg5182 - (view) Author: Gustavo Niemeyer (niemeyer) * (Python committer) Date: 2002-11-06 22:17
Logged In: YES 
user_id=7887

Thanks for reporting. This problem is already fixed in the CVS. 
History
Date User Action Args
2022-04-10 16:04:09adminsetgithub: 34667
2001-06-25 17:26:12chuckoramacreate