Ticket #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@…) (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
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
Changed 4 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
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.
Note: See
TracTickets for help on using
tickets.


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