GNOME Bugzilla – Bug 388795
evince build failure (libxml includes not found due to mistake in configure.in)
Last modified: 2006-12-23 13:01:30 UTC
cut-n-paste/toolbar-editor/egg-toolbars-model.c depends on libxml2, but configure.in does not check for this. It used to be that libbonoboui-2.0.pc (via libgnomeui-2.0.pc) would bring in this dependency, but no longer does due to the change in bug 352191. This causes the following compiling error: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/egg -DORBIT2=1 -pthread -I/opt/gnome2/include/gtk-2.0 -I/opt/gnome2/lib/gtk-2.0/include -I/opt/gnome2/include/atk-1.0 -I/opt/gnome2/include/cairo -I/opt/gnome2/include/pango-1.0 -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib/glib-2.0/include -I/opt/gnome2/include/libgnomeui-2.0 -I/opt/gnome2/include/libgnome-2.0 -I/opt/gnome2/include/libgnomecanvas-2.0 -I/opt/gnome2/include/libart-2.0 -I/opt/gnome2/include/gconf/2 -I/opt/gnome2/include/libbonoboui-2.0 -I/opt/gnome2/include/gnome-vfs-2.0 -I/opt/gnome2/lib/gnome-vfs-2.0/include -I/opt/gnome2/include/gnome-keyring-1 -I/opt/gnome2/include/orbit-2.0 -I/opt/gnome2/include/libbonobo-2.0 -I/opt/gnome2/include/bonobo-activation-2.0 -Wall -Wmissing-prototypes -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DCURSOR_DIR=\"/opt/gnome2/share/evince\" -g -O2 -MT libtoolbareditor_la-egg-toolbars-model.lo -MD -MP -MF .deps/libtoolbareditor_la-egg-toolbars-model.Tpo -c egg-toolbars-model.c -fPIC -DPIC -o .libs/libtoolbareditor_la-egg-toolbars-model.o egg-toolbars-model.c:30:25: libxml/tree.h: No such file or directory egg-toolbars-model.c:103: error: syntax error before "egg_toolbars_model_to_xml" egg-toolbars-model.c:104: warning: return type defaults to `int' egg-toolbars-model.c:104: warning: no previous prototype for 'egg_toolbars_model_to_xml' egg-toolbars-model.c: In function `egg_toolbars_model_to_xml': egg-toolbars-model.c:107: error: `xmlDocPtr' undeclared (first use in this function) egg-toolbars-model.c:107: error: (Each undeclared identifier is reported only once egg-toolbars-model.c:107: error: for each function it appears in.) egg-toolbars-model.c:107: error: syntax error before "doc" egg-toolbars-model.c:109: warning: return makes integer from pointer without a cast egg-toolbars-model.c:113: error: `xmlIndentTreeOutput' undeclared (first use in this function) egg-toolbars-model.c:114: error: `doc' undeclared (first use in this function) egg-toolbars-model.c:114: warning: implicit declaration of function `xmlNewDoc' egg-toolbars-model.c:114: error: syntax error before "xmlChar" egg-toolbars-model.c:115: warning: implicit declaration of function `xmlNewDocNode' egg-toolbars-model.c:115: error: syntax error before "xmlChar" egg-toolbars-model.c:119: error: `xmlNodePtr' undeclared (first use in this function) egg-toolbars-model.c:119: error: syntax error before "tnode" egg-toolbars-model.c:122: error: `tnode' undeclared (first use in this function) egg-toolbars-model.c:122: warning: implicit declaration of function `xmlNewChild' egg-toolbars-model.c:122: error: syntax error before "xmlChar" egg-toolbars-model.c:123: warning: implicit declaration of function `xmlSetProp' egg-toolbars-model.c:123: error: syntax error before "xmlChar" egg-toolbars-model.c:124: error: syntax error before "xmlChar" egg-toolbars-model.c:126: error: syntax error before "xmlChar" egg-toolbars-model.c:131: error: syntax error before "node" egg-toolbars-model.c:136: error: `node' undeclared (first use in this function) egg-toolbars-model.c:136: error: syntax error before "xmlChar" egg-toolbars-model.c:140: error: syntax error before "xmlChar" egg-toolbars-model.c:141: error: syntax error before "xmlChar" egg-toolbars-model.c:150: error: syntax error before "dnode" egg-toolbars-model.c:156: error: `dnode' undeclared (first use in this function) egg-toolbars-model.c:156: warning: implicit declaration of function `xmlNewTextChild' egg-toolbars-model.c:156: error: syntax error before "xmlChar" egg-toolbars-model.c:160: error: syntax error before "xmlChar" egg-toolbars-model.c:120: warning: unused variable `toolbar' egg-toolbars-model.c: At top level: egg-toolbars-model.c:172: error: syntax error before "xmlDocPtr" egg-toolbars-model.c: In function `safe_save_xml': egg-toolbars-model.c:179: error: `xml_file' undeclared (first use in this function) egg-toolbars-model.c:182: warning: implicit declaration of function `xmlSaveFormatFile' egg-toolbars-model.c:182: error: `doc' undeclared (first use in this function) egg-toolbars-model.c: In function `egg_toolbars_model_save_toolbars': egg-toolbars-model.c:232: error: `xmlDocPtr' undeclared (first use in this function) egg-toolbars-model.c:232: error: syntax error before "doc" egg-toolbars-model.c:233: error: `xmlNodePtr' undeclared (first use in this function) egg-toolbars-model.c:237: error: `doc' undeclared (first use in this function) egg-toolbars-model.c:238: error: `root' undeclared (first use in this function) egg-toolbars-model.c:238: warning: implicit declaration of function `xmlDocGetRootElement' egg-toolbars-model.c:239: error: syntax error before "xmlChar" egg-toolbars-model.c:241: warning: implicit declaration of function `xmlFreeDoc' egg-toolbars-model.c: At top level: egg-toolbars-model.c:497: error: syntax error before "xmlNodePtr" egg-toolbars-model.c: In function `parse_data_list': egg-toolbars-model.c:501: error: `child' undeclared (first use in this function) egg-toolbars-model.c:503: warning: implicit declaration of function `xmlStrEqual' egg-toolbars-model.c:503: error: syntax error before "xmlChar" egg-toolbars-model.c:506: error: `xmlChar' undeclared (first use in this function) egg-toolbars-model.c:506: error: `data' undeclared (first use in this function) egg-toolbars-model.c:506: warning: implicit declaration of function `xmlNodeGetContent' egg-toolbars-model.c:508: error: `type' undeclared (first use in this function) egg-toolbars-model.c:511: error: `model' undeclared (first use in this function) egg-toolbars-model.c:511: error: `create' undeclared (first use in this function) egg-toolbars-model.c:514: warning: implicit declaration of function `xmlFree' egg-toolbars-model.c: At top level: egg-toolbars-model.c:521: error: syntax error before "return" egg-toolbars-model.c:526: error: syntax error before "xmlNodePtr" egg-toolbars-model.c: In function `parse_item_list': egg-toolbars-model.c:529: error: `child' undeclared (first use in this function) egg-toolbars-model.c:531: error: syntax error before "xmlChar" egg-toolbars-model.c:537: error: `name' undeclared (first use in this function) egg-toolbars-model.c:537: error: `model' undeclared (first use in this function) egg-toolbars-model.c:546: error: `xmlChar' undeclared (first use in this function) egg-toolbars-model.c:546: error: `type' undeclared (first use in this function) egg-toolbars-model.c:546: warning: implicit declaration of function `xmlGetProp' egg-toolbars-model.c:546: error: syntax error before "xmlChar" egg-toolbars-model.c:547: error: `data' undeclared (first use in this function) egg-toolbars-model.c:547: error: syntax error before "xmlChar" egg-toolbars-model.c:563: error: `position' undeclared (first use in this function) egg-toolbars-model.c:567: error: syntax error before "else" egg-toolbars-model.c: At top level: egg-toolbars-model.c:572: warning: type defaults to `int' in declaration of `child' egg-toolbars-model.c:572: error: invalid type argument of `->' egg-toolbars-model.c:572: warning: data definition has no type or storage class egg-toolbars-model.c:573: error: syntax error before '}' token egg-toolbars-model.c:578: error: syntax error before "xmlNodePtr" egg-toolbars-model.c: In function `parse_toolbars': egg-toolbars-model.c:582: error: invalid type argument of `->' egg-toolbars-model.c:582: error: syntax error before "xmlChar" egg-toolbars-model.c:588: error: `string' undeclared (first use in this function) egg-toolbars-model.c:588: error: syntax error before "xmlChar" egg-toolbars-model.c:589: error: `model' undeclared (first use in this function) egg-toolbars-model.c:593: error: syntax error before "xmlChar" egg-toolbars-model.c:594: error: syntax error before "xmlChar" egg-toolbars-model.c:598: error: syntax error before "xmlChar" egg-toolbars-model.c:599: error: syntax error before "xmlChar" egg-toolbars-model.c:603: error: syntax error before "xmlChar" egg-toolbars-model.c:604: error: syntax error before "xmlChar" egg-toolbars-model.c:610: error: invalid type argument of `->' egg-toolbars-model.c:613: error: invalid type argument of `->' egg-toolbars-model.c: At top level: egg-toolbars-model.c:615: error: syntax error before '}' token egg-toolbars-model.c: In function `egg_toolbars_model_load_toolbars': egg-toolbars-model.c:621: error: `xmlDocPtr' undeclared (first use in this function) egg-toolbars-model.c:621: error: syntax error before "doc" egg-toolbars-model.c:622: error: `xmlNodePtr' undeclared (first use in this function) egg-toolbars-model.c:628: error: `doc' undeclared (first use in this function) egg-toolbars-model.c:628: warning: implicit declaration of function `xmlParseFile' egg-toolbars-model.c:634: error: `root' undeclared (first use in this function) egg-toolbars-model.c: At top level: egg-toolbars-model.c:645: error: syntax error before "xmlNodePtr" egg-toolbars-model.c: In function `parse_available_list': egg-toolbars-model.c:651: error: invalid type argument of `->' egg-toolbars-model.c:651: error: syntax error before "xmlChar" egg-toolbars-model.c:655: error: `name' undeclared (first use in this function) egg-toolbars-model.c:655: error: syntax error before "xmlChar" egg-toolbars-model.c:657: error: `model' undeclared (first use in this function) egg-toolbars-model.c:662: error: invalid type argument of `->' egg-toolbars-model.c: At top level: egg-toolbars-model.c:664: error: syntax error before '}' token egg-toolbars-model.c:668: error: syntax error before "xmlNodePtr" egg-toolbars-model.c: In function `parse_names': egg-toolbars-model.c:672: error: invalid type argument of `->' egg-toolbars-model.c:672: error: syntax error before "xmlChar" egg-toolbars-model.c:677: error: invalid type argument of `->' egg-toolbars-model.c: At top level: egg-toolbars-model.c:679: error: syntax error before '}' token egg-toolbars-model.c: In function `egg_toolbars_model_load_names': egg-toolbars-model.c:685: error: `xmlDocPtr' undeclared (first use in this function) egg-toolbars-model.c:685: error: syntax error before "doc" egg-toolbars-model.c:686: error: `xmlNodePtr' undeclared (first use in this function) egg-toolbars-model.c:692: error: `doc' undeclared (first use in this function) egg-toolbars-model.c:698: error: `root' undeclared (first use in this function) egg-toolbars-model.c: At top level: egg-toolbars-model.c:646: warning: 'parse_available_list' defined but not used make[4]: *** [libtoolbareditor_la-egg-toolbars-model.lo] Error 1 make[4]: Leaving directory `/export/home/b/newrenTemp/gnome/evince/cut-n-paste/toolbar-editor' make[3]: *** [all] Error 2 make[3]: Leaving directory `/export/home/b/newrenTemp/gnome/evince/cut-n-paste/toolbar-editor' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/export/home/b/newrenTemp/gnome/evince/cut-n-paste' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/b/newrenTemp/gnome/evince' make: *** [all] Error 2 To fix, evince should explicitly check for libxml2. I will provide a patch in a minute that works, but note that I am no autotools guru; you may want to double check it. (See also bug 387961)
Created attachment 78822 [details] [review] Patch configure.in to check for libxml2
Thanks a lot Elijah, please commit if it's not hard for you.
see also bug 352191
Nickolay: Sure, no problem. Thanks for the quick review. Christian: I already noted that bug in my original comment. ;-)