pyexpat error

Doug Stuart dstuart at orsys.com
Wed Jul 31 11:12:06 EDT 2002


**** Post for FREE via your newsreader at post.usenet.com ****

After doing some digging around I found where to set the LD_LIBRARY_PATH.
After that I eventually got python compiled.

Thanks for the help
Doug

Doug Stuart wrote:

> **** Post for FREE via your newsreader at post.usenet.com ****
>
> "Martin v. Loewis" wrote:
>
> > 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
>
> I'm sorry but I am new to this sort of thing....here is the text of the
> "error"...
>
> building 'pyexpat' extension
> /orion/pkg/Python-2.2.1/Modules/pyexpat.c: In function
> `get_version_string':
> /orion/pkg/Python-2.2.1/Modules/pyexpat.c:1518: warning: subscript has
> type `char'
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_EXPAT_H=1 -I.
> -I/orion/pkg/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c
> /orion/pkg/Pytho
> n-2.2.1/Modules/pyexpat.c -o build/temp.solaris-2.7-sun4u-2.2/pyexpat.o
> gcc -shared build/temp.solaris-2.7-sun4u-2.2/pyexpat.o -L/usr/local/lib
> -lexpat
> -o build/lib.solaris-2.7-sun4u-2.2/pyexpat.so
> WARNING: removing "pyexpat" since importing it failed
>
> Where would I set the LD_LIBRARY_PATH? In my environment, the Setup
> script or where?
> And what are the 'other 4 strategies"?  If you could point me in the
> right direction it would be
> most appreciated.
>
> TIA
> Doug
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  *** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
>                       http://www.usenet.com
> Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 *** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
                      http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the Python-list mailing list