Compilation of dbus-0.21 fails with undefined references
Ilja Honkonen
ilja.honkonen at helsinki.fi
Sun Apr 18 22:17:56 EST 2004
(please cc me as I'm not on the list)
Hi
I wanted to try zero-install and it needed dbus. When I tried to compile
dbus-0.21 with
./configure && make
I got this:
make[2]: Entering directory `/usr/src/dbus-0.21/tools'
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -Wchar-subscripts
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wcast-align -Wsign-compare -o dbus-viewer
dbus-tree-view.o dbus-viewer.o ../glib/libdbus-gtool.la
-Wl,--export-dynamic -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0
-latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangox-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0 -lnsl
gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align
-Wsign-compare -o .libs/dbus-viewer dbus-tree-view.o dbus-viewer.o
-Wl,--export-dynamic ../glib/.libs/libdbus-gtool.a
/usr/src/dbus-0.21/glib/.libs/libdbus-glib-1.so -L/usr/local/lib
/usr/src/dbus-0.21/dbus/.libs/libdbus-1.so
/usr/local/lib/libgtk-x11-2.0.so /usr/local/lib/libgdk-x11-2.0.so
/usr/local/lib/libatk-1.0.so /usr/local/lib/libgdk_pixbuf-2.0.so -lm
/usr/local/lib/libpangox-1.0.so /usr/local/lib/libpango-1.0.so
/usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl
/usr/local/lib/libglib-2.0.so -lnsl -Wl,--rpath -Wl,/usr/local/lib
../glib/.libs/libdbus-gtool.a(dbus-gloader-expat.o): In function
`description_load_from_string':
/usr/src/dbus-0.21/glib/dbus-gloader-expat.c:200: undefined reference to
`XML_ParserCreate_MM'
/usr/src/dbus-0.21/glib/dbus-gloader-expat.c:207: undefined reference to
`XML_SetUserData'
/usr/src/dbus-0.21/glib/dbus-gloader-expat.c:208: undefined reference to
`XML_SetElementHandler'
/usr/src/dbus-0.21/glib/dbus-gloader-expat.c:211: undefined reference to
`XML_SetCharacterDataHandler'
/usr/src/dbus-0.21/glib/dbus-gloader-expat.c:214: undefined reference to
`XML_Parse'
/usr/src/dbus-0.21/glib/dbus-gloader-expat.c:243: undefined reference to
`XML_ParserFree'
/usr/src/dbus-0.21/glib/dbus-gloader-expat.c:257: undefined reference to
`XML_ParserFree'
/usr/src/dbus-0.21/glib/dbus-gloader-expat.c:221: undefined reference to
`XML_GetErrorCode'
/usr/src/dbus-0.21/glib/dbus-gloader-expat.c:225: undefined reference to
`XML_ErrorString'
/usr/src/dbus-0.21/glib/dbus-gloader-expat.c:225: undefined reference to
`XML_GetCurrentColumnNumber'
/usr/src/dbus-0.21/glib/dbus-gloader-expat.c:225: undefined reference to
`XML_GetCurrentLineNumber'
collect2: ld returned 1 exit status
make[2]: *** [dbus-viewer] Error 1
make[2]: Leaving directory `/usr/src/dbus-0.21/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/dbus-0.21'
make: *** [all] Error 2
What is the matter here? Do I need some other program to compile dbus? I
have installed expat-1.95.7. What other info do you need about my setup?
Thank you.
Ilja
More information about the dbus
mailing list