public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Re: Make error when compiling xserver-cygwin-1.14.1-1
@ 2013-06-15 22:07 Matt D.
  2013-06-15 22:48 ` Jon TURNEY
  0 siblings, 1 reply; 7+ messages in thread
From: Matt D. @ 2013-06-15 22:07 UTC (permalink / raw)
  To: cygwin-xfree

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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Make error when compiling xserver-cygwin-1.14.1-1
  2013-06-15 22:07 Make error when compiling xserver-cygwin-1.14.1-1 Matt D.
@ 2013-06-15 22:48 ` Jon TURNEY
  2013-06-16 12:37   ` Matt D.
  0 siblings, 1 reply; 7+ messages in thread
From: Jon TURNEY @ 2013-06-15 22:48 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: matt

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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: Make error when compiling xserver-cygwin-1.14.1-1
  2013-06-15 22:48 ` Jon TURNEY
@ 2013-06-16 12:37   ` Matt D.
  2013-06-16 14:25     ` Jon TURNEY
  0 siblings, 1 reply; 7+ messages in thread
From: Matt D. @ 2013-06-16 12:37 UTC (permalink / raw)
  To: cygwin-xfree

[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]

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.


[-- Attachment #2: link.txt --]
[-- Type: text/plain, Size: 3803 bytes --]

/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 `__glapi_tls_Dispa
tch'
../../glx/.libs/libglx.a(glxcmds.o): In function `__glXDisp_SwapBuffers':
/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):/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/glx/dispatch.h:5811: more
undefined references to `__glapi_tls_Dispatch' follow
collect2: ld returned 1 exit status

[-- Attachment #3: Type: text/plain, Size: 223 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Make error when compiling xserver-cygwin-1.14.1-1
  2013-06-16 12:37   ` Matt D.
@ 2013-06-16 14:25     ` Jon TURNEY
  2013-06-20 19:53       ` Jon TURNEY
  0 siblings, 1 reply; 7+ messages in thread
From: Jon TURNEY @ 2013-06-16 14:25 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: matt

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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Make error when compiling xserver-cygwin-1.14.1-1
  2013-06-16 14:25     ` Jon TURNEY
@ 2013-06-20 19:53       ` Jon TURNEY
  0 siblings, 0 replies; 7+ messages in thread
From: Jon TURNEY @ 2013-06-20 19:53 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: matt

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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Make error when compiling xserver-cygwin-1.14.1-1
  2013-06-15 18:21 Matt D.
@ 2013-06-15 21:36 ` Jon TURNEY
  0 siblings, 0 replies; 7+ messages in thread
From: Jon TURNEY @ 2013-06-15 21:36 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: matt

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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Make error when compiling xserver-cygwin-1.14.1-1
@ 2013-06-15 18:21 Matt D.
  2013-06-15 21:36 ` Jon TURNEY
  0 siblings, 1 reply; 7+ messages in thread
From: Matt D. @ 2013-06-15 18:21 UTC (permalink / raw)
  To: cygwin-xfree

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.

I've deleted the source directory and redone the autoconf, configure, 
and make twice now without success.

Here is the error:

winprefsyacc.y: In function ‘yyparse’:
winprefsyacc.y:213:5: warning: passing argument 1 of ‘AddMenuLine’ 
discards qualifiers from pointer target type
winprefsyacc.y:76:13: note: expected ‘char *’ but argument is of type 
‘const char *’
winprefsyacc.y:213:5: warning: passing argument 3 of ‘AddMenuLine’ 
discards qualifiers from pointer target type
winprefsyacc.y:76:13: note: expected ‘char *’ but argument is of type 
‘const char *’
winprefsyacc.y:214:5: warning: passing argument 3 of ‘AddMenuLine’ 
discards qualifiers from pointer target type
winprefsyacc.y:76:13: note: expected ‘char *’ but argument is of type 
‘const char *’
winprefsyacc.y:217:5: warning: passing argument 3 of ‘AddMenuLine’ 
discards qualifiers from pointer target type
winprefsyacc.y:76:13: note: expected ‘char *’ but argument is of type 
‘const char *’
winprefsyacc.c:1973:9: warning: passing argument 1 of ‘yyerror’ discards 
qualifiers from pointer target type
winprefsyacc.y:91:12: note: expected ‘char *’ but argument is of type 
‘const char *’
winprefsyacc.c:2090:3: warning: passing argument 1 of ‘yyerror’ discards 
qualifiers from pointer target type
winprefsyacc.y:91:12: note: expected ‘char *’ but argument is of type 
‘const char *’
winprefsyacc.y: In function ‘yyerror’:
winprefsyacc.y:296:3: warning: nested extern declaration of ‘yylineno’
   LEX      winprefslex.c
   CC       winprefslex.o
gcc: winprefslex.c: No such file or directory
gcc: no input files
Makefile:925: recipe for target `winprefslex.o' failed
make[4]: *** [winprefslex.o] Error 1
make[4]: Leaving directory 
`/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin'
Makefile:1041: recipe for target `all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin'
Makefile:764: recipe for target `all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin'
Makefile:518: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw'
Makefile:676: recipe for target `all-recursive' failed
make: *** [all-recursive] Error 1



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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-20 19:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-15 22:07 Make error when compiling xserver-cygwin-1.14.1-1 Matt D.
2013-06-15 22:48 ` Jon TURNEY
2013-06-16 12:37   ` Matt D.
2013-06-16 14:25     ` Jon TURNEY
2013-06-20 19:53       ` Jon TURNEY
  -- strict thread matches above, loose matches on Subject: below --
2013-06-15 18:21 Matt D.
2013-06-15 21:36 ` Jon TURNEY

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).