I'm getting stuck at getting libsvg compiled. It fails with the following error:
ake: Entering directory `/home/bv6679/Development/libsvg-0.5.0'
Making all in .
make: Entering directory `/home/bv6679/Development/libsvg-0.5.0'
make: Leaving directory `/home/bv6679/Development/libsvg-0.5.0'
Making all in src
make: Entering directory `/home/bv6679/Development/libsvg-0.5.0/src'
/bin/bash ../libtool -tag=CC -mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DLIBSVG_LIBCROCO -I/usr/local/include/libcroco-0.6 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -g -O2 -MT svg_css_style.lo -MD -MP -MF .deps/svg_css_style.Tpo -c -o svg_css_style.lo svg_css_style.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DLIBSVG_LIBCROCO -I/usr/local/include/libcroco-0.6 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -g -O2 -MT svg_css_style.lo -MD -MP -MF .deps/svg_css_style.Tpo -c svg_css_style.c -fPIC -DPIC -o .libs/svg_css_style.o
In file included from /usr/include/libxml2/libxml/xmlversion.h:13,
from /usr/include/libxml2/libxml/tree.h:16,
from /usr/local/include/libcroco-0.6/libcroco/cr-sel-eng.h:34,
from /usr/local/include/libcroco-0.6/libcroco/libcroco.h:40,
from svg_css_style.c:440:
/usr/include/libxml2/libxml/xmlexports.h:42:1: warning: "XMLCALL" redefined
In file included from /usr/include/expat.h:18,
from svgint.h:26,
from svg_css_style.c:31:
/usr/include/expat_external.h:40:1: warning: this is the location of the previous definition
In file included from /usr/include/libxml2/libxml/tree.h:17,
from /usr/local/include/libcroco-0.6/libcroco/cr-sel-eng.h:34,
from /usr/local/include/libcroco-0.6/libcroco/libcroco.h:40,
from svg_css_style.c:440:
/usr/include/libxml2/libxml/xmlstring.h:28: error: conflicting types for ‘xmlChar’
svgint.h:29: note: previous declaration of ‘xmlChar’ was here
svg_css_style.c:526: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_parent’
svg_css_style.c:529: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_first_child’
svg_css_style.c:532: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_next_sibling’
svg_css_style.c:535: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_prev_sibling’
svg_css_style.c:538: error: expected ‘)’ before ‘ptr’
svg_css_style.c:541: error: expected ‘)’ before ‘ptr’
svg_css_style.c:544: error: expected ‘)’ before ‘ptr’
svg_css_style.c:550: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
svg_css_style.c: In function ‘_svg_parse_inline_css’:
svg_css_style.c:672: warning: implicit declaration of function ‘cr_parser_parse_inline_declaration_block’
svg_css_style.c:672: warning: nested extern declaration of ‘cr_parser_parse_inline_declaration_block’
svg_css_style.c: In function ‘_svg_get_css_stylesheet_declarations’:
svg_css_style.c:755: warning: implicit declaration of function ‘cr_sel_eng_set_node_iface’
svg_css_style.c:755: warning: nested extern declaration of ‘cr_sel_eng_set_node_iface’
svg_css_style.c:755: error: ‘SVG_CR_NODE_IFACE’ undeclared (first use in this function)
svg_css_style.c:755: error: (Each undeclared identifier is reported only once
svg_css_style.c:755: error: for each function it appears in.)
svg_css_style.c:758: warning: passing argument 3 of ‘cr_sel_eng_get_matched_properties_from_cascade’ from incompatible pointer type
/usr/local/include/libcroco-0.6/libcroco/cr-sel-eng.h:97: note: expected ‘struct xmlNode *’ but argument is of type ‘struct svg_dom_node_t *’
svg_css_style.c:765: warning: implicit declaration of function ‘cr_prop_list_nr_props’
svg_css_style.c:765: warning: nested extern declaration of ‘cr_prop_list_nr_props’
svg_css_style.c: At top level:
svg_css_style.c:1062: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_parent’
svg_css_style.c:1074: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_first_child’
svg_css_style.c:1086: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_next_sibling’
svg_css_style.c:1098: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_prev_sibling’
svg_css_style.c:1110: error: expected ‘)’ before ‘ptr’
svg_css_style.c:1116: error: expected ‘)’ before ‘ptr’
svg_css_style.c:1122: error: expected ‘)’ before ‘ptr’
make: *** Error 1
make: Leaving directory `/home/bv6679/Development/libsvg-0.5.0/src'
make: *** Error 1
make: Leaving directory `/home/bv6679/Development/libsvg-0.5.0'
make: *** Error 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think I've traced this down to a problem with libsvg. This was very difficult to get to compile, and I had to make several changes. I did get it to compile finally, but svg2swf failes with:
/usr/local/lib/libsvg.so: undefined reference to `cr_prop_list_nr_props'
/usr/local/lib/libsvg.so: undefined reference to `cr_parser_parse_inline_declaration_block'
/usr/local/lib/libsvg.so: undefined reference to `cr_sel_eng_set_node_iface'
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/home/bv6679/Development/svg2swf-0.5/src'
make: *** Error 1
make: Leaving directory `/home/bv6679/Development/svg2swf-0.5'
make: *** Error 2
Those group of methods all had warning like:
svg_css_style.c: In function ‘_svg_get_css_stylesheet_declarations’:
svg_css_style.c:755: warning: implicit declaration of function ‘cr_sel_eng_set_node_iface’
svg_css_style.c:755: warning: nested extern declaration of ‘cr_sel_eng_set_node_iface’
and I can find no implementation of those methods anywhere.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just to conclude this thread… The build issues resulted from an old installation of libcroco. The old libcroco was installed as a dependency of gnome-common, which was required to generate 'configure'.
Philip
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm getting stuck at getting libsvg compiled. It fails with the following error:
ake: Entering directory `/home/bv6679/Development/libsvg-0.5.0'
Making all in .
make: Entering directory `/home/bv6679/Development/libsvg-0.5.0'
make: Leaving directory `/home/bv6679/Development/libsvg-0.5.0'
Making all in src
make: Entering directory `/home/bv6679/Development/libsvg-0.5.0/src'
/bin/bash ../libtool -tag=CC -mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DLIBSVG_LIBCROCO -I/usr/local/include/libcroco-0.6 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -g -O2 -MT svg_css_style.lo -MD -MP -MF .deps/svg_css_style.Tpo -c -o svg_css_style.lo svg_css_style.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DLIBSVG_LIBCROCO -I/usr/local/include/libcroco-0.6 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -g -O2 -MT svg_css_style.lo -MD -MP -MF .deps/svg_css_style.Tpo -c svg_css_style.c -fPIC -DPIC -o .libs/svg_css_style.o
In file included from /usr/include/libxml2/libxml/xmlversion.h:13,
from /usr/include/libxml2/libxml/tree.h:16,
from /usr/local/include/libcroco-0.6/libcroco/cr-sel-eng.h:34,
from /usr/local/include/libcroco-0.6/libcroco/libcroco.h:40,
from svg_css_style.c:440:
/usr/include/libxml2/libxml/xmlexports.h:42:1: warning: "XMLCALL" redefined
In file included from /usr/include/expat.h:18,
from svgint.h:26,
from svg_css_style.c:31:
/usr/include/expat_external.h:40:1: warning: this is the location of the previous definition
In file included from /usr/include/libxml2/libxml/tree.h:17,
from /usr/local/include/libcroco-0.6/libcroco/cr-sel-eng.h:34,
from /usr/local/include/libcroco-0.6/libcroco/libcroco.h:40,
from svg_css_style.c:440:
/usr/include/libxml2/libxml/xmlstring.h:28: error: conflicting types for ‘xmlChar’
svgint.h:29: note: previous declaration of ‘xmlChar’ was here
svg_css_style.c:526: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_parent’
svg_css_style.c:529: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_first_child’
svg_css_style.c:532: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_next_sibling’
svg_css_style.c:535: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_prev_sibling’
svg_css_style.c:538: error: expected ‘)’ before ‘ptr’
svg_css_style.c:541: error: expected ‘)’ before ‘ptr’
svg_css_style.c:544: error: expected ‘)’ before ‘ptr’
svg_css_style.c:550: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
svg_css_style.c: In function ‘_svg_parse_inline_css’:
svg_css_style.c:672: warning: implicit declaration of function ‘cr_parser_parse_inline_declaration_block’
svg_css_style.c:672: warning: nested extern declaration of ‘cr_parser_parse_inline_declaration_block’
svg_css_style.c: In function ‘_svg_get_css_stylesheet_declarations’:
svg_css_style.c:755: warning: implicit declaration of function ‘cr_sel_eng_set_node_iface’
svg_css_style.c:755: warning: nested extern declaration of ‘cr_sel_eng_set_node_iface’
svg_css_style.c:755: error: ‘SVG_CR_NODE_IFACE’ undeclared (first use in this function)
svg_css_style.c:755: error: (Each undeclared identifier is reported only once
svg_css_style.c:755: error: for each function it appears in.)
svg_css_style.c:758: warning: passing argument 3 of ‘cr_sel_eng_get_matched_properties_from_cascade’ from incompatible pointer type
/usr/local/include/libcroco-0.6/libcroco/cr-sel-eng.h:97: note: expected ‘struct xmlNode *’ but argument is of type ‘struct svg_dom_node_t *’
svg_css_style.c:765: warning: implicit declaration of function ‘cr_prop_list_nr_props’
svg_css_style.c:765: warning: nested extern declaration of ‘cr_prop_list_nr_props’
svg_css_style.c: At top level:
svg_css_style.c:1062: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_parent’
svg_css_style.c:1074: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_first_child’
svg_css_style.c:1086: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_next_sibling’
svg_css_style.c:1098: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_svg_node_iface_get_prev_sibling’
svg_css_style.c:1110: error: expected ‘)’ before ‘ptr’
svg_css_style.c:1116: error: expected ‘)’ before ‘ptr’
svg_css_style.c:1122: error: expected ‘)’ before ‘ptr’
make: *** Error 1
make: Leaving directory `/home/bv6679/Development/libsvg-0.5.0/src'
make: *** Error 1
make: Leaving directory `/home/bv6679/Development/libsvg-0.5.0'
make: *** Error 2
I think I've traced this down to a problem with libsvg. This was very difficult to get to compile, and I had to make several changes. I did get it to compile finally, but svg2swf failes with:
/usr/local/lib/libsvg.so: undefined reference to `cr_prop_list_nr_props'
/usr/local/lib/libsvg.so: undefined reference to `cr_parser_parse_inline_declaration_block'
/usr/local/lib/libsvg.so: undefined reference to `cr_sel_eng_set_node_iface'
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/home/bv6679/Development/svg2swf-0.5/src'
make: *** Error 1
make: Leaving directory `/home/bv6679/Development/svg2swf-0.5'
make: *** Error 2
Those group of methods all had warning like:
svg_css_style.c: In function ‘_svg_get_css_stylesheet_declarations’:
svg_css_style.c:755: warning: implicit declaration of function ‘cr_sel_eng_set_node_iface’
svg_css_style.c:755: warning: nested extern declaration of ‘cr_sel_eng_set_node_iface’
and I can find no implementation of those methods anywhere.
Just to conclude this thread… The build issues resulted from an old installation of libcroco. The old libcroco was installed as a dependency of gnome-common, which was required to generate 'configure'.
Philip
I have the same problem with latest libcroco:
alex@rigel:/tmp/libsvg-0.5.0$ apt-cache show libcroco3
Package: libcroco3
Priority: optional
Section: libs
Installed-Size: 352
Maintainer: Sebastien Bacher <seb128@debian.org>
Architecture: amd64
Source: libcroco
Version: 0.6.2-1
I've solved this problem… I found missed definitions here:
http://inkscape.modevia.com/doxygen/html/cr-node-iface_8h_source.php
Seems like there must be file libcroco/cr-node-iface.h somewhere, but I cant find this file anywhere in libcroco distrubutions. o_O
Well… I included that statements to svg_css_style.c, and this file was compiled. :)
Another problem that I found at compile time: I haven't libpng-dev package in my system. Should it be checked by configure?
Oh well… Seems like we have two different versions of libcroco:
1) gnome's version here: ftp://ftp.gnome.org/pub/GNOME/sources/libcroco/
2) inkscape's version here: http://downloads.sourceforge.net/inkscape/inkscape-0.48.0.tar.bz2 (subdirectory in sources)
cr_sel_eng_set_node_iface exists only in 2nd version.
But I still can't find neither cr_parser_parse_inline_declaration_block function nor cr_prop_list_nr_props. What is it? I cant even google it…
damn… finally I found your version exists in http://sourceforge.net/projects/svg2swf/files/libcroco/ =)
Why doesn't it exists in gnome's ftp servers or other repositories?
There didn't seem to be much interest in maintaining libcroco and therefore I copied updates made by the Inkscape team and added a couple of fixes and additions of my own:
http://svg2swf.cvs.sourceforge.net/viewvc/svg2swf/libcroco/ChangeLog?revision=1.3&view=markup
Philip