<html><head></head><body>That's a very protracted way of stating that, exactly as I had noted, and contrary to your BS claims, autoconf checks symbols just like Cmake and ad-hoc systems do. And all of them have the option of testing code instead, and there is absolutely no autoconf-specific problem here.<br><br>And as I noted and as you refuse to admit, under ascending compatibility, switching from symbol to code checks can only fix false negatives, not false positives.<br><br>Ascending compatibility is not my opinion. It's an assumption of the build linker (in symbol and library versioning) the compiler (runtime library), pkg-config checks, the vast majority of packages in contribs... And yes Cmake, Meson, autoconf and custom scripts too. Contribs was designed under the same assumption because that is the only viable option when basically everything under it does.<br><br>You don't have to like it, and my personal opinion is that it's annoying yet pragmatic. However your cognitive dissonance is not an excuse for denying the fact that contribs work the way they do, even if you doesn't suit you.<br><br><div class="gmail_quote">Le 1 mai 2020 23:14:35 GMT+03:00, Marvin Scholz <epirat07@gmail.com> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><br><br>On 1 May 2020, at 21:49, Rémi Denis-Courmont wrote:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Le perjantaina 1. toukokuuta 2020, 22.23.54 EEST Marvin Scholz a <br>écrit :<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;">On 1 May 2020, at 21:19, Rémi Denis-Courmont wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;">Le perjantaina 1. toukokuuta 2020, 21.13.14 EEST Marvin Scholz a <br>écrit :<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;">The whole purpose of these hacks, as I already explained, is to<br>workaround the incorrect way autoconf does the checks. So of course <br>it is<br>specific to autoconf.<br></blockquote>There is nothing incorrect about autoconf *there* and nothing <br>specific to<br>autoconf either. If you ask autoconf to check for a symbol, it does <br>so.<br>The<br>same is true of cmake or of bespoke configure scripts.<br></blockquote>Yes there is, I already explained it, I won't repeat myself over and <br>over<br>again just because you refuse to read and understand what I write…<br></blockquote>What mail do I refuse to read?<br></blockquote><br>Re: [vlc-devel] [PATCH v2 13/17] contrib: use makefile instead of <br>environment variable<br><br>Where I explained:<br>The issue is that those checks need to be overwritten with these<br>env variables, else configure will get incorrect results, because the<br>autoconf check for function existence is fundamentally flawed with<br>how it was designed to work. So it can not work for any cases where<br>the function declaration provides crucial information for the linker,<br>as autoconf will do the check without the right headers included.<br><br>So it makes autoconf come to a wrong result whether it can successfully<br>link or not, as it lacks the header with the right annotations for<br>weak linking.<br><br>So because this is a somewhat confusing topic I will detail it again<br>and what the issue is (will do it for macOS, it's essentially the same<br>for iOS, tvOS…):<br><br>For macOS we have a specific minimum macOS version we target (10.11),<br>the way this works is by setting the -mmacosx-version-min=10.11 compiler<br>flags which internally among other things sets a specific define which<br>is used by the macOS SDK to know which symbols can be unconditionally<br>used (all that are available on 10.11 and higher) and which need weak<br>linking (all that are not available since 10.11 but were introduced<br>later).<br><br>There are basically two ways apps are supposed to handle this:<br>If apps are written with awareness to this, the should check if the<br>symbol is NULL at runtime, before using it. If it is, run the fallback<br>code that does not use the symbol, else just use it.<br><br>For programs that are not aware of this or do not want to deal with<br>this, they usually have checks in configure scripts, meson, CMake.<br>For these checks to behave right, add -no_weak_imports to the linker<br>flags when doing the checks which would cause these to behave like<br>they should, as stated in the manage for the flag:<br><br>   Error if any symbols are weak imports (i.e. allowed to be unresolved<br>   (NULL) at runtime). Useful for config based projects that assume they<br>   are built and run on the same OS version.<br><br>This would work just fine but unfortunately autoconf designed the <br>function<br>check macros in a way that you can not easily include the right header<br>where the function is actually declared in, so it will lack the correct<br>weak annotation and the check will incorrectly succeed.<br><br>This does not only cause problems on macOS, but for Android and Windows<br>when doing function existence checks too.<br><br>CMake has CheckFunctionExists which has the same flaw so they introduced<br>CheckSymbolExists where they addressed this.<br><br>Mesons function checks supports checking with the right header too and <br>it's<br>the recommended way to do it.<br><br>So both for CMake and Meson this is a simple to fix issue if any contrib<br>runs into this case, just autoconf has no easy fix other than write your<br>completely custom test program and try to compile that…<br>So we have this large hardcoded list as a hack to workaround this with<br>autoconf (and because there are a huge number of contribs using autoconf<br>that run into this issue).<br><br>><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;">Sometimes, checking for symbols is wrong because a function or <br>functional<br>macro is not guaranteed to exists under the same name as a symbol. <br>In that<br>case, a proper code snippet compilation test is necessary. But <br>failing<br>that can only ever lead to false negatives, not false positives.<br></blockquote>No, you are wrong there.<br></blockquote> No, you are.<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;">What's incorrect is the way you're building packages with automatic<br>configuration (using autotools or otherwise). You are literaly not<br>building<br>those the way they're supposed to be built.<br></blockquote>No, your assumptions how things should be done are wrong, when <br>compiling<br>with macOS / iOS SDKs and doing specific version targeting.<br></blockquote> No those are not my assumptions and I already explained it.<br><br></blockquote><br>Yes they are because they do not match how things are actually done,<br>see my explanation above.<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Patch rejected.<br><br> -- <br> Реми Дёни-Курмон<br> <a href="http://www.remlab.net/">http://www.remlab.net/</a><hr> vlc-devel mailing list<br> To unsubscribe or modify your subscription options:<br> <a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></blockquote><hr>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a></pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>