<html><head></head><body><div>Hi All,</div><div><br></div><div>On Sun, 2017-10-01 at 12:30 +0200, Abou Al Montacir wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>> In fastcgi and fcl-web, something goes wrong with linking:</pre><pre>>    ELF interpreter /usr/libexec/ld-elf.so.1 not found</pre><pre>> I have no idea where this comes from as all references to libexec are</pre><pre>> either in fpmake itself after compilation or in t_bsd.pas (which code I</pre><pre>> removed below anyway to be sure).</pre><pre>As far as I can see this seems to be part of binutils-2.25 but not in Debian.</pre><pre><a href="http://nixdoc.net/man-pages/FreeBSD/ld-elf.so.1.1.html" title="Click to open http://nixdoc.net/man-pages/FreeBSD/ld-elf.so.1.1.html">http://nixdoc.net/man-pages/FreeBSD/ld-elf.so.1.1.html</a> gives some explanation about this:</pre><pre>The <b>ld-elf.so.1</b> utility itself is loaded by the kernel together with any</pre><pre>     dynamically-linked program that is to be executed.  The kernel transfers</pre><pre>     control to the dynamic linker.  After the dynamic linker has finished</pre><pre>     loading, relocating, and initializing the program and its required shared</pre><pre>     objects, it transfers control to the entry point of the program.</pre></blockquote><div>I looked a little bit more in this issue and understood it.</div><div>The path <i>/usr/libexec/ld-elf.so.1</i> is inserted by the ld-bfd itself.</div><div>One simple way to fix it is to modify the build configuration file as follows:</div><pre>$ cat fpc-3.2.2+dfsg/debian/deb-build-fpc.cfg </pre><pre># FPC configuration file for build system tools</pre><pre>-k-z relro -z now <b><font color="#008000">-I /lib/ld-kfreebsd-x86-64.so.1</font></b></pre><pre>-Fl/usr/lib/x86_64-kfreebsd-gnu</pre><pre><br></pre><div>So it looks like a bug in the port rather than in FPC itself.</div><div><br></div><div>However, even after solving this, we have still other issues.</div><pre>-- <br></pre><pre>Cheers,
Abou Al Montacir</pre></body></html>