Bug 8868 - [xserver] errors during build xserver
Summary: [xserver] errors during build xserver
Status: CLOSED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.1 (2006.05)
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
: 8745 8957 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-02 19:06 UTC by Shuang He
Modified: 2007-03-14 18:13 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Shuang He 2006-11-02 19:06:06 UTC
--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
Comment 1 Alan Coopersmith 2006-11-02 19:08:47 UTC
Make sure you don't have /usr/include/X11/xorg/*h files from a previous server
version installed when you build.
Comment 2 Alan Coopersmith 2006-11-02 19:41:42 UTC
Oh, and also make sure you have updated inputproto.
Comment 3 Shuang He 2006-11-02 22:51:07 UTC
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
Comment 4 Shuang He 2006-11-07 18:43:27 UTC
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
Comment 5 Shuang He 2006-11-09 17:59:53 UTC
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 6 Wei Wang 2006-11-09 18:52:18 UTC
comment #5 is introduced by:
./autogen.sh --prefix=/opt/X11R7  --with-mesa-source=<source to mesa source>
Comment 7 Shuang He 2006-11-09 19:31:09 UTC
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
Comment 8 Eric Anholt 2006-11-09 20:34:17 UTC
The DMX server is broken.  Disable it in your build with --disable-dmx.
Comment 9 Shuang He 2006-11-09 20:42:39 UTC
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
Comment 10 Wang Zhenyu 2006-11-09 22:41:52 UTC
You don't have dbus installed. Simply --disable-dbus in xserver build. 
Comment 11 Daniel Stone 2006-11-10 01:21:23 UTC
actually, it's caused by xprint being broken, rather than lacking dbus. 
--disable-xprint
Comment 12 Shuang He 2006-11-10 01:29:42 UTC
Thanks, now with these options, we can build xserver successfully:
--disable-dmx --disable-dbus --disable-xprint

Comment 13 WuNian 2006-11-13 23:30:38 UTC
*** Bug 8745 has been marked as a duplicate of this bug. ***
Comment 14 EJ Boshinski 2006-11-15 06:01:23 UTC
*** Bug 8957 has been marked as a duplicate of this bug. ***
Comment 15 Daniel Stone 2006-11-30 16:41:17 UTC
fixed
Comment 16 WuNian 2007-03-14 18:13:56 UTC
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.