Mail Archives: cygwin/2010/10/06/04:22:17
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: | <AANLkTikYLWCqgX1tTwApb49wdn_tv_6pjWP6HR9upsPK@mail.gmail.com>
|
References: | <AANLkTikYLWCqgX1tTwApb49wdn_tv_6pjWP6HR9upsPK AT mail DOT gmail DOT com>
|
Date: | Wed, 6 Oct 2010 10:21:31 +0200
|
Message-ID: | <AANLkTincRaGyPuUmm5x5jXuL3sNLTa3N32ST_7BB=Qzw@mail.gmail.com>
|
Subject: | Re: tinyfugue with python won't compile under cygwin (1.7.7) on Windows XP
|
From: | Csaba Raduly <rcsaba AT gmail DOT com>
|
To: | cygwin AT cygwin DOT com
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.com>
|
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
|
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com>
|
List-Archive: | <http://sourceware.org/ml/cygwin/>
|
List-Post: | <mailto:cygwin AT cygwin DOT com>
|
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
|
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 <rrrrrr AT rrrrr DOT rrr> 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
- Raw text -