New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #29296 (closed update: worksforme)

Opened 4 years ago

Last modified 3 years ago

multimedia/gtkpod version 2.0.x fails to build: ld duplicate symbol

Reported by: rmstonecipher@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ak.ml@…
Port: gtkpod

Description (last modified by rmstonecipher@…) (diff)

Attached please find an updated Portfile .diff and the main.log showing the build error which causes gtkpod to fail to build:

:info:build   CCLD   libgtkpod.la
:info:build ld: duplicate symbol _CONF_ID in .libs/filetype_iface.o and .libs/gtkpod_app_iface.o
:info:build collect2: ld returned 1 exit status

I have attempted to troubleshoot this problem by writing to the upstream project's email list; however the suggestion from that project's lead did not resolve the issue.
Help from someone with a better understanding of dependencies and ld would be appreciated.

Thanks,
Ryan Stonecipher

Attachments

gtkpod-Portfile.diff (4.7 KB) - added by rmstonecipher@… 4 years ago.
Portfile.diff
gtkpod-main.log (444.7 KB) - added by rmstonecipher@… 4 years ago.
main.log
gtkpod-Portfile.2.diff (4.9 KB) - added by ak.ml@… 4 years ago.
Uplated with latest MacPorts changes, added global keywords in variants and new patch files
patch-configure.ac.diff (427 bytes) - added by ak.ml@… 4 years ago.
patch-use_extern.diff (6.7 KB) - added by ak.ml@… 4 years ago.
patch-mp4file.c.diff (818 bytes) - added by ak.ml@… 4 years ago.

Change History

comment:1 Changed 4 years ago by rmstonecipher@…

  • Description modified (diff)
  • Summary changed from multimedia/gtkpod version 2.0.0 fails to build: ld duplicate symbol to multimedia/gtkpod version 2.0.x fails to build: ld duplicate symbol

This ld error is still present when compiling version 2.0.2.
Updated Portfile.diff and main.log attached.

Cheers,
Ryan Stonecipher

Changed 4 years ago by rmstonecipher@…

Portfile.diff

Changed 4 years ago by rmstonecipher@…

main.log

Changed 4 years ago by ak.ml@…

Uplated with latest MacPorts changes, added global keywords in variants and new patch files

Changed 4 years ago by ak.ml@…

Changed 4 years ago by ak.ml@…

Changed 4 years ago by ak.ml@…

comment:2 Changed 4 years ago by ak.ml@…

I was able to compile gtkpod with the attached patches.

patch-configure.ac.diff was missing from the original post but I guess it was just about removing the --as-needed option from LDFLAGS.

A few remarks:

  • Are the python variants needed?
    I don't see any reference to python in the code (except for one script).
  • According to NEWS glade dependencies were removed as of 2.0.1: the gtkpod binaries are actually not linked with libglade2 anymore
  • As for mp4v2, the libraries are opened in mp4file.c with:
    mp4v2_handle = dlopen("libmp4v2.so.1", RTLD_LAZY);
    
    so I'm not sure if it's correctly loaded.

comment:3 Changed 4 years ago by ak.ml@…

  • Cc ak.ml@… added

Cc Me!

comment:4 Changed 3 years ago by rmstonecipher@…

  • Status changed from new to closed
  • Resolution set to worksforme

André,
This portfile has been working since 2011-10-16 with much help from your patches.
Thanks!

Ryan Stonecipher

Note: See TracTickets for help on using tickets.