Re: Make error when compiling xserver-cygwin-1.14.1-1

2013-06-20 Thread Jon TURNEY
On 16/06/2013 15:25, Jon TURNEY wrote:
 On 16/06/2013 13:37, Matt D. wrote:
 /usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:467:
  undefined reference to `_wglSwapIntervalEXTWrapper'
 
 These undefined references are a bit mysterious. These wgl*Wrapper functions
 should by defined in the generated_wgl_wrappers.c generated file.

Ah, this is probably due to needing python to generate these files, despite
not having an autoconf check for that.  I've added one.

 Yes, I do. On that note, the prerequisites are missing:

 libpixman1-devel
 libx11-devel
 libgl-devel
 libxkbfile-devel
 libxcb-image-devel
 lib-icccm-devel

 (detected during configure)

 and

 glapi-devel

 (detected at compile-time)
 
 Thanks for the list. I'll update the documentation appropriately.

I've added libglapi-devel, libxcb-icccm-devel and libxcb-image-devel.

The others seem to be already on that page.

They may not be getting installed by the setup invocation you give, I think
package name is case sensitive, and setup doesn't diagnose attempts to install
non-existent packages.

 There is also no sanity check for flex, although it is listed as a 
 prerequisite.
 
 Ok.  I guess I need to add one then :-)

We already have a AC_PROG_LEX check.

Unfortunately, even with this autoconf assumes that lex will not actually be
needed to build as lex generated files will be shipped in the tarball made by
'make dist', and no error is reported if it isn't found.

Also unfortunately, the xserver tarball included in the source package
violates this assumption as it is generated by cygport directly from a git
tag, not using 'make dist', so doesn't include these generated files.

I've made a change so that the configure script in the xserver tarball
included in the source package will now require lex and yacc to be found.

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

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



Re: Re: Make error when compiling xserver-cygwin-1.14.1-1

2013-06-16 Thread Matt D.
It seemed I had everything but flex. I downloaded that and 
double-checked all of the dependencies. Everything compiles now but I'm 
getting a linking error.


I am using a CLEAN install of cygwin with the following packages:

setup -P 
cygwin,autoconf,automake,binutils,bison,bzip2,cygport,diffutils,fileutils,findutils,flex,gawk,gcc,git,libtool,make,patch,pkg-config,sed,tar,w32api,dri-drivers,libbz2_1,libfontenc1,libfreetype6,libgcc1,libGL1,libpixman1_0,libX11_6,libXau6,libXdmcp6,libXext6,xauth,xcursor-themes,xkbcomp,xkeyboard-config,zlib0,libdmx1,libXaw7,libXfixes3,libXi6,libXmu6,libXmuu1,libXrender1,libXt6,bigreqsproto,compositeproto,damageproto,dmxproto,fixesproto,font-util,fontsproto,glproto,inputproto,kbproto,libXfont-devel,randrproto,recordproto,renderproto,resourceproto,scrnsaverproto,windowswmproto,xcmiscproto,xextproto,xf86bigfontproto,xineramaproto,xorg-util-macros,xproto,xtrans,khronos-opengl-registry,libpixman1-devel,libx11-devel,libgl-devel,libxkbfile-devel,libxcb-image-devel,lib-icccm-devel,glapi-devel


Prepping, generating, and configuring:

cygport xorg-server.cygport prep
autogen.sh -V
configure

And on make I get the attached linker error. I've tried cleaning and 
redownloading twice now.


 I think now might be an appropriate time to ask if you have all the
 prerequisites listed in [1]?

Yes, I do. On that note, the prerequisites are missing:

libpixman1-devel
libx11-devel
libgl-devel
libxkbfile-devel
libxcb-image-devel
lib-icccm-devel

(detected during configure)

and

glapi-devel

(detected at compile-time)

There is also no sanity check for flex, although it is listed as a 
prerequisite.


/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: 
cannot find entry symbol rrwarn=E_BAD_PTR_
INT_COMBINATION; defaulting to 00401000
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`glxWinScreenSwapInterval':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:467:
 undefined reference to `_wglSwapIn
tervalEXTWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`glxWinDrawableDestroy':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:932:
 undefined reference to `_wglDestro
yPbufferARBWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function `glxWinReleaseDC':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1242:
 undefined reference to `_wglRelea
sePbufferDCARBWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`glxWinCreateContext':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1624:
 undefined reference to `_glWinSet
upDispatchTable'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`fbConfigToPixelFormatIndex':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1803:
 undefined reference to `_wglChoos
ePixelFormatARBWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function `glxWinMakeDC':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1204:
 undefined reference to `_wglGetPb
ufferDCARBWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`glxWinContextMakeCurrent':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1497:
 undefined reference to `_wglMakeC
ontextCurrentARBWrapper'
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1328:
 undefined reference to `_wglCreat
ePbufferARBWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`glxWinScreenProbe':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:596:
 undefined reference to `_wglResolv
eExtensionProcs'
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:603:
 undefined reference to `_wglGetExt
ensionsStringARBWrapper'
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:2087:
 undefined reference to `_wglGetPi
xelFormatAttribivARBWrapper'
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:2171:
 undefined reference to `_wglGetPi
xelFormatAttribivARBWrapper'
../../glx/.libs/libglx.a(glxcmds.o): In function `FlushContext':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/glx/dispatch.h:5827: 
undefined reference to `__glapi_tls_Dispa
tch'
../../glx/.libs/libglx.a(glxcmds.o): In function `DoMakeCurrent':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/glx/dispatch.h:5827: 
undefined reference to `__glapi_tls_Dispa
tch'
../../glx/.libs/libglx.a(glxcmds.o): In function `__glXDisp_WaitGL':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/glx/dispatch.h:5811: 
undefined reference to `__glapi_tls_Dispa
tch'
../../glx/.libs/libglx.a(glxcmds.o): In function `__glXDisp_CopyContext':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/glx/dispatch.h:5811: 
undefined reference to 

Re: Make error when compiling xserver-cygwin-1.14.1-1

2013-06-16 Thread Jon TURNEY
On 16/06/2013 13:37, Matt D. wrote:
 It seemed I had everything but flex. I downloaded that and double-checked all
 of the dependencies. Everything compiles now but I'm getting a linking error.

 Prepping, generating, and configuring:
 
 cygport xorg-server.cygport prep
 autogen.sh -V
 configure
 
 And on make I get the attached linker error. I've tried cleaning and
 redownloading twice now.

Ah.  I think that page is in need of an update.

It probably would be better if it told you to use 'cygport xorg-server.cygport
compile' to configure and build, as then the configuration would match the one
used to build packages, which is known to work.

 /usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/glx/dispatch.h:5827:
  undefined reference to `__glapi_tls_Dispatch'

The undefined references to `__glapi_tls_Dispatch' should be fixed by
configuring with --disable-glx-tls [1]

 /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: 
 cannot find entry symbol rrwarn=E_BAD_PTR_INT_COMBINATION; defaulting to 
 00401000

No idea about this.  You should probably be using gcc4, though.

 /usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:467:
  undefined reference to `_wglSwapIntervalEXTWrapper'

These undefined references are a bit mysterious. These wgl*Wrapper functions
should by defined in the generated_wgl_wrappers.c generated file.

 I think now might be an appropriate time to ask if you have all the
 prerequisites listed in [1]?
 
 Yes, I do. On that note, the prerequisites are missing:
 
 libpixman1-devel
 libx11-devel
 libgl-devel
 libxkbfile-devel
 libxcb-image-devel
 lib-icccm-devel
 
 (detected during configure)
 
 and
 
 glapi-devel
 
 (detected at compile-time)

Thanks for the list. I'll update the documentation appropriately.

 There is also no sanity check for flex, although it is listed as a 
 prerequisite.

Ok.  I guess I need to add one then :-)

[1] http://cygwin.com/ml/cygwin-xfree/2011-10/msg00065.html

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

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



Re: Make error when compiling xserver-cygwin-1.14.1-1

2013-06-15 Thread Jon TURNEY
On 15/06/2013 19:20, Matt D. wrote:
 Can anyone advise me on how to proceed? I've managed to install all of the
 necessary dependencies but I'm getting an error from make while compiling
 xserver-cygwin.

 Here is the error:
 
   LEX  winprefslex.c
   CC   winprefslex.o
 gcc: winprefslex.c: No such file or directory
 gcc: no input files

I can only offer the observation that the file that gcc is failing to compile
because it doesn't exist is supposed to have been made by flex on the line 
above.

You might like to try using 'make V=1' to see how flex is being invoked, and
then try that manually to try to work out why it's not making any output...

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

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



Re: Make error when compiling xserver-cygwin-1.14.1-1

2013-06-15 Thread Matt D.

The error appears to be here:

/bin/sh ../../ylwrap winprefslex.l .c winprefslex.c

'winprefslex.c' is not created but ylwrap is not returning an error. 
This is unfamiliar territory for me but I'll see what I can do.


Off the top of your head, is there a way to slim this down to remove 
ylwrap? Maybe it will throw something helpful.


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



Re: Make error when compiling xserver-cygwin-1.14.1-1

2013-06-15 Thread Jon TURNEY
On 15/06/2013 23:06, Matt D. wrote:
 The error appears to be here:
 
 /bin/sh ../../ylwrap winprefslex.l .c winprefslex.c
 
 'winprefslex.c' is not created but ylwrap is not returning an error. This is
 unfamiliar territory for me but I'll see what I can do.
 
 Off the top of your head, is there a way to slim this down to remove ylwrap?
 Maybe it will throw something helpful.

That doesn't look right.  I have:

/bin/sh ../../ylwrap winprefslex.l lex.yy.c winprefslex.c -- flex -i

$ ./ylwrap  --help
Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...

So, it looks like maybe something has gone wrong in the autofoolery as it
hasn't found the name of your lex successfully, but has still configured.

I think now might be an appropriate time to ask if you have all the
prerequisites listed in [1]?

http://x.cygwin.com/docs/cg/prog-build-prerequisites.html

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

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