This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: tinyfugue with python won't compile under cygwin (1.7.7) on Windows XP


On Sat, Sep 25, 2010 at 12:33 PM, Gwen Morse  wrote:
> On Wed, Sep 15, 2010 at 3:56 AM, Csaba Raduly <rrrrrr@rrrrr.rrr> wrote:

http://www.cygwin.com/acronyms/#PCYMTNQREAIYR    ^^^^^^^^^^^^^^^^

>> On Wed, Sep 15, 2010 at 5:46 AM, Gwen Morse ?wrote:
>>> About a year ago I was able to get assistance compiling my MUD client
>>> Tinyfuge,
>> (snip)
>>> gcc -g -O2 -DTFPYTHON ?-I/usr/include/python2.6 -DDATADIR=/home/jmorse/share ? -
>>> c -o command.o command.c
>> (snip)
>>> In file included from /usr/include/python2.6/unicodeobject.h:120,
>>> ? ? ? ? ? ? ? ? from /usr/include/python2.6/Python.h:85,
>>> ? ? ? ? ? ? ? ? from tfpython.h:6,
>>> ? ? ? ? ? ? ? ? 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 ?-I/usr/include/python2.6 -DDATADIR=/home/jmorse/share ? -
> c -o attr.o attr.c
> gcc -g -O2 -DTFPYTHON ?-I/usr/include/python2.6 -DDATADIR=/home/jmorse/share ? -
> c -o command.o command.c
(snip)
> In file included from /usr/include/python2.6/unicodeobject.h:120,
> ? ? ? ? ? ? ? ? from /usr/include/python2.6/Python.h:85,
> ? ? ? ? ? ? ? ? from tfpython.h:6,
> ? ? ? ? ? ? ? ? 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.

-- 
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 Torvalds
"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


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