whilom n00b
Joined: 11 Jul 2005 Posts: 22 Location: Ontario, Canada
|
Posted: Thu Dec 05, 2024 4:01 pm Post subject: Help with namespace warnings building dev-libs/glib-2.82.2? |
|
|
Posting here first because it looks like the problem might be a problem with my environment not the ebuild.
Code: | collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['x86_64-pc-linux-gnu-gcc', '-o', '/var/tmp/portage/dev-libs/glib-2.82.2/work/glib-2.82.2-abi_x86_64.amd64/tmp-introspect_gp8of9t/GLib-2.0', '-O2', '-march=native', '-pipe', '/var/tmp/portage/dev-libs/glib-2.82.2/work/glib-2.82.2-abi_x86_64.amd64/tmp-introspect_gp8of9t/GLib-2.0.o', '-L.', '-Wl,-rpath,.', '-Wl,--no-as-needed', '-L/var/tmp/portage/dev-libs/glib-2.82.2/work/glib-2.82.2-abi_x86_64.amd64/girepository/introspection', '-Wl,-rpath,/var/tmp/portage/dev-libs/glib-2.82.2/work/glib-2.82.2-abi_x86_64.amd64/girepository/introspection', '-L/var/tmp/portage/dev-libs/glib-2.82.2/work/glib-2.82.2-abi_x86_64.amd64/glib', '-Wl,-rpath,/var/tmp/portage/dev-libs/glib-2.82.2/work/glib-2.82.2-abi_x86_64.amd64/glib', '-lgobject-2.0', '-lglib-2.0', '-latomic', '-lm', '-lpcre2-8', '-lgirepository-1.0', '-lgobject-2.0', '-lglib-2.0', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-z,pack-relative-relocs']' returned non-zero exit status 1.
|
With lots of undefined namespace warnings:
Code: | glib/glibconfig.h:45: Warning: GLib: symbol='gint8': Unknown namespace for identifier 'gint8'
glib/glibconfig.h:46: Warning: GLib: symbol='guint8': Unknown namespace for identifier 'guint8'
glib/glibconfig.h:48: Warning: GLib: symbol='gint16': Unknown namespace for identifier 'gint16' |
And a very first cryptic warning:
Code: | In file included from /var/tmp/portage/dev-libs/glib-2.82.2/work/glib-2.82.2-abi_x86_64.amd64/g-ir-cpp-kp2abqqj.c:43:
/var/tmp/portage/dev-libs/glib-2.82.2/work/glib-2.82.2/glib/gi18n-lib.h:32:10: warning: "_" redefined
32 | #define _(String) ((char *) g_dgettext (GETTEXT_PACKAGE, String)) |
In fact, other than the complaint that ld failed I can't find an actual error, just hundreds of namespace related warnings. Currently installed version of glib is 2.78.6 glib has the abi_x86_32 use flag set. |
|