471,312 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,312 software developers and data experts.

Py2.5.1 on Ubuntu AMD X2, unicode problems

I'm building 2.5.1 from source, using the ubuntu(7.0.4)-provided gcc
4.1.2. Based on google searches and nints found, here is the process:

#---edit configure; test of wchar_t---
#include <ncursesw.h>
#include <wchar.h>

cd Lib/test
rm test_multibyte*
cd ../..

#---edit Include/unicodeobject.h---
/* FIXME: MvL's new implementation assumes that Py_UNICODE_SIZE is
properly set, but the default rules below doesn't set it. I'll
sort this out some other day -- fr*****@pythonware.com */
#define Py_UNICODE_SIZE 4

LDFLAGS='-L/usr/lib -lncursesw -L/usr/local/ssl/lib -lssl -lcrypto ' \
../configure --prefix=/usr/local \
--with-gcc=/usr/bin/gcc \
--enable-shared \
--enable-unicode=usc4 \

#---edit Modules/Setup---
(all the std ones....)
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto

#---end edits---

gmake altinstall

I'm getting a failure during final libpython binding, on undefined
PyUnicodeUCS4_AsWideChar. All the other PyUnicodeUCS4... functions
are being found. It specifically says it is checking on the libpython
in /usr/local/lib (not somewhere in the source code build dirtree), so
that is a possible oddity. Checking with nm on the lib shows
"AsWideChar" is in fact undefined.
1. If I onfigure with unicode=ucs2, does all this go away and I get a
working system (efficient or not) on my 64-bit machine?

2. Can you point to a configure (and maybe patch) process which leads
to a clean "make altinstall".
Harry George
PLM Engineering Architecture
Sep 11 '07 #1
1 1593
I'm building 2.5.1 from source, using the ubuntu(7.0.4)-provided gcc
Something must be terribly wrong with your system if you have to go
through such hassles. It should build out of the box, and does for
me on Debian.

Sep 11 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Bill Eldridge | last post: by
30 posts views Thread by aurora | last post: by
2 posts views Thread by Neil Schemenauer | last post: by
19 posts views Thread by Thomas W | last post: by
9 posts views Thread by Gerry | last post: by
3 posts views Thread by Marcpp | last post: by
8 posts views Thread by Josep | last post: by
1 post views Thread by Mudcat | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.