[XML-SIG] problems building pyXML for cygwin
Fredrik Lundh
fredrik@pythonware.com
Wed, 1 Aug 2001 17:15:36 +0200
hi tim,
> I tried installing pyXML under cygwin. Any ideas why it didn't? I haven't
> looked into it in any detail. Python is:
> Python 2.1 (#1, Apr 17 2001, 09:45:01) [GCC 2.95.3-2 (cygwin special)] on
> cygwin_nt-4.01
> gcc -shared -Wl,--enable-auto-image-base
> build/temp.cygwin_nt-5.0-1.3.2-i686-2.1/sgmlop.o -L/usr/lib
> /python2.1/config -lpython2.1 -o
> build/lib.cygwin_nt-5.0-1.3.2-i686-2.1/_xmlplus/parsers/sgmlop.dll
> Cannot export _bss_end__: symbol not defined
> Cannot export _bss_start__: symbol not defined
> Cannot export _data_end__: symbol not defined
> Cannot export _data_start__: symbol not defined
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
if I understand things correctly, cygwin's gcc gives you this error
if a dynamic library doesn't export any symbols at all.
somewhere in the middle of the sgmlop.c source file, try replacing
void
#ifdef WIN32
__declspec(dllexport)
#endif
initsgmlop()
with
DL_EXPORT(void)
initsgmlop(void)
hope this helps!
regards /F