-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[iOS] [Mason] duplicate symbols on static library #3366
Comments
If the issue is in Mason, please report the bug in that repo. |
@1ec5 I don't know yet, I'm trying to understand your project generation / compilation process, it's quite obscure for me. But the issue for me is on mapbox scripts, they include the libgeojsonvt.a in the final static lib, but it seems already included from libmbgl-core.a |
@mikemorris, I’m seeing these warnings too. Any idea what’s changed? |
@1ec5 you don't see the issue on the demo app as it is not using the final lib as third party developers do |
Regarding the old versions of the libraries, be sure to run |
@1ec5 we always do a make clean, I haven't see the distclean ! I'll try thanks |
Seems that core.gypi sets the core lib including geojsonvt static lib, and again in package.sh, the last step "building static library..." add again the geojsonvt static lib .a file... |
after several tests, it seems that the libmapbox.a is ok, but libtool has issues with fat lib... I don't see any duplicated symbols in libmapbox.a. |
Okay, so the double-linking of |
libtool as used in |
@mikemorris Hi. Libtool is used by your package.sh as standard build mechanism (behind xcode-build). |
I'm seeing this issue as far back as 79a5a96, but I don't recall seeing this at all during earlier testing - I wonder if this could be related to the version of |
Also reproduces in Xcode 7.1. |
This is related to the new Xcode version, but it isn’t libtool:
Also, geojsonvt-3.1.0 landed in Mason just within the last week, and we started using it then: #3290. I wonder whether there are any relevant differences with geojsonvt-3.0.1. /cc @kkaefer |
The warnings themselves are slightly older than the linker errors: due to mapbox/geojson-vt-cpp@a55d31c and mapbox/geojson-vt-cpp@cc08ac5, libgeojsonvt and libmbgl-core have two compilation units with the same name (tile.cpp and transform.cpp). This collision has occurred since we started using v3.0.0 of libgeojsonvt in #3232. /cc @mourner |
@RomainQuidet, after running The warnings remain, so I’m leaving this ticket open to track them. |
@1ec5 We should probably add |
No longer seeing this issue after #4641 landed. |
From a clean master branch pull, I run "make ipackage".
It ends correctly (lib mapbox compiled and linked) but with warnings about duplicated symbols from geojsonvt.
When used, this library has duplicated symbols preventing our app to link.
Further more, Mason keeps old geojson libs / headers on our build machine, so it even more confused about duplicated symbols.
Mapbox lib error output:
The text was updated successfully, but these errors were encountered: