multiple ld: error: undefined symbol: rsvg_XXX errors during build
Hi.
Trying to build libsrvg-2.52.2 on OpenBSD, I am getting these errors near the end of the build.
I tried a few things but I am unsure about the cause for these.
If you have any input that could help me debug this, it'll be much appreciated :-)
I don't know much about rust not its build ecosystem in case the issue lies in there... I can provide a full build log if that would help.
Thanks.
libtool: link: ranlib .libs/librsvg-2.a
libtool: link: rm -fr .libs/librsvg-2.lax .libs/librsvg-2.lax
libtool: link: ( cd ".libs" && rm -f "librsvg-2.la" && ln -s "../librsvg-2.la" "librsvg-2.la" )
CPPFLAGS="-I/usr/local/include" CFLAGS="-O2 -pipe -g" LDFLAGS="-L/usr/local/lib" CC="cc" PKG_CONFIG="/usr/bin/pkg-config" GI_HOST_OS="" DLLTOOL="false" /usr/local/bin/g-ir-scanner --add-include-path=. --symbol-prefix=rsvg --symbol-prefix=librsvg --namespace=Rsvg --nsversion=2.0 --libtool="/usr/local/bin/libtool" --pkg=pango --pkg=libxml-2.0 --include=GLib-2.0 --include=GObject-2.0 --include=Gio-2.0 --include=cairo-1.0 --include=GdkPixbuf-2.0 --pkg-export=librsvg-2.0 --library=librsvg-2.la --c-include="librsvg/rsvg.h" --cflags-begin -I./include -I. -I./include -DRSVG_COMPILATION --cflags-end include/librsvg/rsvg.h include/librsvg/rsvg-cairo.h include/librsvg/rsvg-features.h include/librsvg/rsvg-version.h librsvg-2.la --output Rsvg-2.0.gir
g-ir-scanner: link: /usr/local/bin/libtool --mode=link --tag=CC cc -o /hack/objdirs/pobj/librsvg-2.52.2/librsvg-2.52.2/tmp-introspectcwlj8gfd/Rsvg-2.0 -export-dynamic -I/usr/local/include -O2 -pipe -g /hack/objdirs/pobj/librsvg-2.52.2/librsvg-2.52.2/tmp-introspectcwlj8gfd/Rsvg-2.0.o -L. librsvg-2.la -L/usr/local/lib -Wl,--export-dynamic -pthread -lgio-2.0 -lgmodule-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lxml2 -L/usr/local/lib
libtool: link: cc -o /hack/objdirs/pobj/librsvg-2.52.2/librsvg-2.52.2/tmp-introspectcwlj8gfd/.libs/Rsvg-2.0 -I/usr/local/include -O2 -pipe -g /hack/objdirs/pobj/librsvg-2.52.2/librsvg-2.52.2/tmp-introspectcwlj8gfd/Rsvg-2.0.o -Wl,--export-dynamic -pthread -Wl,-E -L. -L./.libs -lrsvg-2 -L/usr/local/lib -L/usr/X11R6/lib -lpng -lcairo-gobject -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lfontconfig -lexpat -lfreetype -lgio-2.0 -lgmodule-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lxml2 -lz -llzma -lpthread -liconv -lm -pthread -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/X11R6/lib
ld: error: undefined symbol: rsvg_error_get_type
>>> referenced by Rsvg-2.0.c
>>> /hack/objdirs/pobj/librsvg-2.52.2/librsvg-2.52.2/tmp-introspectcwlj8gfd/Rsvg-2.0.o:(GI_GET_TYPE_FUNCS_)
ld: error: undefined symbol: rsvg_handle_get_type
>>> referenced by Rsvg-2.0.c
>>> /hack/objdirs/pobj/librsvg-2.52.2/librsvg-2.52.2/tmp-introspectcwlj8gfd/Rsvg-2.0.o:(GI_GET_TYPE_FUNCS_)
ld: error: undefined symbol: rsvg_handle_flags_get_type
>>> referenced by Rsvg-2.0.c
>>> /hack/objdirs/pobj/librsvg-2.52.2/librsvg-2.52.2/tmp-introspectcwlj8gfd/Rsvg-2.0.o:(GI_GET_TYPE_FUNCS_)
ld: error: undefined symbol: rsvg_error_quark
>>> referenced by Rsvg-2.0.c
>>> /hack/objdirs/pobj/librsvg-2.52.2/librsvg-2.52.2/tmp-introspectcwlj8gfd/Rsvg-2.0.o:(GI_ERROR_QUARK_FUNCS_)