pyexpat error

Martin v. Loewis martin at v.loewis.de
Wed Jul 31 02:49:45 EDT 2002


Doug Stuart <dstuart at orsys.com> writes:

> I am attempting to compile python with the Expat library included.  I am
> running Solaris 7 and python 2.2.1.  Originally, I did the
> 'configure-make dance' for python, then was told that I needed to add
> the Expat library.  I did the 'configure-make dance' for Expat (version
> 1.95.4).  I then went to redo my python doing a configure, make clean
> and make.  During the build of the pyexpat extension I get an warning
> from line 1518 of Modules/pyexpat.c saying that subscript has type
> char.  It then removes the library because 'an error occurred."  In the
> setup.py script there is a setting for the EXPAT_DIR.  I have tried
> setting that to the directory where the Expat source files are located
> and to the location of the library the Expat install creates.
> 
> What am I missing here?

Precise bug reporting. When it said 'an error occurred' - what
precisely did it say?

Could it be the case that you have compiled Expat as a shared library,
and that your operating system won't find that shared library because
the shared library is in /usr/local/lib? In that case, you need to set
LD_LIBRARY_PATH, or apply one of the other 4 strategies to make
Solaris find shared libraries.

Regards,
Martin



More information about the Python-list mailing list