Opened 14 years ago
Closed 12 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)
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 symbol → multimedia/gtkpod version 2.0.x fails to build: ld duplicate symbol |
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: thegtkpod
binaries are actually not linked withlibglade2
anymore - As for
mp4v2
, the libraries are opened inmp4file.c
with:mp4v2_handle = dlopen("libmp4v2.so.1", RTLD_LAZY);
so I'm not sure if it's correctly loaded.
comment:4 Changed 12 years ago by rmstonecipher@…
Resolution: | → worksforme |
---|---|
Status: | new → closed |
André,
This portfile has been working since 2011-10-16 with much help from your patches.
Thanks!
Ryan Stonecipher
This ld error is still present when compiling version 2.0.2.
Updated Portfile.diff and main.log attached.
Cheers,
Ryan Stonecipher