<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On Sunday, January 31, 2021 6:56:31 AM WET Liviu Andronic wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I've tried building Alpha 1 on Bionic but compilation ends up with this</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> error:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> g++ -fPIC -O2 -std=c++17  -std=c++17  -g -O2</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> -Wformat -Werror=format-security   -Wl,-z,defs -Wl,--as-needed</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> -Wl,-Bsymbolic-functions -Wl,-z,relro -o check_convert</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> tests/check_convert.o tests/dummy_functions.o tests/boost.o</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> liblyxsupport.a  -lQt5Core  -lmythes-1.2 -laspell  -lmagic</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> /usr/bin/ld: liblyxsupport.a(checksum.o): undefined reference to symbol</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> 'crc32' //lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> from command line</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> collect2: error: ld returned 1 exit status</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">This fails because there is a missing -lz in the g++ call.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">This is strange because it is missing in support but is present in tex2lyx (immediately above).</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Even more stranger I also get this error while compiling in:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="https://download.copr.fedorainfracloud.org/results/jamatos/lyx-devel/epel-7-x86_64/01858213-lyx-devel/build.log.gz">https://download.copr.fedorainfracloud.org/results/jamatos/lyx-devel/epel-7-x86_64/01858213-lyx-devel/build.log.gz</a> </p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">All the build logs can be found at:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="https://download.copr.fedorainfracloud.org/results/jamatos/lyx-devel/epel-7-x86_64/01858213-lyx-devel/">https://download.copr.fedorainfracloud.org/results/jamatos/lyx-devel/epel-7-x86_64/01858213-lyx-devel/</a> </p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I get the error and yet the compile does not stop as the error is ignored... (scratch head)</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">OK, I found it.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">We (purposely) ignore errors in the test stage, this is why the build proceeds. This is probably a remnant from previous versions.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">So the summary is that the compile only fails on the "make check" stage. The package built fine.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">José Abílio</p>
</body>
</html>