pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[2020Q4] gobject-introspection fails with /usr/pkg/lib/libgirepository-1.0.so.1: undefined reference
Hello,
I have upgraded my pkgsrc tree and gobject-introspection fails with :
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',
'/usr/src/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/tmp-introspectek0ack3y/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',
'/usr/src/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/tmp-introspectek0ack3y/Bar-1.0.o',
'-L.', '-Wl,-rpath,.', '-Wl,--no-as-needed',
'-L/usr/src/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/tests/scanner',
'-Wl,-rpath,/usr/src/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/tests/scanner',
'-L/usr/src/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.68.0/output/girepository',
'-Wl,-rpath,/usr/src/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.
[138/163] Generating tests/scanner/gir-warnlib with a custom command
ninja: build stopped: subcommand failed.
*** Error code 1
If I check libgirepository-1.0.so.1.0.0, I see that
ffi_type_sint8@@LIBFFI_BASE_7.0 is undefined in
/usr/pkg/lib/libgirepository-1.0.so.1.0.0 :
legendre# nm /usr/pkg/lib/libgirepository-1.0.so.1.0.0 | grep ffi_type_sint8
U ffi_type_sint8@@LIBFFI_BASE_7.0
but seems to be defined in
legendre# nm /usr/pkg/lib/libffi.so.8.1.0 | grep ffi_type_sint8
0000000000003630 R ffi_type_sint8
I suppose -lffi is missing somewhere in link command.
Best regards,
JKB
Home |
Main Index |
Thread Index |
Old Index