Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Wed, 9 Apr 2003 14:18:49 -0500 From: Danny Sauer To: cygwin AT cygwin DOT com Subject: problem compiling with X and win32api both included Message-ID: <20030409141849.A3260@newwww.internal.teleologic.net> Reply-To: cygwin AT cygwin DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i X-Operating-System: Linux 2.4.17 i686 X-Dont-Spam-Me: I might come after you So, today I'm trying to compile perl-tk 800.024 under the most current cygwin stuff installed by the setup.exe(dll version 1.3.22). I found a previous post (just a week or so ago) talking about the problems with stub.c having different definitions for a bunch of the xlib stuff, so I commented out the wrong defs in perl-tk's stub.c and tried again. Now, I get this: ---------- make[1]: Entering directory `/tmp/Tk800.024/pTk' gcc -c -I.. -I. -Ibitmaps -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIM PORTLIB -O2 -DVERSION=\"800.024\" -DXS_VERSION=\"800.024\" "-I/usr/lib/perl5/ 5.8.0/cygwin-multi-64int/CORE" -D__WIN32__ -Wall -Wno-implicit-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ stubs.c In file included from /usr/include/w32api/windows.h:87, from Lang.h:194, from tkPort.h:24, from tk.h:71, from tkInt.h:21, from stubs.c:7: /usr/include/w32api/winspool.h:239: unnamed fields of type other than struct or union are not allowed /usr/include/w32api/winspool.h:254: unnamed fields of type other than struct or union are not allowed /usr/include/w32api/winspool.h:275: unnamed fields of type other than struct or union are not allowed /usr/include/w32api/winspool.h:300: unnamed fields of type other than struct or union are not allowed /usr/include/w32api/winspool.h:446: unnamed fields of type other than struct or union are not allowed /usr/include/w32api/winspool.h:469: unnamed fields of type other than struct or union are not allowed make[1]: *** [stubs.o] Error 1 make[1]: Leaving directory `/tmp/Tk800.024/pTk' make: *** [pTk/libpTk.a] Error 2 ---------- I looked at winspool.h, and each error occurs inside of typedefs that have a member element defined as "DWORD Status;". Somewhere else, possibly in these mail archives, I found that "Status" is an X11 type, which is probably what's causing this problem. I'm guessing that I could just find all instances of "Status" in the win32api files and rename them to something else, but that would likely cause problems with *something* someday after I forget what I did. :) Anyway, this appears to be a problem because the X11 headers and the win32api headers are both included. It's been a while since I did anything useful with C, but is there a way to undefine the "Status" datatype at the top of winspool.h or something similar? I've been searching around in my archived messages, but haven't found anything useful yet. I'd like to slap a GUI on this perl script, but this is putting a bit of a crimp in that plan. BTW, is the perl-GTK stuff working on native win32 yet? That'd be better, IMHO... I guess that the name clash above is still a bit of a problem even if I solve my specific problem elsewhere. :) Thanks. --Danny -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/