pkgsrc-Users archive

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

gobject-introspection broken after libffi update?



So I jumped the gun and have updated my pkgsrc to HEAD in anticipation
of the branch at the end of the month.  My first iteration seemed to go
OK, but after updating again, "devel/gobject-introspection" fails with:

[...]
[133/163] Generating tests/scanner/gir-bar with a custom command
FAILED: tests/scanner/Bar-1.0.gir 
/usr/pkg/bin/python3.9 tools/g-ir-scanner --quiet --output=tests/scanner/Bar-1.0.gir --no-libtool --reparse-validate --add-include-path /tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/gir --add-include-path /tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/gir --warn-all --warn-error --namespace=Bar --nsversion=1.0 --include=GObject-2.0 --pkg=gobject-2.0 --library=barapp-1.0 --accept-unprefixed -L /tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/tests/scanner -L /tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/girepository -I /tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/tests/scanner -I /tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/tests/scanner/.. ../tests/scanner/barapp.c ../tests/scanner/barapp.h
ld: warning: libffi.so.7, needed by /usr/pkg/lib/libgirepository-1.0.so.1, not found (try using -rpath or -rpath-link)
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_uint64@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_double@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_sint32@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_uint32@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_float@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_sint64@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_void@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_pointer@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_sint16@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_closure_free@LIBFFI_CLOSURE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_uint16@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_closure_alloc@LIBFFI_CLOSURE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_prep_cif@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_uint8@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_prep_closure_loc@LIBFFI_CLOSURE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_call@LIBFFI_BASE_7.0'
ld: /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference to `ffi_type_sint8@LIBFFI_BASE_7.0'
linking of temporary binary failed: Command '['gcc', '-o', '/tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/tmp-introspectyrrxufyx/Bar-1.0', '-I/usr/pkg/include/glib-2.0', '-I/usr/pkg/include/gio-unix-2.0', '-I/usr/pkg/lib/glib-2.0/include', '-I/usr/include', '-I/usr/pkg/include', '-I/usr/pkg/include/python3.9', '-O2', '-fPIC', '-D_FORTIFY_SOURCE=2', '-I/usr/pkg/include/glib-2.0', '-I/usr/pkg/include/gio-unix-2.0', '-I/usr/pkg/lib/glib-2.0/include', '-I/usr/include', '-I/usr/pkg/include', '-I/usr/pkg/include/python3.9', '/tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/tmp-introspectyrrxufyx/Bar-1.0.o', '-L.', '-Wl,-rpath,.', '-Wl,--no-as-needed', '-L/tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/tests/scanner', '-Wl,-rpath,/tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/tests/scanner', '-L/tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/girepository', '-Wl,-rpath,/tmp/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/girepository', '-lbarapp-1.0', '-L/usr/pkg/lib', '-lgio-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-lgobject-2.0', '-Wl,-R/usr/pkg/lib', '-lglib-2.0', '-lintl', '-L/usr/pkg/lib', '-Wl,-R/usr/pkg/lib', '-L/usr/lib', '-Wl,-R/usr/lib']' returned non-zero exit status 1.
[134/163] Generating tests/scanner/gir-typedef with a custom command
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /x/pkgsrc/devel/gobject-introspection


I saw a further update of "devel/libffi" to fix the buildlink3.mk for
the new solib version, so I updated again.  "libffi" updated, but I still
get the above error.

Has gobject-introspection hard-coded the expected libffi.so version?

Build/host/target system is NetBSD/amd64-9.2_STABLE with all the latest
pull-ups applied.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index