From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22318 invoked by alias); 20 Oct 2013 22:58:14 -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 22303 invoked by uid 89); 20 Oct 2013 22:58:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_PASS,T_FRT_PACKAGE autolearn=ham version=3.3.2 X-HELO: alum-mailsec-scanner-1.mit.edu Received: from alum-mailsec-scanner-1.mit.edu (HELO alum-mailsec-scanner-1.mit.edu) (18.7.68.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 20 Oct 2013 22:58:10 +0000 Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) by alum-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP id A8.46.17010.00064625; Sun, 20 Oct 2013 18:58:08 -0400 (EDT) Received: from foil.strangled.net (c-67-188-232-141.hsd1.ca.comcast.net [67.188.232.141]) (authenticated bits=0) (User authenticated as mdl@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id r9KMw6DT009163 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 20 Oct 2013 18:58:07 -0400 From: Mark Lillibridge To: cygwin-xfree Subject: Re: Problem trying to build Cygwin X server from source In-Reply-To: <52643CF3.2030304@dronecode.org.uk> (message from Jon TURNEY on Sun, 20 Oct 2013 21:28:35 +0100) Reply-to: mdl@alum.mit.edu Date: Sun, 20 Oct 2013 22:58:00 -0000 Message-ID: <8738nv35zr.fsf@foil.strangled.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2013-10/txt/msg00030.txt.bz2 Jon TURNEY writes: > On 19/10/2013 20:54, Mark Lillibridge wrote: > >=20 > > This is xserver-cygwin-1.14.3-1, the latest as of several weeks ag= o. > >=20 > > 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): > >=20 > > 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 'PFNWGLDXSETRE= SOURCESHAREHANDLENVPROC' > > generated_wgl_wrappers.c:79:1: warning: initialization makes integer f= rom pointer without a cast [enabled by default] > > generated_wgl_wrappers.c:80:1: error: unknown type name 'PFNWGLDXOPEND= EVICENVPROC' > > generated_wgl_wrappers.c:80:1: warning: initialization makes integer f= rom pointer without a cast [enabled by default] > > generated_wgl_wrappers.c:81:1: error: unknown type name 'PFNWGLDXCLOSE= DEVICENVPROC' > > generated_wgl_wrappers.c:81:1: warning: initialization makes integer f= rom pointer without a cast [enabled by default] > > ... >=20=20 > I think this is error is due to the khronos-opengl-registry package bein= g more > recent than the wglext.h provided by w32api-headers. >=20=20 > 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 =20=20=20=20 mdl [112]# grep wglext * wgl_ext_api.c:#include wgl_ext_api.h:#include =20=20=20=20 mdl [118]# grep usr/include * Makefile:DBUS_CFLAGS =3D -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/in= clude=20=20 Makefile:DIX_CFLAGS =3D -DHAVE_DIX_CONFIG_H $(CWARNFLAGS) -fno-strict-a= liasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/pixm= an-1 -I/usr/include/freetype2 -I$(top_srcdir)/include -I$(top_builddir)/i= nclude -I$(top_srcdir)/Xext -I$(top_srcdir)/composite -I$(top_srcdir)/damag= eext -I$(top_srcdir)/xfixes -I$(top_srcdir)/Xi -I$(top_srcdir)/mi -I$(top_s= rcdir)/miext/sync -I$(top_srcdir)/miext/shadow -I$(top_srcdir)/miext/damag= e -I$(top_srcdir)/render -I$(top_srcdir)/randr -I$(top_srcdir)/fb -I$(top_s= rcdir)/dbe Makefile:PIXMAN_CFLAGS =3D -I/usr/include/pixman-1=20=20 Makefile:XSERVERCFLAGS_CFLAGS =3D -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STIC= KY_DIR_BIT -I/usr/include/pixman-1 -I/usr/include/freetype2=20=20 Makefile:XSERVERLIBS_CFLAGS =3D -I/usr/include/pixman-1 -I/usr/include/= freetype2=20=20 Makefile:oldincludedir =3D /usr/include =20=20=20=20 mdl [119]# grep mingw/include * I'm guessing from the above that it's this one: /usr/include/GL/wglext.h 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-cygwi= n-1.14.3-1/hw/xwin/winclipboard' Making all in . make[2]: Entering directory `/usr/src/xorg-server-1.14.3-1/src/xserver-cygw= in-1.14.3-1/hw/xwin' CC InitInput.o CC InitOutput.o InitOutput.c: In function =E2=80=98ddxGiveUp=E2=80=99: InitOutput.c:240:9: warning: ISO C90 forbids mixed declarations and code [-= Wdeclaration-after-statement] InitOutput.c: In function =E2=80=98winCheckMntOpt=E2=80=99: InitOutput.c:284:16: warning: cast discards =E2=80=98__attribute__((const))= =E2=80=99 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_t= ypes.h:100:2: warning: #warning "fd_set and associated macros have been def= ined 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 =E2=80=98select=E2=80=99 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: /usr/include/sys/select.h:31:5: note: previous declaration of =E2=80=98sele= ct=E2=80=99 was here 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:100= 4:34: error: conflicting types for =E2=80=98gethostname=E2=80=99 In file included from /usr/include/unistd.h:4:0, from /usr/include/X11/Xos.h:89, from win.h:152, from winauth.c:35: /usr/include/sys/unistd.h:238:6: note: previous declaration of =E2=80=98get= hostname=E2=80=99 was here winauth.c: In function =E2=80=98winGenerateAuthorization=E2=80=99: winauth.c:132:38: warning: passing argument 2 of =E2=80=98GenerateAuthoriza= tion=E2=80=99 discards =E2=80=98const=E2=80=99 qualifier from pointer targe= t type [enabled by default] winauth.c:108:1: note: expected =E2=80=98char *=E2=80=99 but argument is of= type =E2=80=98const char *=E2=80=99 winauth.c: In function =E2=80=98winSetAuthorization=E2=80=99: winauth.c:189:23: warning: passing argument 1 of =E2=80=98XSetAuthorization= =E2=80=99 discards =E2=80=98const=E2=80=99 qualifier from pointer target ty= pe [enabled by default] winauth.c:42:13: note: expected =E2=80=98char *=E2=80=99 but argument is of= type =E2=80=98const char *=E2=80=99 Makefile:966: recipe for target `winauth.o' failed make[2]: *** [winauth.o] Error 1 make[2]: Leaving directory `/usr/src/xorg-server-1.14.3-1/src/xserver-cygwi= n-1.14.3-1/hw/xwin' Makefile:1082: recipe for target `all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/xorg-server-1.14.3-1/src/xserver-cygwi= n-1.14.3-1/hw/xwin' Makefile:805: recipe for target `all' failed make: *** [all] Error 2 > > Any suggestions? The online documentation is seriously out of dat= e, > > predating the use of cygport. >=20=20 > 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. - Mark -- 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/