--Architecture(ia32,ia32e,compatiblity): ia32 & ia32e --2D driver: git(fbb376bd1a4daad4c86e349df98438989ce173f1) --Xorg: 7.1 --Mesa: CVS tip --OS: FC5 --Kernel: 2.6.19-rc3 when building the latest xserver, we get following errors: devices.c: In function 'ActivateDevice': devices.c:204: error: 'devicePresenceNotify' has no member named 'devchange' devices.c:205: error: 'devicePresenceNotify' has no member named 'deviceid' devices.c: In function 'RemoveDevice': devices.c:570: error: 'devicePresenceNotify' has no member named 'devchange' devices.c:571: error: 'devicePresenceNotify' has no member named 'deviceid' make[1]: *** [devices.lo] Error 1 make[1]: Leaving directory `/GFX/build/component/Xserver/xserver/dix' make: *** [all-recursive] Error 1
Make sure you don't have /usr/include/X11/xorg/*h files from a previous server version installed when you build.
Oh, and also make sure you have updated inputproto.
Thanks We have the inputproto updated, and these error disappear. But new error come out, may some other modules need update? In file included from ../main/context.h:54, from xf86glx.c:54: ../main/mtypes.h:66:2: error: #error "illegal number of color channel bits" ../main/mtypes.h:78:4: error: #error "illegal number of stencil bits" In file included from ../main/context.h:54, from xf86glx.c:54: ../main/mtypes.h:569: error: 'MAX_DRAW_BUFFERS' undeclared here (not in a function) ../main/mtypes.h:636: error: 'MAX_TEXTURE_COORD_UNITS' undeclared here (not in a function) ../main/mtypes.h:677: error: 'MAX_LIGHTS' undeclared here (not in a function) ../main/mtypes.h:722: error: 'MAX_TEXTURE_IMAGE_UNITS' undeclared here (not in a function) ../main/mtypes.h:825: error: 'HISTOGRAM_TABLE_SIZE' undeclared here (not in a function) ../main/mtypes.h:855: error: 'MAX_CONVOLUTION_WIDTH' undeclared here (not in a function) ../main/mtypes.h:855: error: 'MAX_CONVOLUTION_HEIGHT' undeclared here (not in a function) ../main/mtypes.h:993: error: 'MAX_PIXEL_MAP_TABLE' undeclared here (not in a function) ../main/mtypes.h:1204: error: expected declaration specifiers or '...' before 'GLchan' ../main/mtypes.h:1382: error: expected specifier-qualifier-list before 'GLchan' ../main/mtypes.h:1548: error: 'MAX_TEXTURE_UNITS' undeclared here (not in a function) ../main/mtypes.h:1571: error: 'MAX_CLIP_PLANES' undeclared here (not in a function) ../main/mtypes.h:1742: error: 'MAX_NAME_STACK_DEPTH' undeclared here (not in a function) ../main/mtypes.h:1859: error: 'MAX_PROGRAM_LOCAL_PARAMS' undeclared here (not in a function) ../main/mtypes.h:1930: error: 'MAX_NV_VERTEX_PROGRAM_PARAMS' undeclared here (not in a function) ../main/mtypes.h:1956: error: 'MAX_NV_FRAGMENT_PROGRAM_PARAMS' undeclared here (not in a function) In file included from ../main/context.h:54, from xf86glx.c:54: ../main/mtypes.h:2748: error: 'MAX_LIST_NESTING' undeclared here (not in a function) ../main/mtypes.h:2829: error: 'MAX_PROGRAM_MATRICES' undeclared here (not in a function) ../main/mtypes.h:2848: error: 'MAX_ATTRIB_STACK_DEPTH' undeclared here (not in a function) ../main/mtypes.h:2882: error: 'MAX_CLIENT_ATTRIB_STACK_DEPTH' undeclared here (not in a function) xf86glx.c:428: warning: no previous prototype for 'GlxGetMesaProvider' make[3]: *** [xf86glx.lo] Error 1 make[3]: Leaving directory `/GFX/build/component/Xserver/xserver/GL/mesa/X' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/GFX/build/component/Xserver/xserver/GL/mesa' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/GFX/build/component/Xserver/xserver/GL' make: *** [all-recursive] Error 1
All xorg/proto modules are updated. And now get following errors: In file included from mirandr.c:34: randrstr.h:64: error: 'RRNumberRequests' undeclared here (not in a function) randrstr.h:79: error: expected specifier-qualifier-list before 'xRRModeInfo' randrstr.h:401: error: expected ')' before '*' token randrstr.h:560: error: expected declaration specifiers or '...' before 'xRRModeInfo' mirandr.c: In function 'miRandRInit': mirandr.c:92: error: 'xRRModeInfo' undeclared (first use in this function) mirandr.c:92: error: (Each undeclared identifier is reported only once mirandr.c:92: error: for each function it appears in.) mirandr.c:92: error: expected ';' before 'modeInfo' mirandr.c:111: error: 'modeInfo' undeclared (first use in this function) mirandr.c:116: error: too many arguments to function 'RRModeGet' mirandr.c:137: error: 'RR_Connected' undeclared (first use in this function) make[1]: *** [mirandr.lo] Error 1 make[1]: Leaving directory `/GFX/build/component/Xserver/xserver/randr' make: *** [all-recursive] Error 1
complie the newly git clone xserver, will get following error: autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I /opt/X11R7/share/aclocal autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy libtoolize: `config.guess' exists: use `--force' to overwrite libtoolize: `config.sub' exists: use `--force' to overwrite libtoolize: `ltmain.sh' exists: use `--force' to overwrite autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force dix/Makefile.am:55: `dix.O' is not a standard library name dix/Makefile.am:55: did you mean `libdix.a'? hw/xfree86/os-support/Makefile.am:2: required directory hw/xfree86/os-support/drm does not exist os/Makefile.am:59: `os.O' is not a standard library name os/Makefile.am:59: did you mean `libos.a'? autoreconf: automake failed with exit status: 1 E: Xserver Build Failure, exit.
comment #5 is introduced by: ./autogen.sh --prefix=/opt/X11R7 --with-mesa-source=<source to mesa source>
the last issue fixed, and new error found: lnx-keyboard.c:167:24: error: xf86Keymap.h: No such file or directory lnx-keyboard.c: In function ‘kbdLinuxReadKernelMapping’: lnx-keyboard.c:803: error: ‘map’ undeclared (first use in this function) lnx-keyboard.c:803: error: (Each undeclared identifier is reported only once lnx-keyboard.c:803: error: for each function it appears in.) lnx-keyboard.c: In function ‘kbdLinuxGetMap’: lnx-keyboard.c:930: error: ‘map’ undeclared (first use in this function) make[3]: *** [lnx-keyboard.o] Error 1 make[3]: Leaving directory `/GFX/build/component/Xserver/xserver/hw/dmx/input' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/GFX/build/component/Xserver/xserver/hw/dmx' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/GFX/build/component/Xserver/xserver/hw' make: *** [all-recursive] Error 1
The DMX server is broken. Disable it in your build with --disable-dmx.
build with option --disable-dmx, will get these errors: ../../config/libconfig.a(config.o): In function `configFini':/GFX/build/component/Xserver/xserver/config/config.c:322: undefined reference to `dbus_error_init' :/GFX/build/component/Xserver/xserver/config/config.c:323: undefined reference to `dbus_connection_unregister_object_path' :/GFX/build/component/Xserver/xserver/config/config.c:324: undefined reference to `dbus_bus_remove_match' :/GFX/build/component/Xserver/xserver/config/config.c:325: undefined reference to `dbus_bus_release_name' :/GFX/build/component/Xserver/xserver/config/config.c:326: undefined reference to `dbus_connection_unref' :/GFX/build/component/Xserver/xserver/config/config.c:330: undefined reference to `dbus_error_free' ../../config/libconfig.a(config.o): In function `configMessage':/GFX/build/component/Xserver/xserver/config/config.c:206: undefined reference to `dbus_error_init' :/GFX/build/component/Xserver/xserver/config/config.c:208: undefined reference to `dbus_message_get_interface' :/GFX/build/component/Xserver/xserver/config/config.c:223: undefined reference to `dbus_message_new_method_return' :/GFX/build/component/Xserver/xserver/config/config.c:224: undefined reference to `dbus_message_iter_init_append' :/GFX/build/component/Xserver/xserver/config/config.c:226: undefined reference to `dbus_message_iter_append_basic' :/GFX/build/component/Xserver/xserver/config/config.c:232: undefined reference to `dbus_connection_send' :/GFX/build/component/Xserver/xserver/config/config.c:234: undefined reference to `dbus_connection_flush' :/GFX/build/component/Xserver/xserver/config/config.c:236: undefined reference to `dbus_message_unref' :/GFX/build/component/Xserver/xserver/config/config.c:239: undefined reference to `dbus_error_free' :/GFX/build/component/Xserver/xserver/config/config.c:210: undefined reference to `dbus_message_iter_init' :/GFX/build/component/Xserver/xserver/config/config.c:212: undefined reference to `dbus_error_free' :/GFX/build/component/Xserver/xserver/config/config.c:228: undefined reference to `dbus_error_free' :/GFX/build/component/Xserver/xserver/config/config.c:216: undefined reference to `dbus_message_get_member' :/GFX/build/component/Xserver/xserver/config/config.c:218: undefined reference to `dbus_message_get_member' ../../config/libconfig.a(config.o): In function `configRemoveDevice':/GFX/build/component/Xserver/xserver/config/config.c:171: undefined reference to `dbus_message_get_args' ../../config/libconfig.a(config.o): In function `configAddDevice':/GFX/build/component/Xserver/xserver/config/config.c:95: undefined reference to `dbus_message_iter_recurse' :/GFX/build/component/Xserver/xserver/config/config.c:97: undefined reference to `dbus_message_iter_get_arg_type' :/GFX/build/component/Xserver/xserver/config/config.c:100: undefined reference to `dbus_message_iter_get_basic' :/GFX/build/component/Xserver/xserver/config/config.c:115: undefined reference to `dbus_message_iter_has_next' :/GFX/build/component/Xserver/xserver/config/config.c:117: undefined reference to `dbus_message_iter_next' :/GFX/build/component/Xserver/xserver/config/config.c:118: undefined reference to `dbus_message_iter_get_arg_type' :/GFX/build/component/Xserver/xserver/config/config.c:121: undefined reference to `dbus_message_iter_get_basic' :/GFX/build/component/Xserver/xserver/config/config.c:133: undefined reference to `dbus_message_iter_next' :/GFX/build/component/Xserver/xserver/config/config.c:87: undefined reference to `dbus_message_iter_get_arg_type' :/GFX/build/component/Xserver/xserver/config/config.c:136: undefined reference to `NewInputDeviceRequest' ../../config/libconfig.a(config.o): In function `configInitialise':/GFX/build/component/Xserver/xserver/config/config.c:258: undefined reference to `dbus_error_init' :/GFX/build/component/Xserver/xserver/config/config.c:259: undefined reference to `dbus_bus_get' :/GFX/build/component/Xserver/xserver/config/config.c:260: undefined reference to `dbus_error_is_set' :/GFX/build/component/Xserver/xserver/config/config.c:263: undefined reference to `dbus_error_free' :/GFX/build/component/Xserver/xserver/config/config.c:267: undefined reference to `dbus_connection_get_unix_fd' :/GFX/build/component/Xserver/xserver/config/config.c:276: undefined reference to `dbus_bus_request_name' :/GFX/build/component/Xserver/xserver/config/config.c:276: undefined reference to `dbus_error_is_set' :/GFX/build/component/Xserver/xserver/config/config.c:280: undefined reference to `dbus_error_free' :/GFX/build/component/Xserver/xserver/config/config.c:281: undefined reference to `dbus_connection_unref' :/GFX/build/component/Xserver/xserver/config/config.c:268: undefined reference to `dbus_connection_unref' :/GFX/build/component/Xserver/xserver/config/config.c:270: undefined reference to `dbus_error_free' :/GFX/build/component/Xserver/xserver/config/config.c:287: undefined reference to `dbus_bus_add_match' :/GFX/build/component/Xserver/xserver/config/config.c:288: undefined reference to `dbus_error_is_set' :/GFX/build/component/Xserver/xserver/config/config.c:291: undefined reference to `dbus_error_free' :/GFX/build/component/Xserver/xserver/config/config.c:292: undefined reference to `dbus_bus_release_name' :/GFX/build/component/Xserver/xserver/config/config.c:293: undefined reference to `dbus_connection_unref' :/GFX/build/component/Xserver/xserver/config/config.c:299: undefined reference to `dbus_connection_register_object_path' :/GFX/build/component/Xserver/xserver/config/config.c:302: undefined reference to `dbus_bus_release_name' :/GFX/build/component/Xserver/xserver/config/config.c:303: undefined reference to `dbus_bus_remove_match' :/GFX/build/component/Xserver/xserver/config/config.c:304: undefined reference to `dbus_connection_unref' :/GFX/build/component/Xserver/xserver/config/config.c:305: undefined reference to `dbus_error_free' :/GFX/build/component/Xserver/xserver/config/config.c:311: undefined reference to `dbus_error_free' ../../config/libconfig.a(config.o): In function `configDispatch':/GFX/build/component/Xserver/xserver/config/config.c:64: undefined reference to `dbus_connection_read_write_dispatch' collect2: ld returned 1 exit status make[3]: *** [Xprt] Error 1 make[3]: Leaving directory `/GFX/build/component/Xserver/xserver/hw/xprint' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/GFX/build/component/Xserver/xserver/hw/xprint' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/GFX/build/component/Xserver/xserver/hw' make: *** [all-recursive] Error 1
You don't have dbus installed. Simply --disable-dbus in xserver build.
actually, it's caused by xprint being broken, rather than lacking dbus. --disable-xprint
Thanks, now with these options, we can build xserver successfully: --disable-dmx --disable-dbus --disable-xprint
*** Bug 8745 has been marked as a duplicate of this bug. ***
*** Bug 8957 has been marked as a duplicate of this bug. ***
fixed
Fixed for a long time.
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.