How to build Xephyr from source on Lucid-10.04.1LTS?

Asked by dave m.

I'm trying to build Xephyr from sources so I can add the "-geometry" hack discussed here & there. I've loaded the Ubuntu sources & patches, and also tried stock Xorg sources, but the build in the Xephyr directory always fails with missing/broken includes and undefined structures. It's not just one or two problems; almost every file in hw/kdrive/ephyr fails to compile, so I'm guessing I'm missing a ./configure option or something. Any help to resolve?

root@vheissu:/var/tmp/xorg-server-1.7.6.902/hw/kdrive/ephyr# make
  CC ephyrvideo.o
ephyrvideo.c:35:20: error: kdrive.h: No such file or directory
ephyrvideo.c:36:17: error: kxv.h: No such file or directory
In file included from ../../../include/regionstr.h:53,
                 from ../../../include/scrnintstr.h:52,
                 from ../../../exa/exa.h:34,
                 from ephyr.h:36,
                 from ephyrvideo.c:37:
../../../include/miscstruct.h:53:20: error: pixman.h: No such file or directory
In file included from ../../../include/scrnintstr.h:58,
                 from ../../../exa/exa.h:34,
                 from ephyr.h:36,
                 from ephyrvideo.c:37:
../../../include/dix.h:55:19: error: geext.h: No such file or directory
In file included from ../../../exa/exa.h:36,
                 from ephyr.h:36,
                 from ephyrvideo.c:37:
../../../include/windowstr.h:137: error: field ‘clipList’ has incomplete type
../../../include/windowstr.h:138: error: field ‘borderClip’ has incomplete type
../../../include/windowstr.h:140: error: field ‘winSize’ has incomplete type
../../../include/windowstr.h:141: error: field ‘borderSize’ has incomplete type
In file included from ephyr.h:36,
                 from ephyrvideo.c:37:
../../../exa/exa.h:38:24: error: picturestr.h: No such file or directory
../../../exa/exa.h:39:16: error: fb.h: No such file or directory
In file included from ephyr.h:36,
                 from ephyrvideo.c:37:
../../../exa/exa.h:350: error: expected declaration specifiers or ‘...’ before ‘PicturePtr’
../../../exa/exa.h:351: error: expected declaration specifiers or ‘...’ before ‘PicturePtr’
../../../exa/exa.h:352: error: expected declaration specifiers or ‘...’ before ‘PicturePtr’
../../../exa/exa.h:409: error: expected declaration specifiers or ‘...’ before ‘PicturePtr’
../../../exa/exa.h:410: error: expected declaration specifiers or ‘...’ before ‘PicturePtr’
../../../exa/exa.h:411: error: expected declaration specifiers or ‘...’ before ‘PicturePtr’
VPriv’ has no member named ‘adaptors’
ephyrvideo.c:554: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:554: error: ‘KdImagePtr’ undeclared (first use in this function)
ephyrvideo.c:554: error: expected ‘;’ before ‘image_formats’
ephyrvideo.c:555: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
In file included from ephyrvideo.c:37:
ephyr.h:39:22: error: randrstr.h: No such file or directory
ephyr.h:42:20: error: damage.h: No such file or directory
In file included from ephyrvideo.c:37:
ephyr.h:57: error: expected specifier-qualifier-list before ‘PicturePtr’
ephyr.h:64: error: expected specifier-qualifier-list before ‘Rotation’
ephyr.h:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ephyrFuncs’
ephyr.h:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ephyr.h:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
ephyr.h:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ephyrPointerScreenFuncs’
ephyr.h:78: error: expected ‘)’ before ‘*’ token
ephyr.h:81: error: expected ‘)’ before ‘*’ token
ephyr.h:84: error: expected ‘)’ before ‘*’ token
ephyr.h:87: error: expected ‘)’ before ‘*’ token
ephyr.h:99: error: expected ‘)’ before ‘*’ token
ephyr.h:111: error: expected ‘)’ before ‘*’ token
ephyr.h:114: error: expected ‘)’ before ‘*’ token
ephyr.h:117: error: expected ‘)’ before ‘*’ token
ephyr.h:126: error: expected ‘)’ before ‘*’ token
ephyr.h:140: error: expected ‘)’ before ‘*’ token
ephyr.h:156: error: expected declaration specifiers or ‘...’ before ‘Rotation’
ephyr.h:160: error: expected declaration specifiers or ‘...’ before ‘Rotation’
ephyr.h:162: error: expected declaration specifiers or ‘...’ before ‘RRScreenSizePtr’
ephyr.h:167: error: expected declaration specifiers or ‘...’ before ‘shadowBufPtr’
ephyr.h:174: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EphyrMouseDriver’
ephyr.h:176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EphyrKeyboardDriver’
ephyr.h:178: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EphyrOsFuncs’
ephyrvideo.c:43: error: expected specifier-qualifier-list before ‘KdVideoAdaptorPtr’
ephyrvideo.c:50: error: expected specifier-qualifier-list before ‘KdVideoAdaptorPtr’
ephyrvideo.c:78: error: expected ‘)’ before ‘a_attrs’
ephyrvideo.c:94: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:98: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:103: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:108: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:118: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:136: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:143: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:152: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:161: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:170: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:179: error: expected ‘)’ before ‘*’ token
ephyrvideo.c: In function ‘DoSimpleClip’:
ephyrvideo.c:196: error: storage size of ‘dstClippedBox’ isn’t known
ephyrvideo.c:203: error: dereferencing pointer to incomplete type
ephyrvideo.c:204: error: dereferencing pointer to incomplete type
ephyrvideo.c:205: error: dereferencing pointer to incomplete type
ephyrvideo.c:206: error: dereferencing pointer to incomplete type
ephyrvideo.c:213: error: dereferencing pointer to incomplete type
ephyrvideo.c:214: error: dereferencing pointer to incomplete type
ephyrvideo.c:221: error: dereferencing pointer to incomplete type
ephyrvideo.c:222: error: dereferencing pointer to incomplete type
ephyrvideo.c:225: error: dereferencing pointer to incomplete type
ephyrvideo.c:226: error: dereferencing pointer to incomplete type
ephyrvideo.c:229: error: dereferencing pointer to incomplete type
ephyrvideo.c:230: error: dereferencing pointer to incomplete type
ephyrvideo.c: In function ‘ephyrInitVideo’:
ephyrvideo.c:300: error: ‘KdScreenInfo’ undeclared (first use in this function)
ephyrvideo.c:300: error: (Each undeclared identifier is reported only once
ephyrvideo.c:300: error: for each function it appears in.)
ephyrvideo.c:300: error: ‘screen’ undeclared (first use in this function)
ephyrvideo.c:300: error: ‘pScreenPriv’ undeclared (first use in this function)
ephyrvideo.c: In function ‘ephyrXVPrivDelete’:
ephyrvideo.c:374: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:375: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:376: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c: At top level:
ephyrvideo.c:383: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘videoEncodingDup’
ephyrvideo.c:404: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘portAttributesDup’
ephyrvideo.c: In function ‘ephyrXVPrivQueryHostAdaptors’:
ephyrvideo.c:449: error: ‘EphyrXVPriv’ has no member named ‘num_adaptors’
ephyrvideo.c:451: error: ‘EphyrXVPriv’ has no member named ‘num_adaptors’
ephyrvideo.c:459: error: ‘EphyrXVPriv’ has no member named ‘num_adaptors’
ephyrvideo.c:460: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:460: error: ‘EphyrXVPriv’ has no member named ‘num_adaptors’
ephyrvideo.c:460: error: ‘KdVideoAdaptorRec’ undeclared (first use in this function)
ephyrvideo.c:462: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:467: error: ‘EphyrXVPriv’ has no member named ‘num_adaptors’
ephyrvideo.c:473: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:475: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:479: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:481: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:482: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:483: error: ‘VIDEO_OVERLAID_IMAGES’ undeclared (first use in this function)
ephyrvideo.c:483: error: ‘VIDEO_CLIP_TO_VIEWPORT’ undeclared (first use in this function)
ephyrvideo.c:485: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:488: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:505: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:506: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:511: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:511: error: ‘KdVideoFormatPtr’ undeclared (first use in this function)
ephyrvideo.c:511: error: expected ‘;’ before ‘video_formats’
ephyrvideo.c:512: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:517: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:518: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:520: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:521: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:523: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:526: error: ‘EphyrPortPriv’ has no member named ‘current_adaptor’
ephyrvideo.c:526: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:527: error: ‘EphyrPortPriv’ has no member named ‘xv_priv’
ephyrvideo.c:528: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:537: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:539: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:541: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:542: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:543: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:544: error: ‘EphyrXephyrvideo.c: In function ‘ephyrXVPrivSetAdaptorsHooks’:
ephyrvideo.c:583: error: ‘EphyrXVPriv’ has no member named ‘num_adaptors’
ephyrvideo.c:584: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:584: error: ‘ephyrReputImage’ undeclared (first use in this function)
ephyrvideo.c:585: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:585: error: ‘ephyrStopVideo’ undeclared (first use in this function)
ephyrvideo.c:586: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:586: error: ‘ephyrSetPortAttribute’ undeclared (first use in this function)
ephyrvideo.c:587: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:587: error: ‘ephyrGetPortAttribute’ undeclared (first use in this function)
ephyrvideo.c:588: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:588: error: ‘ephyrQueryBestSize’ undeclared (first use in this function)
ephyrvideo.c:589: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:589: error: ‘ephyrQueryImageAttributes’ undeclared (first use in this function)
ephyrvideo.c:602: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:602: error: ‘ephyrPutImage’ undeclared (first use in this function)
ephyrvideo.c:610: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:610: error: ‘ephyrPutVideo’ undeclared (first use in this function)
ephyrvideo.c:618: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:618: error: ‘ephyrGetVideo’ undeclared (first use in this function)
ephyrvideo.c:626: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:626: error: ‘ephyrPutStill’ undeclared (first use in this function)
ephyrvideo.c:634: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c:634: error: ‘ephyrGetStill’ undeclared (first use in this function)
ephyrvideo.c: In function ‘ephyrXVPrivRegisterAdaptors’:
ephyrvideo.c:646: error: ‘KdScreenInfo’ undeclared (first use in this function)
ephyrvideo.c:646: error: ‘screen’ undeclared (first use in this function)
ephyrvideo.c:646: error: ‘pScreenPriv’ undeclared (first use in this function)
ephyrvideo.c:648: error: ‘KdVideoAdaptorPtr’ undeclared (first use in this function)
ephyrvideo.c:648: error: ‘adaptors’ undeclared (first use in this function)
ephyrvideo.c:648: error: ‘registered_adaptors’ undeclared (first use in this function)
ephyrvideo.c:655: error: ‘EphyrXVPriv’ has no member named ‘num_adaptors’
ephyrvideo.c:660: error: ‘EphyrXVPriv’ has no member named ‘num_adaptors’
ephyrvideo.c:667: error: ‘EphyrXVPriv’ has no member named ‘num_adaptors’
ephyrvideo.c:668: error: ‘EphyrXVPriv’ has no member named ‘adaptors’
ephyrvideo.c: At top level:
ephyrvideo.c:691: error: expected ‘)’ before ‘a_attrs’
ephyrvideo.c: In function ‘ephyrXVPrivSaveImageToPortPriv’:
ephyrvideo.c:756: error: ‘EphyrPortPriv’ has no member named ‘image_buf_size’
ephyrvideo.c:758: error: ‘EphyrPortPriv’ has no member named ‘image_buf’
ephyrvideo.c:763: error: ‘EphyrPortPriv’ has no member named ‘image_buf’
ephyrvideo.c:764: error: ‘EphyrPortPriv’ has no member named ‘image_buf_size’
ephyrvideo.c:766: error: ‘EphyrPortPriv’ has no member named ‘image_buf’
ephyrvideo.c: At top level:
ephyrvideo.c:775: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:791: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:856: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:893: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:921: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:1005: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:1047: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:1098: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:1149: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:1200: error: expected ‘)’ before ‘*’ token
ephyrvideo.c:1251: error: expected ‘)’ before ‘*’ token
make: *** [ephyrvideo.lo] Error 1

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu xorg-server Edit question
Assignee:
No assignee Edit question
Solved by:
dave m.
Solved:
Last query:
Last reply:
Revision history for this message
delance (olivier-delance) said :
#1

Could you have a look in Synaptic to see which packets needs this software

Revision history for this message
dave m. (z-launchpad-mersenne-com) said :
#2

Packages that depend on xserver-xephyr:

gnome-shell
xoo
sugar-emulator-0.88
python-jarabe-0.88
gnome-shell
sabayon

Revision history for this message
delance (olivier-delance) said :
#3

I also tried to install...and failed.
It seems the tar.bz2 file I got has configuration issue.
I'm sorry, but working on your issue will be too time consuming.

Revision history for this message
dave m. (z-launchpad-mersenne-com) said :
#4

OK, thanks for looking. I came up with a workaround using xdotool, so I'm getting closer to my goal of having X multiseat on 10.04LTS using one, dual-output video card.