[PATCH] xprint is broken in xserver git
Arkadiusz Miskiewicz
arekm at maven.pl
Thu Sep 6 04:08:41 PDT 2007
On Wednesday 05 of September 2007, Daniel Stone wrote:
> > For reference, I'm attaching a patch implementing the second (undesired)
> > solution. But looks like Eric has applied a patch in the meantime that
> > fixes the build anyway.
>
> Well, it means you do double-compilation, which sucks. With
> NewInputDeviceRequest and DeleteInputDeviceRequest being no-ops, there's
> zero net effect: the config framework does nothing on its own, just
> hints the DDX towards what it may want to do. So I don't think there
> really needs to be any change at all.
Well, something is needed to get successful compilation:
i686-pld-linux-gcc -DHAVE_DMX_CONFIG_H -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I../../include -I../../include -I../../Xext -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr -I../../fb -I../../hw/xfree86/dixmods/extmod -I/home/users/arekm/rpm/BUILD/xorg-server-1.4/Mesa-7.0.1/include -I/usr/include/freetype2 -I/usr/include/pixman-1 -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -gdwarf-2 -g2 -rdynamic -Wl,--as-needed -o
Xdmx dmx.o dmxcb.o dmxcmap.o dmxcursor.o dmxdpms.o dmxextension.o dmxfont.o
dmxgc.o dmxgcops.o dmxinit.o dmxinput.o dmxlog.o dmxpict.o dmxpixmap.o
dmxprop.o dmxscrinit.o dmxshadow.o dmxstat.o dmxsync.o dmxvisual.o
dmxwindow.o miinitext.o fbcmap_mi.o panoramiX.o
dmx_glxvisuals.o ../../dix/.libs/libdix.a ../../fb/.libs/libfb.a ../../mi/.libs/libmi.a ../../Xext/.libs/libXext.a ../../config/libconfig.a ../../render/.libs/librender.a ../../XTrap/.libs/libxtrap.a ../../record/.libs/librecord.a ../../Xi/.libs/libXi.a ../../xkb/.libs/libxkb.a ../../xkb/.libs/libxkbstubs.a ../../miext/damage/.libs/libdamage.a ../../miext/shadow/.libs/libshadow.a ../../os/.libs/libos.a ../../os/.libs/libcwrapper.a
glxProxy/libglxproxy.a input/libdmxinput.a
config/libdmxconfig.a /usr/lib/libXmuu.so /usr/lib/libXrender.so /usr/lib/libXfixes.so /usr/lib/libXfont.so /usr/lib/libfreetype.so /usr/lib/libfontenc.so -lz /usr/lib/libXi.so /usr/lib/libXext.so /usr/lib/libX11.so /usr/lib/libxcb-xlib.so /usr/lib/libxcb.so -ldl /usr/lib/libXau.so /usr/lib/libXdmcp.so /usr/lib/libpixman-1.so -lm -lrt
../../config/libconfig.a(dbus-core.o): In function `teardown':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:87: undefined
reference to `dbus_connection_unref'
../../config/libconfig.a(dbus-core.o): In function `wakeup_handler':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:58: undefined
reference to `dbus_connection_read_write_dispatch'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:59: undefined
reference to `dbus_connection_get_dispatch_status'
../../config/libconfig.a(dbus-core.o): In function `connect_to_bus':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:138: undefined
reference to `dbus_error_init'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:139: undefined
reference to `dbus_bus_get'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:179: undefined
reference to `dbus_error_free'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:140: undefined
reference to `dbus_error_is_set'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:147: undefined
reference to `dbus_connection_set_exit_on_disconnect'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:149: undefined
reference to `dbus_connection_get_unix_fd'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:176: undefined
reference to `dbus_connection_unref'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:154: undefined
reference to `dbus_connection_add_filter'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:161: undefined
reference to `dbus_error_free'
../../config/libconfig.a(dbus-core.o): In function `message_filter':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/dbus-core.c:112: undefined
reference to `dbus_message_is_signal'
../../config/libconfig.a(hal.o): In function `disconnect_hook':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:270: undefined
reference to `dbus_error_init'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:271: undefined
reference to `libhal_ctx_shutdown'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:274: undefined
reference to `libhal_ctx_free'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:275: undefined
reference to `dbus_error_free'
../../config/libconfig.a(hal.o): In function `remove_device':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:59: undefined
reference to `DeleteInputDeviceRequest'
../../config/libconfig.a(hal.o): In function `get_prop_string':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:105: undefined
reference to `libhal_device_get_property_string'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:109: undefined
reference to `libhal_free_string'
../../config/libconfig.a(hal.o): In function `device_added':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:164: undefined
reference to `dbus_error_init'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:166: undefined
reference to `libhal_device_get_property_strlist'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:258: undefined
reference to `dbus_error_free'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:183: undefined
reference to `libhal_free_string_array'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:231: undefined
reference to `NewInputDeviceRequest'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:183: undefined
reference to `libhal_free_string_array'
../../config/libconfig.a(hal.o): In function `get_prop_string_array':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:124: undefined
reference to `libhal_device_get_property_strlist'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:142: undefined
reference to `libhal_free_string_array'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:131: undefined
reference to `libhal_free_string_array'
../../config/libconfig.a(hal.o): In function `connect_hook':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:292: undefined
reference to `dbus_error_init'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:301: undefined
reference to `libhal_ctx_set_dbus_connection'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:305: undefined
reference to `libhal_ctx_init'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:334: undefined
reference to `libhal_ctx_free'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:336: undefined
reference to `dbus_error_free'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:310: undefined
reference to `libhal_device_property_watch_all'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:315: undefined
reference to `libhal_ctx_set_device_added'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:316: undefined
reference to `libhal_ctx_set_device_removed'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:318: undefined
reference to `libhal_find_device_by_capability'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:323: undefined
reference to `libhal_free_string_array'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:325: undefined
reference to `dbus_error_free'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:330: undefined
reference to `libhal_ctx_shutdown'
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:295: undefined
reference to `libhal_ctx_new'
collect2: ld returned 1 exit status
make[2]: *** [Xdmx] Błąd 1
make[2]: Opuszczenie katalogu
`/home/users/arekm/rpm/BUILD/xorg-server-1.4/hw/dmx'
That's due to xserver not linking properly ;-/
Even after adding $(XSERVERLIBS_LIBS) to Xdmx_LDADD:
i686-pld-linux-gcc -DHAVE_DMX_CONFIG_H -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I../../include -I../../include -I../../Xext -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr -I../../fb -I../../hw/xfree86/dixmods/extmod -I/home/users/arekm/rpm/BUILD/xorg-server-1.4/Mesa-7.0.1/include -I/usr/include/freetype2 -I/usr/include/pixman-1 -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4 -gdwarf-2 -g2 -rdynamic -Wl,--as-needed -o
Xdmx dmx.o dmxcb.o dmxcmap.o dmxcursor.o dmxdpms.o dmxextension.o dmxfont.o
dmxgc.o dmxgcops.o dmxinit.o dmxinput.o dmxlog.o dmxpict.o dmxpixmap.o
dmxprop.o dmxscrinit.o dmxshadow.o dmxstat.o dmxsync.o dmxvisual.o
dmxwindow.o miinitext.o fbcmap_mi.o panoramiX.o
dmx_glxvisuals.o ../../dix/.libs/libdix.a ../../fb/.libs/libfb.a ../../mi/.libs/libmi.a ../../Xext/.libs/libXext.a ../../config/libconfig.a ../../render/.libs/librender.a ../../XTrap/.libs/libxtrap.a ../../record/.libs/librecord.a ../../Xi/.libs/libXi.a ../../xkb/.libs/libxkb.a ../../xkb/.libs/libxkbstubs.a ../../miext/damage/.libs/libdamage.a ../../miext/shadow/.libs/libshadow.a ../../os/.libs/libos.a ../../os/.libs/libcwrapper.a
glxProxy/libglxproxy.a /usr/lib/libhal.so /usr/lib/libdbus-1.so
input/libdmxinput.a
config/libdmxconfig.a /usr/lib/libXmuu.so /usr/lib/libXrender.so /usr/lib/libXfixes.so /usr/lib/libXfont.so /usr/lib/libfreetype.so /usr/lib/libfontenc.so -lz /usr/lib/libXi.so /usr/lib/libXext.so /usr/lib/libX11.so /usr/lib/libxcb-xlib.so /usr/lib/libxcb.so -ldl /usr/lib/libXau.so /usr/lib/libXdmcp.so /usr/lib/libpixman-1.so -lm -lrt
../../config/libconfig.a(hal.o): In function `remove_device':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:59: undefined
reference to `DeleteInputDeviceRequest'
../../config/libconfig.a(hal.o): In function `device_added':
/home/users/arekm/rpm/BUILD/xorg-server-1.4/config/hal.c:231: undefined
reference to `NewInputDeviceRequest'
collect2: ld returned 1 exit status
make[2]: *** [Xdmx] Błąd 1
make[2]: Opuszczenie katalogu
`/home/users/arekm/rpm/BUILD/xorg-server-1.4/hw/dmx'
(same as xprint)
> Cheers,
> Daniel
--
Arkadiusz Miśkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/
More information about the xorg
mailing list