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: --disable-unicode fails when linking
Type: Stage:
Components: Build Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: fbaumgart, loewis
Priority: normal Keywords:

Created on 2005-03-07 21:45 by fbaumgart, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg24501 - (view) Author: Frank Baumgart (fbaumgart) Date: 2005-03-07 21:45
Linux, SuSE 9.2, Pentium 4
gcc 3.3.4 (pre 3.3.5 20040809)

./configure --prefix=/opt/python --disable-unicode

...
ranlib libpython2.4.a
c++ -pthread  -Xlinker -export-dynamic -o python \
                Modules/python.o \
                libpython2.4.a -lpthread -ldl  -lutil   -lm
libpython2.4.a(posixmodule.o)(.text+0x829): In function
`posix_tmpnam':
Modules/posixmodule.c:6158: warning: the use of
`tmpnam_r' is dangerous, better use `mkstemp'
libpython2.4.a(posixmodule.o)(.text+0x8cb): In function
`posix_tempnam':
Modules/posixmodule.c:6113: warning: the use of
`tempnam' is dangerous, better use `mkstemp'
libpython2.4.a(_codecsmodule.o)(.text+0x2c1): In
function `codec_decode':
Modules/_codecsmodule.c:141: undefined reference to
`PyUnicode_GetDefaultEncoding'
libpython2.4.a(_codecsmodule.o)(.text+0x331): In
function `codec_encode':
Modules/_codecsmodule.c:108: undefined reference to
`PyUnicode_GetDefaultEncoding'
collect2: ld returned 1 exit status
make: *** [python] Error 1
msg24502 - (view) Author: Frank Baumgart (fbaumgart) Date: 2005-03-07 21:58
Logged In: YES 
user_id=599418

the same bug exists in the (currently latest):

python_2005-03-07_160000.tar.gz
msg24503 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-03-08 15:06
Logged In: YES 
user_id=21627

Thanks for the report. This is now fixed in

setup.py 1.215
codecs.py 1.38
copy.py 1.45
test_support.py 1.63
NEWS 1.1270
_codecsmodule.c 2.21
_tkinter.c 1.169

setup.py 1.204.2.2
codecs.py 1.35.2.3
test_support.py 1.62.4.1
NEWS 1.1193.2.33
_codecsmodule.c 2.20.2.1
_tkinter.c 1.168.2.1
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41665
2005-03-07 21:45:07fbaumgartcreate