<div dir="ltr">
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue""><br>EXPORT_LIST contains following libraries in case of static build (with normal build it's empty):</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">/usr/lib/x86_64-linux-gnu/libreadline.so</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">/usr/lib/x86_64-linux-gnu/libcurses.so</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">/usr/lib/x86_64-linux-gnu/libform.so</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">/usr/lib/x86_64-linux-gnu/libtinfo.so</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">/usr/lib/x86_64-linux-gnu/libz.so</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">/opt/local/lib/libssl.so</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">/opt/local/lib/libcrypto.so</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">/usr/lib/x86_64-linux-gnu/libz.so</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">/opt/local/lib/libicui18n.so</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">/opt/local/lib/libicuuc.so</p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">/opt/local/lib/libicudata.so</p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue";min-height:14px"><br></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Helvetica Neue"">It doesn’t contains libcurl because it’s bundled statically. So it isn’t related to <a href="https://github.com/tarantool/tarantool/issues/4559"><span class="gmail-s1" style="color:rgb(220,161,13)">https://github.com/tarantool/tarantool/issues/4559</span></a><span class="gmail-s2" style="text-decoration-line:underline"> </span>but this problem may be solved with next patch: <a href="https://github.com/tarantool/tarantool/tree/rosik/refactor-static-build"><span class="gmail-s1" style="color:rgb(220,161,13)">https://github.com/tarantool/tarantool/tree/rosik/refactor-static-build</span></a><span class="gmail-s2" style="text-decoration-line:underline">.</span> At this patch added flag --disble-symbos-hiding (<a href="https://github.com/tarantool/tarantool/blob/rosik/refactor-static-build/cmake/BuildLibCURL.cmake#L93"><span class="gmail-s1" style="color:rgb(220,161,13)">https://github.com/tarantool/tarantool/blob/rosik/refactor-static-build/cmake/BuildLibCURL.cmake#L93</span></a><span class="gmail-s2" style="text-decoration-line:underline">)</span> at building libcurl and after that most of libcurl symbols are visible from tarantool binary</p></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 16 июн. 2020 г. в 00:20, Vladislav Shpilevoy <<a href="mailto:v.shpilevoy@tarantool.org">v.shpilevoy@tarantool.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
On 11/06/2020 02:25, HustonMmmavr wrote:<br>
> Removed definition and initialization of EXPORT_LIST variable at file<br>
> src/CMakeLists.txt. After patch 03790ac551 this variable is unused<br>
> (no reference to this variable after its initialization can be found<br>
> in whole project) and it is only misleading.<br>
<br>
Actually I am not sure it is not needed. Seems like purpose of this<br>
exporter was the same as for static libraries in a non-static build -<br>
not to allow to remove any public symbols of these libraries.<br>
<br>
Because linker can eliminate some parts of static libraries, if sees<br>
they are not used in the final executable.<br>
<br>
So probably EXPORT_LIST for static build should be exported just like<br>
exports.h, and it was missed in #2971.<br>
<br>
> Closes #5066<br>
> ---<br>
> I've builded tarantool before applying this changes and after.<br>
> Then I've checked difference in tarantool binary file symbols with <br>
> nm and diff commands and there was no difference.<br>
<br>
Have you tried static build or normal build? Did you see the content<br>
of EXPORT_LIST, what is there? Isn't this related to<br>
<a href="https://github.com/tarantool/tarantool/issues/4559" rel="noreferrer" target="_blank">https://github.com/tarantool/tarantool/issues/4559</a>?<br>
<br>
> Issue: <a href="https://github.com/tarantool/tarantool/issues/5066" rel="noreferrer" target="_blank">https://github.com/tarantool/tarantool/issues/5066</a><br>
> Branch: <a href="https://github.com/tarantool/tarantool/tree/HustonMmmavr/gh-5066-delete-unusued-export-list" rel="noreferrer" target="_blank">https://github.com/tarantool/tarantool/tree/HustonMmmavr/gh-5066-delete-unusued-export-list</a><br>
</blockquote></div>