Bug 71203 - Compile of Xserver fails
Summary: Compile of Xserver fails
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Ext/DRI (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium blocker
Assignee: Keith Packard
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: xserver-1.15
  Show dependency treegraph
 
Reported: 2013-11-04 02:24 UTC by Bob Gleitsmann
Modified: 2013-11-12 15:48 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Bob Gleitsmann 2013-11-04 02:24:53 UTC
The following symbols are not defined:
xShmAttachFdReq
xShmCreateSegmentReq
xShmCreateSegmentReply
X_ShmAttachFd
X_ShmCreateSegment

In addition WriteFdToClient is not in any of the libraries required during configuration.

I've tried reverting the commits from the last few days and am making progress but still need to get rid of WriteFdToClient. There may be more monkey wrenches behind that.
These are the commits that I reverted:
Add support for MIT-SHM AttachFd request fdec793cdc2ef9a6ea66b311cb1068a7bd4a3be3
Add dri3 and present directorys to distribution - 9db1d66f6d2c6857de220d8f1c08965962fe1416


Best Wishes,

Bob Gleitsmann
Comment 1 IHateShmAlready 2013-11-04 04:17:38 UTC
I can confirm this is a major problem, because I've tried compiling the exact same thing today and last night and XServer/Xext part failed when it tried to compile Shm.c file.
Comment 2 IHateShmAlready 2013-11-04 08:42:38 UTC
Adding to this, only xorg-server-1.14.3.tar.bz2 worked for compiling.
Comment 3 Alan Coopersmith 2013-11-04 16:35:48 UTC
Known problem which Keith has said will be fixed ASAP.

Until then you can get it to build by applying the patch from
http://patchwork.freedesktop.org/patch/15082/ to xextproto.
Comment 4 Jos van Wolput 2013-11-05 04:01:24 UTC
(In reply to comment #3)

Compiling of the latest xserver-aaf0e29619196a283fee7ead2020a91032d84f48 fails
with the following error:
----
make[5]: Leaving directory `/home/jos/src/xorg/git/xserver/hw/xfree86/dixmods'
  CCLD     Xorg
../../os/.libs/libos.a(io.o): In function `ReadFdFromClient':
io.c:(.text+0x1e): undefined reference to `_XSERVTransRecvFd'
../../os/.libs/libos.a(io.o): In function `WriteFdToClient':
io.c:(.text+0x7fb): undefined reference to `_XSERVTransSendFd'
collect2: error: ld returned 1 exit status
make[4]: *** [Xorg] Error 1
make[4]: Leaving directory `/home/jos/src/xorg/git/xserver/hw/xfree86'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jos/src/xorg/git/xserver/hw/xfree86'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jos/src/xorg/git/xserver/hw/xfree86'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jos/src/xorg/git/xserver/hw'
make: *** [all-recursive] Error 1
-----
Comment 5 Jos van Wolput 2013-11-09 05:24:06 UTC
(In reply to comment #3)
> Known problem which Keith has said will be fixed ASAP.
> 
> Until then you can get it to build by applying the patch from
> http://patchwork.freedesktop.org/patch/15082/ to xextproto.

Even after installing the most recent git versions of xorg/proto/* and xorg/lib/libX*, xorg-server-1.14.99.901 and xserver (git version) still don't compile
properly:
-----
CCLD     Xorg
../../os/.libs/libos.a(io.o): In function `ReadFdFromClient':
io.c:(.text+0x1c): undefined reference to `_XSERVTransRecvFd'
../../os/.libs/libos.a(io.o): In function `WriteFdToClient':
io.c:(.text+0x7f9): undefined reference to `_XSERVTransSendFd'
collect2: error: ld returned 1 exit status
make[4]: *** [Xorg] Error 1
make[4]: Leaving directory `/home/jos/src/xorg/xorg-server-1.14.99.901/hw/xfree86'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jos/src/xorg/xorg-server-1.14.99.901/hw/xfree86'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jos/src/xorg/xorg-server-1.14.99.901/hw/xfree86'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jos/src/xorg/xorg-server-1.14.99.901/hw'
make: *** [all-recursive] Error 1
-----
No problems compiling xorg-server-1.14.99.3!
Comment 6 Alan Coopersmith 2013-11-09 07:38:01 UTC
(In reply to comment #5)
> No problems compiling xorg-server-1.14.99.3!

That was before the fd passing support was added.
Comment 7 Jos van Wolput 2013-11-10 12:21:21 UTC
With xtrans-1.3.0 xorg-server-1.14.99.901 builds properly and is running well.
Comment 8 Jos van Wolput 2013-11-12 09:06:55 UTC
After applying the patch http://patchwork.freedesktop.org/patch/15197/ xserver latest git does build properly and is running well.
Thanks!


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.