[sugar] Build failure of dbus-glib

Robin Norwood rnorwood
Tue Feb 6 12:00:52 EST 2007


Hi,

Got an error:

*** error during stage build of dbus-glib: ########## Error running make   *** [19/29]

Looks like expat-devel is required:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I/home/rnorwood/git/sugar-jhbuild/build/include/dbus-1.0 -I/home/rnorwood/git/sugar-jhbuild/build/lib/dbus-1.0/include -I/home/rnorwood/git/sugar-jhbuild/build/include/glib-2.0 -I/home/rnorwood/git/sugar-jhbuild/build/lib/glib-2.0/include -I/home/rnorwood/git/sugar-jhbuild/build/include/libxml2 -DDBUS_COMPILATION=1 -DDBUS_LOCALEDIR=\"/home/rnorwood/git/sugar-jhbuild/build/share/locale\" -DDBUS_API_SUBJECT_TO_CHANGE=1 -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT dbus-gloader-expat.lo -MD -MP -MF .deps/dbus-gloader-expat.Tpo -c dbus-gloader-expat.c  -fPIC -DPIC -o .libs/dbus-gloader-expat.o
dbus-gloader-expat.c:25:19: error: expat.h: No such file or directory
dbus-gloader-expat.c:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'memsuite'


doing a 'yum install expat-devel' and selecting '[1] rerun stage build'
gets past that error, but I get another that isn't so clear:

gcc -g -O2 -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -o .libs/test-dbus-glib my-object-marshal.o test-dbus-glib.o  -L/home/rnorwood/git/sugar-jhbuild/build/lib /home/rnorwood/git/sugar-jhbuild/build/lib/libxml2.so -ldl -lz -lm ../../dbus/.libs/libdbus-glib-1.so /home/rnorwood/git/sugar-jhbuild/build/lib/libgobject-2.0.so /home/rnorwood/git/sugar-jhbuild/build/lib/libglib-2.0.so ../../dbus/.libs/libdbus-gtool.a /home/rnorwood/git/sugar-jhbuild/build/lib/libdbus-1.so -lnsl  -Wl,--rpath -Wl,/home/rnorwood/git/sugar-jhbuild/build/lib
../../dbus/.libs/libdbus-gtool.a(dbus-gloader-expat.o): In function `description_load_from_string':
/home/rnorwood/git/sugar-jhbuild/source/dbus-glib/dbus/dbus-gloader-expat.c:204: undefined reference to `XML_ParserCreate_MM'
/home/rnorwood/git/sugar-jhbuild/source/dbus-glib/dbus/dbus-gloader-expat.c:211: undefined reference to `XML_SetUserData'

(etc.)


Also, are build failures like these helpful to you guys, or just
distractions?

-RN

-- 
Robin Norwood
Red Hat, Inc.

"The Sage does nothing, yet nothing remains undone."
-Lao Tzu, Te Tao Ching


More information about the Sugar-devel mailing list