public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Mark Lillibridge <mdl@alum.mit.edu>
To: cygwin-xfree <cygwin-xfree@cygwin.com>
Subject: Re: Problem trying to build Cygwin X server from source
Date: Sun, 20 Oct 2013 22:58:00 -0000	[thread overview]
Message-ID: <8738nv35zr.fsf@foil.strangled.net> (raw)
In-Reply-To: <52643CF3.2030304@dronecode.org.uk> (message from Jon TURNEY on Sun, 20 Oct 2013 21:28:35 +0100)


Jon TURNEY <jon.turney@dronecode.org.uk> 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 <GL/wglext.h>
    wgl_ext_api.h:#include <GL/wglext.h>
    
    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

    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:
/usr/include/sys/select.h:31:5: note: previous declaration of ‘select’ 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:1004:34: error: conflicting types for ‘gethostname’
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 ‘gethostname’ was here
winauth.c: In function ‘winGenerateAuthorization’:
winauth.c:132:38: warning: passing argument 2 of ‘GenerateAuthorization’ discards ‘const’ qualifier from pointer target type [enabled by default]
winauth.c:108:1: note: expected ‘char *’ but argument is of type ‘const char *’
winauth.c: In function ‘winSetAuthorization’:
winauth.c:189:23: warning: passing argument 1 of ‘XSetAuthorization’ discards ‘const’ qualifier from pointer target type [enabled by default]
winauth.c:42:13: note: expected ‘char *’ but argument is of type ‘const char *’
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-cygwin-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-cygwin-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 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.

- 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/


  reply	other threads:[~2013-10-20 22:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-19 19:54 Mark Lillibridge
2013-10-20 20:28 ` Jon TURNEY
2013-10-20 22:58   ` Mark Lillibridge [this message]
2013-10-21 13:02     ` Jon TURNEY
2013-10-27  0:27       ` Mark Lillibridge
2013-10-28 14:48         ` Jon TURNEY
2013-11-02 17:48           ` Mark Lillibridge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8738nv35zr.fsf@foil.strangled.net \
    --to=mdl@alum.mit.edu \
    --cc=cygwin-xfree@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).