<div dir="ltr"><div dir="ltr">maybe you can just implement  _rtld_addr_phdr as a library and links againt it?. I remember doing something like that for non supported C runtimes (musl ...) in the past</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 19, 2018 at 7:38 PM Martin Kroček via dmd-internals <<a href="mailto:dmd-internals@puremagic.com">dmd-internals@puremagic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Now dmd can be compiled only for FreeBSD 11.<br>
<br>
But I have old server with FreeBSD 8.1 64bit and i need to install dmd on it.<br>
<br>
The main problem in function _rtld_addr_phdr in function findDSOInfoForAddr in file druntime/src/rt/sections_elf_shared.d<br>
This function does not exists on FreeBSD 8.1 64bit<br>
<br>
What's wrong with findDSOInfoForAddr?<br>
Can anyone make changes in dmd source code and try to find any way write function findDSOInfoForAddr without _rtld_addr_phdr?<br>
<br>
<br>
I find my own way, but it is very stupid way...<br>
I download dmd.2.066.1.freebsd-64 it works on 8.1, but very old version.<br>
I changed findDSOInfoForAddr to linux version without _rtld_addr_phdr<br>
Then I download dmd.2.067.0 source, changed findDSOInfoForAddr and compile it with dmd 2.066.1<br>
Then I download dmd.2.068.0 source changed findDSOInfoForAddr and compile it with dmd 2.067.0<br>
and more and more times<br>
Now I successfully builded version dmd.2.080.0 :-)<br>
<br>
It is good for me, but... It is very stupid way<br>
_______________________________________________<br>
dmd-internals mailing list<br>
<a href="mailto:dmd-internals@puremagic.com" target="_blank">dmd-internals@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/dmd-internals" rel="noreferrer" target="_blank">http://lists.puremagic.com/mailman/listinfo/dmd-internals</a><br>
</blockquote></div>