X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 6 Oct 2010 10:21:31 +0200 Message-ID: Subject: Re: tinyfugue with python won't compile under cygwin (1.7.7) on Windows XP From: Csaba Raduly To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sat, Sep 25, 2010 at 12:33 PM, Gwen Morse wrote: > On Wed, Sep 15, 2010 at 3:56 AM, Csaba Raduly wrote: http://www.cygwin.com/acronyms/#PCYMTNQREAIYR ^^^^^^^^^^^^^^^^ >> On Wed, Sep 15, 2010 at 5:46 AM, Gwen Morse =A0wrote: >>> About a year ago I was able to get assistance compiling my MUD client >>> Tinyfuge, >> (snip) >>> gcc -g -O2 -DTFPYTHON =A0-I/usr/include/python2.6 -DDATADIR=3D/home/jmo= rse/share =A0 - >>> c -o command.o command.c >> (snip) >>> In file included from /usr/include/python2.6/unicodeobject.h:120, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from /usr/include/python2.6/Python.h:85, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from tfpython.h:6, >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from command.c:33: >>> /usr/include/wchar.h:157: error: conflicting types for `tf_wprintf' >>> tfio.h:160: error: previous declaration of `tf_wprintf' was here >> >> Which version of Cygwin are you using? My /usr/include/wchar.h is only >> 84 lines long! ... in Cygwin 1.5 (doh!) In Cygwin 1.7 it's 192 lines. > > I'm trying to build tinyfugue with python from source, (snip) > $ make > make[1]: Entering directory `/home/jmorse/tf-50b8-py/src' > gcc -g -O2 -DTFPYTHON =A0-I/usr/include/python2.6 -DDATADIR=3D/home/jmors= e/share =A0 - > c -o attr.o attr.c > gcc -g -O2 -DTFPYTHON =A0-I/usr/include/python2.6 -DDATADIR=3D/home/jmors= e/share =A0 - > c -o command.o command.c (snip) > In file included from /usr/include/python2.6/unicodeobject.h:120, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from /usr/include/python2.6/Python.h:85, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from tfpython.h:6, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from command.c:33: > /usr/include/wchar.h:157: error: conflicting types for `tf_wprintf' > tfio.h:160: error: previous declaration of `tf_wprintf' was here (snip) In line 157 of /usr/include/wchar.h there's the declaration of wprintf. I suspect there's a #define wprintf tf_wprintf in Tinyfuge somewhere. This sounds like a bad idea and it finally bit you: there is no wprintf in wchar.h of Cygwin 1.5, but there *is* one in Cygwin 1.7 and now it clashes with Tinyfuge's macro. I'd suggest removing the wprintf macro in Tinyfuge and manually replacing all occurrences of wprintf with tf_wprintf. --=20 GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ L w++$ tv+ b++ DI D++ 5++ Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torv= alds "People disagree with me. I just ignore them." -- Linus Torvalds -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple