This is the mail archive of the cygwin-apps@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cygwin 1.1.8 Python 2.1a2 Builds OOTB


Volker,
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 - http://www.python.org/topics/xml/
> 
> 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:
 http://sourceforge.net/patch/?func=detailpatch&patch_id=103185&group_id=5470
Using Modules/_curses_panel.c as an example, you need to change:
 void init_curses_panel(void)
to:
 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:
 http://www.python.org/doc/FAQ.html#3.24
The above patch demonstrates how to fix this problem too.
Thanks,
Jason
-- 
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: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AltStyle によって変換されたページ (->オリジナル) /