Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: Fri, 9 Feb 2001 08:47:08 -0500 From: Jason Tishler To: "Dr. Volker Zell" Cc: cygwin-apps AT sources DOT redhat DOT com Subject: Re: Cygwin 1.1.8 Python 2.1a2 Builds OOTB Message-ID: <20010209084708.D980@dothill.com> Mail-Followup-To: "Dr. Volker Zell" , cygwin-apps AT sources DOT redhat DOT com References: <20010205124409 DOT K812 AT dothill DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from Dr.Volker.Zell@oracle.com on Fri, Feb 09, 2001 at 01:45:14PM +0100 Organization: Dot Hill Systems Corp. 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 DOT Tishler AT dothill DOT com Hazlet, NJ 07730 USA WWW: http://www.dothill.com