<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi Brad,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks for the information!<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">About MariaDB current issue, the only trace I see dealing with the string breaking cmake is:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div><span style="font-family: "Courier New",monospace;">/opt/freeware/src/packages/BUILD/mariadb-10.3.1/64bit/libmariadb/cmake/FindGSSAPI.cmake(94):  message(STATUS
</span><b><span style="font-family: "Courier New",monospace;">Found GSSAPI</span></b><span style="font-family: "Courier New",monospace;">: ${GSSAPI_LIBS} )</span><br>
<span style="font-family: "Courier New",monospace;">-- Found GSSAPI: -L/opt/freeware/lib -blibpath:/opt/freeware/lib::/usr/lib:/lib -I/usr/include -I/opt/freeware/include -L/opt/freeware/lib -blibpath:/opt/freeware/lib:/usr/lib:/lib</span><br>
<span style="font-family: "Courier New",monospace;">-bmaxdata:0x80000000 -brtl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpthreads</span><br>
</div>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">It contains a part of this:</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div><span style="font-family: "Courier New",monospace;"># grep bmaxdata mariadb-10.3.1-1.spec</span><br>
<span style="font-family: "Courier New",monospace;">        export <b>LDFLAGS</b>="-L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 -lintl"</span><br>
<br>
And the rest of the string probably comes from KRB5 configuration files:<br>
<div><span style="font-family: "Courier New",monospace;"># rpm -ql krb5-devel-1.9.4-2 | xargs grep lkrb5</span><br>
<span style="font-family: "Courier New",monospace;">/opt/freeware/bin/krb5-config: 
<b>lib_flags</b>="$lib_flags -lkrb5 -lk5crypto -lcom_err $GEN_LIB $LIBS $DL_LIB"</span><br>
<span style="font-family: "Courier New",monospace;">/opt/freeware/bin/krb5-config_64:       lib_flags="$lib_flags -lkrb5 -lk5crypto -lcom_err $GEN_LIB $LIBS $DL_LIB"</span></div>
<br>
<br>
</div>
So, it looks like cmake gets data for the <font size="2"><span style="font-size:11pt;">CMAKE_REQUIRED_LIBRARIES</span></font> from these 2 aboves places, but it does not transform the " " blank separators by
<font size="2"><span style="font-size:11pt;">";" ?!! <br>
</span></font>
<p></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;">Any idea where this is done ?</span></font></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:11pt;"></span></font><br>
</p>
<p style="margin-top:0;margin-bottom:0">Regards,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><span lang="fr"><font size="2" color="black" face="Arial"><span dir="ltr" style="font-size:10pt"><font size="2" face="Times New Roman"><span style="font-size:16px">
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Verdana,sans-serif"><span style="font-size:9pt">Cordialement,<br>
<br>
Tony Reix<br>
<br>
ATOS / Bull SAS<br>
ATOS Expert<br>
IBM Coop Architect & Technical Leader<br>
</span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Verdana,sans-serif"><span style="font-size:9pt">Office : +33 (0) 4 76 29 72 67</span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font size="2" face="Verdana,sans-serif"><span style="font-size:9pt">1 rue de Provence - 38432 Échirolles - France</span></font></span></font></div>
<div style="margin:0"><font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><a href="https://mail.ad.bull.net/owa/redir.aspx?C=PvphmPvCZkGrAgHVnWGsdMcDKgzl_dEIsM6rX0g4u4v8V81YffzBGkWrtQeAXNovd3ttkJL8JIc.&URL=http%3a%2f%2fwww.atos.net%2f" target="_blank" id="LPNoLP"><font size="2" face="Verdana,sans-serif"><span style="font-size:9pt">www.atos.net</span></font></a></span></font></div>
</span></font></span></font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> Brad King <brad.king@kitware.com><br>
<b>Envoyé :</b> mardi 19 juin 2018 17:57:54<br>
<b>À :</b> REIX, Tony; cmake-developers@cmake.org<br>
<b>Cc :</b> APEKE, SENA (ext)<br>
<b>Objet :</b> Re: [cmake-developers] cmake on AIX</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On 06/19/2018 11:48 AM, REIX, Tony wrote:<br>
> However, we've found yet no information about how to:<br>
> <br>
>    a) run one test,<br>
> <br>
>    b) get more traces,<br>
<br>
ctest -R $regex_matching_tests_to_run -V<br>
<br>
>    c) know where are the logs.<br>
<br>
See the Testing/* directory.  When not running in dashboard<br>
client mode there isn't much logged though.<br>
<br>
> CMake Error at /opt/freeware/src/packages/BUILD/mariadb-10.3.1/64bit/CMakeFiles/CMakeTmp/CMakeLists.txt:14 (add_executable):<br>
>   Target "cmTC_d6385" links to target "-L/opt/freeware/lib<br>
>   -blibpath:/opt/freeware/lib::/usr/lib:/lib -I/usr/include<br>
>   -I/opt/freeware/include -L/opt/freeware/lib<br>
>   -blibpath:/opt/freeware/lib:/usr/lib:/lib -bmaxdata:0x80000000 -brtl<br>
>   -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpthreads" but the target was<br>
>   not found.  Perhaps a find_package() call is missing for an IMPORTED<br>
>   target, or an ALIAS target is missing?<br>
> <br>
> CMake Error at /opt/freeware/share/cmake/Modules/CheckSymbolExists.cmake:87 (try_compile):<br>
>   Failed to generate test project build system.<br>
> Call Stack (most recent call first):<br>
>   /opt/freeware/share/cmake/Modules/CheckCXXSymbolExists.cmake:39 (__CHECK_SYMBOL_EXISTS_IMPL)<br>
>   plugin/auth_gssapi/CMakeLists.txt:24 (CHECK_CXX_SYMBOL_EXISTS)<br>
<br>
I suspect mariadb's source is setting CMAKE_REQUIRED_LIBRARIES<br>
to a space-separated value instead of a ;-separated value.<br>
<br>
See the code here:<br>
<br>
  <a href="https://github.com/MariaDB/server/blob/ed0b84a027/plugin/auth_gssapi/CMakeLists.txt#L22-L24">
https://github.com/MariaDB/server/blob/ed0b84a027/plugin/auth_gssapi/CMakeLists.txt#L22-L24</a><br>
<br>
It assumes GSSAPI_LIBS is ;-separated, but the cache entry you<br>
quoted is a command-lien string with spaces.<br>
<br>
-Brad<br>
</div>
</span></font></div>
</body>
</html>