tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/librsvg (rust): failure in link step



Hi!

librsvg >=2.42 needs rust to build.

maya@ made a package for the latest version in wip/librsvg, but it
fails in the linking step.

With verbose output, it looks like this:

===> Building for librsvg-2.44.9
/usr/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory '/scratch/wip/librsvg/work/librsvg-2.44.9'
Making all in .
gmake[2]: Entering directory '/scratch/wip/librsvg/work/librsvg-2.44.9'
/bin/sh ./libtool  --tag=CC   --mode=link gcc -DRSVG_COMPILATION -I/usr/pkg/include/cairo -I/usr/pkg/include/pixman-1 -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/uuid -I/usr/pkg/include/libpng16 -I/usr/pkg/include/gdk-pixbuf-2.0 -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -pthread -I/usr/pkg/include/libxml2 -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/fribidi -D_REENTRANT -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/libcroco-0.6   -O2 -g -D_FORTIFY_SOURCE=2 -fstack-check -I/usr/pkg/include -I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/include/glib/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/libdrm  -version-info 46:9:44 -export-dynamic -no-undefined -export-symbols-regex "^rsvg_.*"  -Wl,-z,relro -Wl,-z,now -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o librsvg-2.la -rpath /usr/pkg/lib librsvg/2_la-librsvg-enum-types.lo librsvg/2_la-librsvg-features.lo librsvg/2_la-rsvg-base.lo librsvg/2_la-rsvg-handle.lo librsvg/2_la-rsvg-io.lo librsvg/2_la-rsvg-load.lo librsvg/2_la-rsvg-pixbuf.lo librsvg/2_la-rsvg-size-callback.lo  /scratch/wip/librsvg/work/librsvg-2.44.9/target/release/librsvg_internals.so -L/usr/pkg/lib -lpng16 -lz -lgdk_pixbuf-2.0 -lgio-2.0 -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfontconfig -lfreetype -lcroco-0.6 -lglib-2.0 -lintl -Wl,-R/usr/pkg/lib -lxml2  -lm
libtool: link: rm -fr  .libs/librsvg-2.exp
libtool: link: nm  librsvg/.libs/2_la-librsvg-enum-types.o librsvg/.libs/2_la-librsvg-features.o librsvg/.libs/2_la-rsvg-base.o librsvg/.libs/2_la-rsvg-handle.o librsvg/.libs/2_la-rsvg-io.o librsvg/.libs/2_la-rsvg-load.o librsvg/.libs/2_la-rsvg-pixbuf.o librsvg/.libs/2_la-rsvg-size-callback.o   | sed -n -e 's/^.*[      ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/librsvg-2.exp
libtool: link: /usr/bin/egrep -e "^rsvg_.*" ".libs/librsvg-2.exp" > ".libs/librsvg-2.expT"
libtool: link: mv -f ".libs/librsvg-2.expT" ".libs/librsvg-2.exp"
libtool: link: gcc -shared  -fPIC -DPIC  librsvg/.libs/2_la-librsvg-enum-types.o librsvg/.libs/2_la-librsvg-features.o librsvg/.libs/2_la-rsvg-base.o librsvg/.libs/2_la-rsvg-handle.o librsvg/.libs/2_la-rsvg-io.o librsvg/.libs/2_la-rsvg-load.o librsvg/.libs/2_la-rsvg-pixbuf.o librsvg/.libs/2_la-rsvg-size-callback.o   -Wl,-rpath,/scratch/wip/librsvg/work/.buildlink/lib -Wl,-rpath,/scratch/wip/librsvg/work/.buildlink/lib -L/scratch/wip/librsvg/work/.buildlink/lib -L/scratch/wip/librsvg/work/librsvg-2.44.9/target/release -lrsvg_internals -lgdk_pixbuf-2.0 -lgio-2.0 -lgmodule-2.0 -lpangocairo-1.0 -lcairo -lpixman-1 -lpng16 -lxcb-shm -lxcb-render -lXrender -lXext -lX11 -lxcb -lXau -lXdmcp -lrt -lpangoft2-1.0 -lharfbuzz -lpango-1.0 -lgthread-2.0 -lfribidi -lgobject-2.0 -lffi -lfontconfig -lexpat -luuid -lfreetype -lbz2 -lcroco-0.6 -lglib-2.0 -lpcre -lintl -lxml2 -lz -llzma -lm  -pthread -O2 -g -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-rpath -Wl,/usr/pkg/lib -Wl,-rpath -Wl,/usr/pkg/lib   -pthread -Wl,-soname -Wl,librsvg-2.so.2 -Wl,-retain-symbols-file -Wl,.libs/librsvg-2.exp -o .libs/librsvg-2.so.2.44.9
librsvg/.libs/2_la-rsvg-base.o: In function `rsvg_css_parse_color_':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-base.c:159: undefined reference to `rsvg_css_parse_color'
librsvg/.libs/2_la-rsvg-handle.o: In function `rsvg_handle_dispose':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:190: undefined reference to `rsvg_defs_free'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:191: undefined reference to `rsvg_css_styles_free'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:192: undefined reference to `rsvg_tree_free'
librsvg/.libs/2_la-rsvg-handle.o: In function `tree_is_valid':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:682: undefined reference to `rsvg_tree_root_is_svg'
librsvg/.libs/2_la-rsvg-handle.o: In function `finish_load':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:704: undefined reference to `rsvg_tree_free'
librsvg/.libs/2_la-rsvg-handle.o: In function `rsvg_handle_init':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:159: undefined reference to `rsvg_defs_new'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:163: undefined reference to `rsvg_css_styles_new'
librsvg/.libs/2_la-rsvg-handle.o: In function `rsvg_handle_get_dimensions_sub':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1231: undefined reference to `rsvg_tree_get_root'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1246: undefined reference to `rsvg_node_svg_get_size'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1275: undefined reference to `rsvg_node_unref'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1236: undefined reference to `rsvg_tree_is_root'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1246: undefined reference to `rsvg_node_svg_get_size'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1246: undefined reference to `rsvg_node_svg_get_size'
librsvg/.libs/2_la-rsvg-handle.o: In function `rsvg_handle_render_cairo_sub':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1110: undefined reference to `rsvg_drawing_ctx_add_node_and_ancestors_to_stack'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1113: undefined reference to `rsvg_tree_cascade'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1114: undefined reference to `rsvg_drawing_ctx_draw_node_from_stack'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1116: undefined reference to `rsvg_drawing_ctx_free'
librsvg/.libs/2_la-rsvg-handle.o: In function `get_node_ink_rect':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1187: undefined reference to `rsvg_drawing_ctx_add_node_and_ancestors_to_stack'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1189: undefined reference to `rsvg_tree_cascade'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1190: undefined reference to `rsvg_drawing_ctx_draw_node_from_stack'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1195: undefined reference to `rsvg_drawing_ctx_free'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1192: undefined reference to `rsvg_drawing_ctx_get_ink_rect'
librsvg/.libs/2_la-rsvg-handle.o: In function `rsvg_handle_get_position_sub':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1315: undefined reference to `rsvg_tree_is_root'
librsvg/.libs/2_la-rsvg-handle.o: In function `rsvg_handle_load_extern':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1022: undefined reference to `rsvg_tree_cascade'
librsvg/.libs/2_la-rsvg-handle.o: In function `rsvg_handle_create_drawing_ctx':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-handle.c:1045: undefined reference to `rsvg_drawing_ctx_new'
librsvg/.libs/2_la-rsvg-load.o: In function `style_handler_free':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:186: undefined reference to `rsvg_css_parse_into_handle'
librsvg/.libs/2_la-rsvg-load.o: In function `standard_element_start':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:303: undefined reference to `rsvg_load_new_node'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:308: undefined reference to `rsvg_node_add_child'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:309: undefined reference to `rsvg_node_unref'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:314: undefined reference to `rsvg_node_ref'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:316: undefined reference to `rsvg_load_set_node_atts'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:311: undefined reference to `rsvg_tree_new'
librsvg/.libs/2_la-rsvg-load.o: In function `sax_processing_instruction_cb':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:895: undefined reference to `rsvg_property_bag_new'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:897: undefined reference to `rsvg_property_bag_iter_begin'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:899: undefined reference to `rsvg_property_bag_iter_next'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:918: undefined reference to `rsvg_property_bag_iter_end'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:935: undefined reference to `rsvg_css_parse_into_handle'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:942: undefined reference to `rsvg_property_bag_free'
librsvg/.libs/2_la-rsvg-load.o: In function `sax_end_element_cb':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:662: undefined reference to `rsvg_load_set_svg_node_atts'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:668: undefined reference to `rsvg_node_get_parent'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:669: undefined reference to `rsvg_node_unref'
librsvg/.libs/2_la-rsvg-load.o: In function `characters_impl':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:707: undefined reference to `rsvg_node_unref'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:702: undefined reference to `rsvg_node_add_child'
librsvg/.libs/2_la-rsvg-load.o: In function `start_xinclude':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:519: undefined reference to `rsvg_property_bag_iter_begin'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:521: undefined reference to `rsvg_property_bag_iter_next'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:540: undefined reference to `rsvg_property_bag_iter_end'
librsvg/.libs/2_la-rsvg-load.o: In function `sax_start_element_cb':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:617: undefined reference to `rsvg_property_bag_new'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:637: undefined reference to `rsvg_property_bag_free'
librsvg/.libs/2_la-rsvg-load.o: In function `start_style':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:252: undefined reference to `rsvg_property_bag_iter_begin'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:254: undefined reference to `rsvg_property_bag_iter_next'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:260: undefined reference to `rsvg_property_bag_iter_end'
librsvg/.libs/2_la-rsvg-load.o: In function `rsvg_load_free':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:169: undefined reference to `rsvg_node_unref'
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:170: undefined reference to `rsvg_tree_free'
librsvg/.libs/2_la-rsvg-load.o: In function `rsvg_load_close':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:1202: undefined reference to `rsvg_tree_free'
librsvg/.libs/2_la-rsvg-load.o: In function `standard_element_start':
/scratch/wip/librsvg/work/librsvg-2.44.9/librsvg/rsvg-load.c:318: undefined reference to `rsvg_node_unref'
ld: .libs/librsvg-2.so.2.44.9: hidden symbol `rsvg_node_add_child' isn't defined
ld: final link failed: Bad value
gmake[2]: *** [Makefile:1110: librsvg-2.la] Error 1
gmake[2]: Leaving directory '/scratch/wip/librsvg/work/librsvg-2.44.9'
gmake[1]: *** [Makefile:1456: all-recursive] Error 1
gmake[1]: Leaving directory '/scratch/wip/librsvg/work/librsvg-2.44.9'
gmake: *** [Makefile:939: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/wip/librsvg
*** Error code 1

nm says that
/scratch/wip/librsvg/work/librsvg-2.44.9/target/release/librsvg_internals.so
contains (at least one, but probably all) of the symbols:

# nm /scratch/wip/librsvg/work/librsvg-2.44.9/target/release/librsvg_internals.so | grep rsvg_node_unref
000000000028d470 T rsvg_node_unref

The cwrappers rewrite this to
-L/scratch/wip/librsvg/work/librsvg-2.44.9/target/release
-lrsvg_internals but that should work as well.

I don't understand why it doesn't :(
Does anyone have any insight in this?

 Thomas



Home | Main Index | Thread Index | Old Index