From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5912 invoked by alias); 21 Oct 2013 13:02:40 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 5892 invoked by uid 89); 21 Oct 2013 13:02:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_FRT_PACKAGE autolearn=ham version=3.3.2 X-HELO: smtpout06.bt.lon5.cpcloud.co.uk Received: from smtpout06.bt.lon5.cpcloud.co.uk (HELO smtpout06.bt.lon5.cpcloud.co.uk) (65.20.0.126) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 21 Oct 2013 13:02:38 +0000 X-CTCH-RefID: str=0001.0A090209.526525EA.0160,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-Junkmail-Premium-Raw: score=29/97,refid=2.7.2:2013.10.21.112414:17:29.943,ip=86.177.101.35,rules=__MOZILLA_MSGID, __HAS_MSGID, __SANE_MSGID, __HAS_FROM, __HAS_REPLYTO, __USER_AGENT, __MOZILLA_USER_AGENT, __MIME_VERSION, __TO_MALFORMED_2, __TO_NO_NAME, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END, __IN_REP_TO, __CT, __CTYPE_HAS_BOUNDARY, __CTYPE_MULTIPART, __CTYPE_MULTIPART_MIXED, __BAT_BOUNDARY, __ANY_URI, __CP_URI_IN_BODY, __SUBJ_ALPHA_NEGATE, SUPERLONG_LINE, __FORWARDED_MSG, BODYTEXTP_SIZE_3000_LESS, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, __URI_NS, SXL_IP_DYNAMIC[35.101.177.86.fur], HTML_00_01, HTML_00_10, RDNS_SUSP_GENERIC, RDNS_SUSP, REPLYTO_FROM_DIFF_ADDY, MIME_TEXT_ONLY_MP_MIXED X-CTCH-Spam: Unknown Received: from [192.168.1.72] (86.177.101.35) by smtpout06.bt.lon5.cpcloud.co.uk (8.6.100.99.10161) (authenticated as jonturney@btinternet.com) id 526515D5000165D8; Mon, 21 Oct 2013 14:02:34 +0100 Message-ID: <526525E9.1070802@dronecode.org.uk> Date: Mon, 21 Oct 2013 13:02:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: mdl@alum.mit.edu Subject: Re: Problem trying to build Cygwin X server from source References: <52643CF3.2030304@dronecode.org.uk> <8738nv35zr.fsf@foil.strangled.net> In-Reply-To: <8738nv35zr.fsf@foil.strangled.net> Content-Type: multipart/mixed; boundary="------------040701040707040603040000" X-SW-Source: 2013-10/txt/msg00032.txt.bz2 --------------040701040707040603040000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-length: 6491 On 20/10/2013 23:57, Mark Lillibridge wrote: > Jon TURNEY writes: >> On 19/10/2013 20:54, Mark Lillibridge wrote: >> > >> > This is xserver-cygwin-1.14.3-1, the latest as of several weeks ago. >> > >> > The part that is failing (make done in >> > /usr/src/xorg-server-1.14.3-1/src/xserver-cygwin-1.14.3-1/hw/xwin/glx): >> > >> > CC wgl_ext_api.lo >> > In file included from wgl_ext_api.c:72:0: >> > generated_wgl_wrappers.c:79:1: error: unknown type name 'PFNWGLDXSETRESOURCESHAREHANDLENVPROC' >> > generated_wgl_wrappers.c:79:1: warning: initialization makes integer from pointer without a cast [enabled by default] >> > generated_wgl_wrappers.c:80:1: error: unknown type name 'PFNWGLDXOPENDEVICENVPROC' >> > generated_wgl_wrappers.c:80:1: warning: initialization makes integer from pointer without a cast [enabled by default] >> > generated_wgl_wrappers.c:81:1: error: unknown type name 'PFNWGLDXCLOSEDEVICENVPROC' >> > generated_wgl_wrappers.c:81:1: warning: initialization makes integer from pointer without a cast [enabled by default] >> > ... >> >> I think this is error is due to the khronos-opengl-registry package being more >> recent than the wglext.h provided by w32api-headers. >> >> I think the easiest way to work around this is to update wglext.h from >> http://www.opengl.org/registry/api/GL/wglext.h > > Hmmm. Which occurrence should I replace? > > mdl [103]# find /usr -name wglext.h -print > /usr/i686-w64-mingw32/sys-root/mingw/include/GL/wglext.h > /usr/include/GL/wglext.h > /usr/include/w32api/GL/wglext.h > /usr/x86_64-w64-mingw32/sys-root/mingw/include/GL/wglext.h > > mdl [112]# grep wglext * > wgl_ext_api.c:#include > wgl_ext_api.h:#include > > mdl [118]# grep usr/include * > Makefile:DBUS_CFLAGS = -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include > Makefile:DIX_CFLAGS = -DHAVE_DIX_CONFIG_H $(CWARNFLAGS) -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/pixman-1 -I/usr/include/freetype2 -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/Xext -I$(top_srcdir)/composite -I$(top_srcdir)/damageext -I$(top_srcdir)/xfixes -I$(top_srcdir)/Xi -I$(top_srcdir)/mi -I$(top_srcdir)/miext/sync -I$(top_srcdir)/miext/shadow -I$(top_srcdir)/miext/damage -I$(top_srcdir)/render -I$(top_srcdir)/randr -I$(top_srcdir)/fb -I$(top_srcdir)/dbe > Makefile:PIXMAN_CFLAGS = -I/usr/include/pixman-1 > Makefile:XSERVERCFLAGS_CFLAGS = -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/pixman-1 -I/usr/include/freetype2 > Makefile:XSERVERLIBS_CFLAGS = -I/usr/include/pixman-1 -I/usr/include/freetype2 > Makefile:oldincludedir = /usr/include > > mdl [119]# grep mingw/include * > > I'm guessing from the above that it's this one: > > /usr/include/GL/wglext.h Yes, I guess that's first in the include search path. Since w32api now provides a that header, we should probably stop providing it in libGL-devel. > I replaced that one and the code in > /usr/src/xorg-server-1.14.3-1/src/xserver-cygwin-1.14.3-1/hw/xwin/glx > now compiles. Unfortunately, code now fails elsewhere: > > cd /usr/src/xorg-server-1.14.3-1/src/xserver-cygwin-1.14.3-1/hw/xwin > make > > gives: > ... > make[2]: Leaving directory `/usr/src/xorg-server-1.14.3-1/src/xserver-cygwin-1.14.3-1/hw/xwin/winclipboard' > Making all in . > make[2]: Entering directory `/usr/src/xorg-server-1.14.3-1/src/xserver-cygwin-1.14.3-1/hw/xwin' > CC InitInput.o > CC InitOutput.o > InitOutput.c: In function ‘ddxGiveUp’: > InitOutput.c:240:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] > InitOutput.c: In function ‘winCheckMntOpt’: > InitOutput.c:284:16: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] > CC winallpriv.o > CC winauth.o > In file included from /usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../include/w32api/winsock2.h:56:0, > from /usr/include/X11/Xwinsock.h:55, > from /usr/include/X11/Xpoll.h:163, > from ../../os/osdep.h:85, > from winauth.c:39: > /usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../include/w32api/psdk_inc/_fd_types.h:100:2: warning: #warning "fd_set and associated macros have been defined in sys/types. This can cause runtime problems with W32 sockets" [-Wcpp] > In file included from /usr/include/X11/Xwinsock.h:55:0, > from /usr/include/X11/Xpoll.h:163, > from ../../os/osdep.h:85, > from winauth.c:39: > /usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../include/w32api/winsock2.h:995:34: error: conflicting types for ‘select’ > In file included from /usr/include/cygwin/sys_time.h:13:0, > from /usr/include/sys/time.h:61, > from /usr/include/sys/_default_fcntl.h:186, > from /usr/include/sys/fcntl.h:3, > from /usr/include/fcntl.h:14, > from /usr/include/X11/Xos.h:88, > from win.h:152, > from winauth.c:35: You will need to apply the attached change to /usr/include/Xpoll.h to fix xserver compilation with w32api-headers >= 3.0.0-1, which adds a new WIN32 define somewhere, which breaks this test. >> > Any suggestions? The online documentation is seriously out of date, >> > predating the use of cygport. >> >> Which documentation, specifically? > > Hmmm. You didn't just update the documentation on me did you? The > versions Google is giving me now are up-to-date. > > Page 9 of http://x.cygwin.com/docs/cg/cygwin-x-cg.pdf says: > > Tip: Use setup -q -Ppackagename,packagename,etc. to quickly install > the required packages. > > Darn if I could make this work no matter what I tried. Really, you > should just give the actual code here so people can cut-and-paste. > Ideally, you should also specify how to get the needed packages via the > setup GUI. It's not really the function of that document to tell people how to install packages on cygwin. I don't really want to put the package list there twice and have to keep both copies updated. If you're doing the package installation manually, you just find them (perhaps using the search function), and select them for installation. -- Jon TURNEY Volunteer Cygwin/X X Server maintainer --------------040701040707040603040000 Content-Type: text/plain; charset=windows-1252; name="0001-Fix-WIN32-check.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-Fix-WIN32-check.patch" Content-length: 1172 RnJvbSA1YzBjOGYwYTkwM2E2OTMxM2JiNDRiNTYxYmU1OTJlNmRiMmM2YzM4 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKb24gVFVSTkVZIDxq b24udHVybmV5QGRyb25lY29kZS5vcmcudWs+CkRhdGU6IEZyaSwgMjcgU2Vw IDIwMTMgMTQ6NDE6NTcgKzAxMDAKU3ViamVjdDogW1BBVENIIHByb3RvL3gx MXByb3RvXSBGaXggV0lOMzIgY2hlY2sKCkV2ZW4gaWYgV0lOMzIgaXMgZGVm aW5lZCAoYmVjYXVzZSB3ZSBoYXZlIGluY2x1ZGVkIHdpbmRvd3MuaCBzb21l d2hlcmUpLCB3ZSB3YW50CnRvIHVzZSB0aGUgVU5JWC1saWtlIHNlbGVjdCgp IGludGVyZmFjZSBvbiBDeWd3aW4KClRoaXMgc2VlbXMgdG8gYmUgbmVlZGVk IHRvIGNvbXBpbGUgeG9yZy1zZXJ2ZXIgd2l0aCBNaW5HVy13NjQgdzMyYXBp LWhlYWRlcnMKMy4wLjAsIHdoaWNoIGFkZCBhIG5ldyBXSU4zMiBkZWZpbmUg c29tZXdoZXJlLgoKU2lnbmVkLW9mZi1ieTogSm9uIFRVUk5FWSA8am9uLnR1 cm5leUBkcm9uZWNvZGUub3JnLnVrPgotLS0KIFhwb2xsLmguaW4gfCAyICst CiAxIGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRpb24oKyksIDEgZGVsZXRpb24o LSkKCmRpZmYgLS1naXQgYS9YcG9sbC5oLmluIGIvWHBvbGwuaC5pbgppbmRl eCA4Mjc1NjU4Li4wYTA1NDI0IDEwMDY0NAotLS0gYS9YcG9sbC5oLmluCisr KyBiL1hwb2xsLmguaW4KQEAgLTUwLDcgKzUwLDcgQEAgZnJvbSBUaGUgT3Bl biBHcm91cC4KICNpZm5kZWYgX1hQT0xMX0hfCiAjZGVmaW5lIF9YUE9MTF9I XwogCi0jaWZuZGVmIFdJTjMyCisjaWYgIWRlZmluZWQoV0lOMzIpIHx8IGRl ZmluZWQoX19DWUdXSU5fXykKIAogI2lmbmRlZiBVU0VfUE9MTAogCi0tIAox LjguMy40Cgo= --------------040701040707040603040000 Content-Type: text/plain; charset=us-ascii Content-length: 223 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ --------------040701040707040603040000--