Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with namespace warnings building dev-libs/glib-2.82.2?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
whilom
n00b
n00b


Joined: 11 Jul 2005
Posts: 22
Location: Ontario, Canada

PostPosted: Thu Dec 05, 2024 4:01 pm    Post subject: Help with namespace warnings building dev-libs/glib-2.82.2? Reply with quote

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.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2091

PostPosted: Thu Dec 05, 2024 4:40 pm    Post subject: Reply with quote

Please always share the full build.log. This is probably bug 945770.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum