<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi again,<br>
<br>
It's nice to know that the client binary isn't really needed
anyway, but in the meanwhile, we have discovered the issue.<br>
<br>
First, some context.<br>
<br>
We use this repo to deploy dxspider:
<a class="moz-txt-link-freetext" href="https://github.com/ruilvo/dxspider-deployment/">https://github.com/ruilvo/dxspider-deployment/</a><br>
"updating" dxspider really means destroying the docker image and
just pulling it up again.<br>
<br>
So what was the problem?<br>
<br>
The docker image was using `FROM alpine:latest` as the source
image. Turns out that in some recent update alpine started
shipping with GCC 14.<br>
<br>
And this was the problem: the client binary does not build with
GCC 14. This is because many warnings turned into hard errors.
More info on: <a class="moz-txt-link-freetext" href="https://gcc.gnu.org/gcc-14/porting_to.html">https://gcc.gnu.org/gcc-14/porting_to.html</a><br>
On that page you find "Incorrect uses of the return statement
(-Werror=return-mismatch)", which is the problem we first
reported.<br>
<br>
I played around a bit with the source code and there are other
problems that prevent it from building with GCC 14.<br>
Namely "Implicit function declarations
(-Werror=implicit-function-declaration)", as the function `die` is
never explicitly declared in some of the source files (other than
the one where it is defined), and I remember something about how
main is declared as well.<br>
<br>
To fix this, some reworks is needed of the source code, or some
flags to be added to the makefile (-fpermissive and -Wno-error=…
for those options).<br>
<br>
73,<br>
CT7ALW<br>
</p>
<div class="moz-forward-container"><br>
<div dir="ltr">
<div>
<div class="gmail_quote gmail_quote_container">
<div dir="ltr" class="gmail_attr">---------- Forwarded
message ---------<br>
From: <b class="gmail_sendername" dir="auto">Kin</b> <span
dir="auto"><<a href="mailto:ea3cv@cronux.net"
moz-do-not-send="true" class="moz-txt-link-freetext">ea3cv@cronux.net</a>></span><br>
Date: Sun, Jan 5, 2025 at 1:34 PM<br>
Subject: RE: [Dxspider-support] Can't build dxspider from
source<br>
To: The DXSpider Support list <<a
href="mailto:dxspider-support@tobit.co.uk"
moz-do-not-send="true" class="moz-txt-link-freetext">dxspider-support@tobit.co.uk</a>><br>
Cc: CT2IWW <<a href="mailto:ct2iww@gmail.com"
moz-do-not-send="true" class="moz-txt-link-freetext">ct2iww@gmail.com</a>><br>
</div>
<br>
<br>
<div class="msg8546000913583721338">
<div link="blue" vlink="purple"
style="word-wrap:break-word" lang="ES">
<div class="m_8546000913583721338WordSection1">
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif">The
<span class="m_8546000913583721338SpellE">client.c</span>
can be <span class="m_8546000913583721338SpellE">compiled</span>
<span class="m_8546000913583721338GramE">once
spider</span> has <span
class="m_8546000913583721338SpellE">been</span>
<span class="m_8546000913583721338SpellE">updated</span>,
<span class="m_8546000913583721338SpellE">it</span>
<span class="m_8546000913583721338SpellE">is</span>
<span class="m_8546000913583721338SpellE">not</span>
a <span class="m_8546000913583721338SpellE">problem</span>
<span class="m_8546000913583721338SpellE">for</span>
<span class="m_8546000913583721338SpellE">the</span>
<span class="m_8546000913583721338SpellE">node</span>
<span class="m_8546000913583721338SpellE">not</span>
<span class="m_8546000913583721338SpellE">to</span>
<span class="m_8546000913583721338SpellE">work</span>,
and <span class="m_8546000913583721338SpellE">it</span>
<span class="m_8546000913583721338SpellE">is</span>
<span class="m_8546000913583721338SpellE">not</span>
<span class="m_8546000913583721338SpellE">necessary</span>
<span class="m_8546000913583721338SpellE">either</span>.</span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"> </span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif">Kin</span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"> </span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif">EA3CV-2
<a href="http://dxcluster.cronux.net"
target="_blank" moz-do-not-send="true">dxcluster.cronux.net</a>
7300</span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"><a
href="https://clustermap.cronux.net/map.html"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://clustermap.cronux.net/map.html</a></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"><a
href="https://clustermap.cronux.net/route_finder.html" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://clustermap.cronux.net/route_finder.html</a></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"> </span></p>
<div
style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">De:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
Dxspider-support <<a
href="mailto:dxspider-support-bounces@tobit.co.uk" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">dxspider-support-bounces@tobit.co.uk</a>>
<b>En nombre de </b>CT2IWW via Dxspider-support<br>
<b>Enviado el:</b> domingo, 5 de enero de 2025
14:14<br>
<b>Para:</b> <a
href="mailto:dxspider-support@tobit.co.uk"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">dxspider-support@tobit.co.uk</a><br>
<b>CC:</b> CT2IWW <<a
href="mailto:ct2iww@gmail.com" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">ct2iww@gmail.com</a>><br>
<b>Asunto:</b> [Dxspider-support] Can't build
dxspider from source</span></p>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Hi everyone,<br>
<br>
We were updating dxspider, and faced with the
following build error:<br>
<br>
=> [cluster 13/19] RUN git clone -b mojo <br>
git://<a
href="http://scm.dxcluster.org/scm/spider"
target="_blank" moz-do-not-send="true">scm.dxcluster.org/scm/spider</a>
/spider 8.4s<br>
=> [cluster 14/19] RUN mkdir -p /spider/local
/spider/local_cmd <br>
/spider/local_data 0.2s<br>
=> [cluster 15/19] RUN find /spider/. -type d
-exec chmod 2775 {} ; <br>
&& find /spider/. -type f -name '*.pl'
-exec chmod 775 {} <br>
; 0.8s<br>
=> ERROR [cluster 16/19] RUN (cd /spider/src
&& make) 0.2s<br>
------<br>
> [cluster 16/19] RUN (cd /spider/src
&& make):<br>
0.176 cc -g -O -c -o client.o client.c<br>
0.200 client.c: In function 'fcb_handler':<br>
0.200 client.c:558:41: error: 'return' with no
value, in function <br>
returning non-void [-Wreturn-mismatch]<br>
0.200 558
| return;<br>
0.200
| ^~~~~~<br>
0.200 client.c:356:5: note: declared here<br>
0.200 356 | int fcb_handler(sel_t *sp, int in,
int out, int err)<br>
0.200 | ^~~~~~~~~~~<br>
0.206 client.c: At top level:<br>
0.206 client.c:864:1: error: return type defaults
to 'int' [-Wimplicit-int]<br>
0.206 864 | main(int argc, char *argv[])<br>
0.206 | ^~~~<br>
[+] Running 0/1 [<builtin>: client.o] Error
1<br>
<span
style="font-family:"Segoe UI Symbol",sans-serif">⠴</span>
Service cluster Building 21.6s<br>
failed to solve: process "/bin/sh -c (cd
${SPIDER_INSTALL_DIR}/src && <br>
make)" did not complete successfully: exit code: 2<br>
<br>
Seems that the `mojo` branch has a broken build.
Can this be fixed?<br>
<br>
Thank you, 73, and HNY.</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Paulo CT2IWW</p>
</div>
<div>
<p class="MsoNormal">Rui CT7ALW</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>