When I compiled xserver with branch randr-1.2, I met following error: ------------------------------------ In file included from mirandr.c:34: randrstr.h:64: error: 'RRNumberRequests' undeclared here (not in a function) randrstr.h:79: error: syntax error before 'xRRModeInfo' randrstr.h:79: warning: no semicolon at end of struct or union randrstr.h:84: error: syntax error before '}' token randrstr.h:399: error: syntax error before '*' token randrstr.h:399: warning: function declaration isn't a prototype randrstr.h:558: error: syntax error before 'xRRModeInfo' randrstr.h:559: warning: function declaration isn't a prototype mirandr.c: In function 'miRandRInit': mirandr.c:77: error: 'xRRModeInfo' undeclared (first use in this function) mirandr.c:77: error: (Each undeclared identifier is reported only once mirandr.c:77: error: for each function it appears in.) mirandr.c:77: error: syntax error before 'modeInfo' mirandr.c:87: error: 'miRRCrtcSetGamma' undeclared (first use in this function) mirandr.c:91: error: 'miRROutput' undeclared (first use in this function) mirandr.c:91: error: syntax error before 'RRScreenSetSizeRange' mirandr.c:96: error: 'modeInfo' undeclared (first use in this function) mirandr.c:124: error: 'RR_Connected' undeclared (first use in this function) make[1]: *** [mirandr.lo] error 1 -------------------------------------------------------
randr-1.2 branch requires new randr proto bits.
I have recompiled randrproto with branch multi-monitor. Do the new randr proto bits locate in this branch? After compiled randrproto, I compiled xserver, it still reported following error: --------------------------------- mirandr.c: In function 'miRandRInit': mirandr.c:87: error: 'miRRCrtcSetGamma' undeclared (first use in this function) mirandr.c:87: error: (Each undeclared identifier is reported only once mirandr.c:87: error: for each function it appears in.) mirandr.c:91: error: 'miRROutput' undeclared (first use in this function) mirandr.c:91: error: syntax error before 'RRScreenSetSizeRange' make[1]: *** [mirandr.lo] erro 1 -----------------------------------------------------
Besides two function undeclared: mirandr.c:87:'miRRCrtcSetGamma' and mirandr.c:91:'miRROutput', I found two syntax error on mirandr.c:88 and rrcrtc.c:284.
yeah, oops, I pushed garbage. I've pulled up to master and pushed code that at least works now.
When I compile xserver with master branch, it is OK. But when I compile with randr-1.2 branch, it report below error: ----------------------------- make[3]: Entering directory `/opt/gfx-source/build/component/Xorg/xorg/xserver/hw/vfb' if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS -g -O2 -MT InitInput.o -MD -MP -MF ".deps/InitInput.Tpo" -c -o InitInput.o InitInput.c; \ then mv -f ".deps/InitInput.Tpo" ".deps/InitInput.Po"; else rm -f ".deps/InitInput.Tpo"; exit 1; fi InitInput.c:35:16: error: mi.h: No that file or directory InitInput.c:40:22: error: mibstore.h: No that file or directory InitInput.c:41:23: error: mipointer.h: No that file or directory InitInput.c: In function‘vfbMouseProc’ : InitInput.c:295: Error: ‘miPointerGetMotionEvents’ not declaration make[3]: *** [InitInput.o] Error 1 make[3]: Leaving directory `/opt/gfx-source/build/component/Xorg/xorg/xserver/hw/vfb' make[2]: *** [all] Error 2
I have compiled xserver in anthor machine, the error is the same. I checked the Makefile in xserver/hw/vfb after Makefile had generated, it is different with which generated in master branch. Between this two Makefile, some compilation flags is different. If replace Makefile in xserver/hw/vfb with which generated in master branch, compilation can continue. But it will stop in another xserver/hw/*** directory.
Now when I compile xserver, it reports error as below: -------------------------- make[3]: Entering directory `/GFX/build/component/Xserver/xserver/hw/dmx/input' if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../include -I../../../hw/dmx -I../../../hw/xfree86/common -I/GFX/build/component/Mesa/mesa/include -DHAVE_DMX_CONFIG_H -I/opt/X11R7/include -I/opt/X11R7/include -g -O2 -MT ChkNotMaskEv.o -MD -MP -MF ".deps/ChkNotMaskEv.Tpo" -c -o ChkNotMaskEv.o ChkNotMaskEv.c; \ then mv -f ".deps/ChkNotMaskEv.Tpo" ".deps/ChkNotMaskEv.Po"; else rm -f ".deps/ChkNotMaskEv.Tpo"; exit 1; fi In file included from ChkNotMaskEv.c:63: ../../../hw/dmx/dmx.h:67:24: error: picturestr.h: No such file or directory In file included from ChkNotMaskEv.c:63: ../../../hw/dmx/dmx.h:242: error: expected specifier-qualifier-list beforereatePictureProcPtr' make[3]: *** [ChkNotMaskEv.o] Error 1 make[3]: Leaving directory `/GFX/build/component/Xserver/xserver/hw/dmx/input' make[2]: *** [all-recursive] Error 1 --------------------------------------------------- In the gcc command line, it don't include the path of head file: picturestr.h. It seems that this error is similar with the old error.
When we compiled xserver with branch master, we met error when compiled to hw/dmx directory. So the error I met when compiled branch randr-1.2 may be the xserver code's error, not branch randr-1.2.
When disable dmx, dbus and xprint, I compiled randr-1.2 successfully. *** This bug has been marked as a duplicate of 8868 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.