Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freeze: global symbols not exported #34667

Closed
chuckorama mannequin opened this issue Jun 25, 2001 · 5 comments
Closed

freeze: global symbols not exported #34667

chuckorama mannequin opened this issue Jun 25, 2001 · 5 comments
Assignees

Comments

@chuckorama
Copy link
Mannequin

chuckorama mannequin commented Jun 25, 2001

BPO 436131
Nosy @mhammond

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/mhammond'
closed_at = <Date 2002-11-06.22:17:18.000>
created_at = <Date 2001-06-25.17:26:12.000>
labels = []
title = 'freeze: global symbols not exported'
updated_at = <Date 2002-11-06.22:17:18.000>
user = 'https://bugs.python.org/chuckorama'

bugs.python.org fields:

activity = <Date 2002-11-06.22:17:18.000>
actor = 'niemeyer'
assignee = 'mhammond'
closed = True
closed_date = None
closer = None
components = ['Demos and Tools']
creation = <Date 2001-06-25.17:26:12.000>
creator = 'chuckorama'
dependencies = []
files = []
hgrepos = []
issue_num = 436131
keywords = []
message_count = 5.0
messages = ['5178', '5179', '5180', '5181', '5182']
nosy_count = 5.0
nosy_names = ['mhammond', 'nnorwitz', 'niemeyer', 'chuckorama', 'krinke']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue436131'
versions = []

@chuckorama
Copy link
Mannequin Author

chuckorama mannequin commented Jun 25, 2001

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)']

@chuckorama chuckorama mannequin closed this as completed Jun 25, 2001
@chuckorama chuckorama mannequin assigned mhammond Jun 25, 2001
@chuckorama chuckorama mannequin closed this as completed Jun 25, 2001
@chuckorama chuckorama mannequin assigned mhammond Jun 25, 2001
@krinke
Copy link
Mannequin

krinke mannequin commented Feb 21, 2002

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 :-(

@mhammond
Copy link
Contributor

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?

@nnorwitz
Copy link
Mannequin

nnorwitz mannequin commented Sep 13, 2002

Logged In: YES
user_id=33168

Is there a test case I can use to trigger this error?

@niemeyer
Copy link
Mannequin

niemeyer mannequin commented Nov 6, 2002

Logged In: YES
user_id=7887

Thanks for reporting. This problem is already fixed in the CVS.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant