<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Verdana",sans-serif;
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">FEDORA 7:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">This seems like an issue with gcc default settings, probably because Fedora 7 is such an extremely old version (2007) and it has a
much older gcc. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I’ve made a tweak to the code in the repo which I think will avoid the problem. Please give it a try!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">(OR, just see if it works as-is with a still-supported Fedora version, ie 31 or 32)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">UBUNTU 17:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">RE “</span>complains bison and flex are not installed<span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">”
– I think that I now know why this happens, and it’s not a CWB issue. As of about 2 years ago, Ubuntu 17 is end-of-life and no longer available from the main repos; therefore apt-get will have failed to install bison, flex, etc. when asked to do so.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Solution: re-point APT at the Ubuntu “old-releases” repo for 17.10
<i>or</i>, and preferably, switch to targetting a version of Ubuntu that is still maintained, e.g. 18.04 or 20.04.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Generally I suggest you target up-to-date versions of the distros because sooner or later you will run into some dependency that is
impossible to fulfil on the old versions. Moreover, we don’t have any actual policy regarding which Linux distros/versions we support CWB on, but realistically, we can’t invest much effort in keeping CWB working on an OS that has been end-of-lifed by its maintainers.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> cwb-bounces@sslmit.unibo.it <cwb-bounces@sslmit.unibo.it>
<b>On Behalf Of </b>Maarten Janssen<br>
<b>Sent:</b> 03 May 2020 18:28<br>
<b>To:</b> CWBdev Mailing List <cwb@sslmit.unibo.it><br>
<b>Subject:</b> Re: [CWB] Segmentation fault<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">I am happy to contribute, and as mentioned, currently testing a heap of different Linux installations anyway to get my TEITOK installation working across the board -
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">As for Ubuntu: no, strangely, no errors, it simply runs, and then complains bison and flex are not installed. No idea why, as I said the script should detect Ubuntu fine since I think it is having the /etc/lsb_release, and running the exact
same command the script tries to execute installs it without a glitch.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">As for Fedora: all the packages install fine, and then the installer fails where I pasted the last few lines below; unfortunately, it is in Spanish, since I installed it quickly and did not bother to correct the language/keyboard settings...<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">-----------------<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">gcc -c -o cwb-itoa.o -O2 -Wall -fPIC -m64 -DUSE_TERMCAP -DUSE_READLINE -DCWB_REGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.22/share/cwb/registry"\" -DCOMPILE_DATE=\""dom 03 may 2020 19:21:02 CEST"\" -DCWB_VERSION=\"3.4.22\" -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include cwb-itoa.c<o:p></o:p></p>
</div>
<p class="MsoNormal"> .... link executable cwb-itoa<br>
rm -f cwb-itoa<br>
gcc -O2 -Wall -fPIC -m64 -DUSE_TERMCAP -DUSE_READLINE -o cwb-itoa cwb-itoa.o /home/mjanssen/cwb/utils/../cl/libcl.a -lm -lpcre -lglib-2.0
<br>
.... compile source file cwb-makeall.c<br>
rm -f cwb-makeall.o<br>
gcc -c -o cwb-makeall.o -O2 -Wall -fPIC -m64 -DUSE_TERMCAP -DUSE_READLINE -DCWB_REGISTRY_DEFAULT_PATH=\""/usr/local/cwb-3.4.22/share/cwb/registry"\" -DCOMPILE_DATE=\""dom 03 may 2020 19:21:02 CEST"\" -DCWB_VERSION=\"3.4.22\" -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
cwb-makeall.c<br>
.... link executable cwb-makeall<br>
rm -f cwb-makeall<br>
gcc -O2 -Wall -fPIC -m64 -DUSE_TERMCAP -DUSE_READLINE -o cwb-makeall cwb-makeall.o /home/mjanssen/cwb/utils/../cl/libcl.a -lm -lpcre -lglib-2.0
<br>
/usr/bin/ld: /home/mjanssen/cwb/utils/../cl/libcl.a(makecomps.o):(.bss+0x0): definiciones múltiples de `errmsg'; /home/mjanssen/cwb/utils/../cl/libcl.a(corpus.o):(.bss+0x20): primero se definió aquí<br>
collect2: error: ld devolvió el estado de salida 1<br>
make[1]: *** [Makefile:95: cwb-makeall] Error 1<br>
make[1]: se sale del directorio '/home/mjanssen/cwb/utils'<br>
make: *** [Makefile:101: utils] Error 2<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>