Menu

#332 gtkpod fails to compile with gcc-10

2.1.5
open
nobody
None
5
2021-11-08
2020-05-11
ostroffjh
No

The multiple liking failures "multiple definitions of ..." imply failure due to the gcc-10 default change to -fno-common. I've attached the complete build log (from Gentoo Linux with gcc-10.1.0.

1 Attachments

Discussion

  • ostroffjh

    ostroffjh - 2020-07-04

    All mulitple definitions are for either gtkpod_app or gtkpod_app_signals, both declared in in libgtkpod/gtkpod_app_iface.h:
    GtkPodApp *gtkpod_app;
    guint gtkpod_app_signals[LAST_SIGNAL];

    Adding "extern" to both lines gets rid of the multiple definitions, but apparently ends up with gtkpod_app never actually getting defined. If I define it with "GtkPosApp gtkpod_app" (with or without the "") I get errors about not knowing it's storage size, or it not actually being defined.

    At this point, I'm really guessing, since I don't really follow all the type definitions involved. I'd really appreciate it if someone who is a better programmer than I would take a look.

     
  • ostroffjh

    ostroffjh - 2021-11-08

    I no longer use gtkpod, so unless someone else also has this problem, I'm happy to close this ticket.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.