Opened 13 years ago

Closed 11 years ago

#29296 closed update (worksforme)

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@…)

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 (6)

gtkpod-Portfile.diff (4.7 KB) - added by rmstonecipher@… 13 years ago.
Portfile.diff
gtkpod-main.log (444.7 KB) - added by rmstonecipher@… 13 years ago.
main.log
gtkpod-Portfile.2.diff (4.9 KB) - added by ak.ml@… 13 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@… 13 years ago.
patch-use_extern.diff (6.7 KB) - added by ak.ml@… 13 years ago.
patch-mp4file.c.diff (818 bytes) - added by ak.ml@… 13 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 13 years ago by rmstonecipher@…

Description: modified (diff)
Summary: multimedia/gtkpod version 2.0.0 fails to build: ld duplicate symbolmultimedia/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 13 years ago by rmstonecipher@…

Attachment: gtkpod-Portfile.diff added

Portfile.diff

Changed 13 years ago by rmstonecipher@…

Attachment: gtkpod-main.log added

main.log

Changed 13 years ago by ak.ml@…

Attachment: gtkpod-Portfile.2.diff added

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

Changed 13 years ago by ak.ml@…

Attachment: patch-configure.ac.diff added

Changed 13 years ago by ak.ml@…

Attachment: patch-use_extern.diff added

Changed 13 years ago by ak.ml@…

Attachment: patch-mp4file.c.diff added

comment:2 Changed 13 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 13 years ago by ak.ml@…

Cc: ak.ml@… added

Cc Me!

comment:4 Changed 11 years ago by rmstonecipher@…

Resolution: worksforme
Status: newclosed

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.