Cygwin 1.1.8 Python 2.1a2 Builds OOTB

Jason Tishler
Fri Feb 9 05:43:00 GMT 2001


On Fri, Feb 09, 2001 at 01:45:14PM +0100, Dr. Volker Zell wrote:
>     Jason>     configure --with-threads=no --with-libm= --with-suffix=.exe
> OK. It works.

I'm glad that it works for you too.

> But when trying to build some additional packages I get errors of the
> following kind:
> running build_ext
> building '_xmlplus.parsers.sgmlop' extension
> skipping extensions/sgmlop.c (build/temp.cygwin_nt-4.0-1.1.8-i686-2.1/sgmlop.o up-to-date)
> gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin_nt-4.0-1.1.8-i686-2.1/sgmlop.o -L/usr/local/lib/python2.1/config -lpython2.1 -o build/lib.cygwin_nt-4.0-1.1.8-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
> This is from
>  o PyXML-0.6.3 -
> But other packages give the same kind of errors.
> Any hints ?

This is due to a missing DL_EXPORT macro needed for the shared extension
initialization function.  See the following for more details:

Using Modules/_curses_panel.c as an example, you need to change:

    void init_curses_panel(void)


    DL_EXPORT(void) init_curses_panel(void)
I have submitted patches to Python CVS for the ones that I have come
across, but there are obviously more.  Please submit patches for the
ones that you find.

BTW, you may also run into the following problem:

The above patch demonstrates how to fix this problem too.


Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email:
Hazlet, NJ 07730 USA                 WWW:

More information about the Cygwin-apps mailing list