<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><div class="">Please try the attached patch. It has not been tested, yet it compiles<br class="">with no LibSSH available.<br class=""></div></div></blockquote></div><br class=""><div class="">This appears to work nicely. After running <i class="">autoreconf</i> and <i class="">./configure --disable-libssh</i> it builds a <i class="">bird</i> with RPKI support, which is still "lean":</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div style="font-size: 13px;" class="">DEV 2.x MIPS:~/bird-patch> <b class="">ldd bird</b></div></div><div style="font-size: 13px;" class=""><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>linux-vdso.so.1 (0x771ed000)</div></div><div style="font-size: 13px;" class=""><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libpthread.so.0 => /lib/mips-linux-gnu/libpthread.so.0 (0x770a2000)</div></div><div style="font-size: 13px;" class=""><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libc.so.6 => /lib/mips-linux-gnu/libc.so.6 (0x76f20000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>/lib/ld.so.1 => /lib64/ld.so.1 (0x771bc000)</div></div></blockquote><div class=""><br class=""></div><div class="">however, attempts to build it without <i class="">--disable-libssh</i> result in a linking error:</div><div class=""><br class=""></div><div class=""><div class="">/tmp/ccz8W8kL.ltrans12.ltrans.o: In function `rpki_init_cache':</div><div class="">/home/csch/bird-patch/proto/rpki/rpki.c:583: undefined reference to `rpki_tr_ssh_init'</div><div class="">/home/csch/bird-patch/proto/rpki/rpki.c:583: undefined reference to `rpki_tr_ssh_init'</div><div class="">collect2: error: ld returned 1 exit status</div></div><div class=""><br class=""></div><div class=""><b class="">It still works without the patch</b>, but (as mentioned) yields a <i class="">bird</i> with <i class="">many</i> external dependencies:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div style="font-size: 13px;" class="">DEV 2.x MIPS:~/bird> <b class="">ldd bird</b></div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>linux-vdso.so.1 (0x7755a000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libssh.so.4 => /usr/lib/mips-linux-gnu/libssh.so.4 (0x773bb000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libpthread.so.0 => /lib/mips-linux-gnu/libpthread.so.0 (0x7738e000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libc.so.6 => /lib/mips-linux-gnu/libc.so.6 (0x7720c000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>librt.so.1 => /lib/mips-linux-gnu/librt.so.1 (0x771f4000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libcrypto.so.1.0.2 => /usr/lib/mips-linux-gnu/libcrypto.so.1.0.2 (0x77034000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libz.so.1 => /lib/mips-linux-gnu/libz.so.1 (0x7700b000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libgssapi_krb5.so.2 => /usr/lib/mips-linux-gnu/libgssapi_krb5.so.2 (0x76fb8000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>/lib/ld.so.1 => /lib64/ld.so.1 (0x77529000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libdl.so.2 => /lib/mips-linux-gnu/libdl.so.2 (0x76fa5000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libkrb5.so.3 => /usr/lib/mips-linux-gnu/libkrb5.so.3 (0x76ed6000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libk5crypto.so.3 => /usr/lib/mips-linux-gnu/libk5crypto.so.3 (0x76e91000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libcom_err.so.2 => /lib/mips-linux-gnu/libcom_err.so.2 (0x76e7d000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libkrb5support.so.0 => /usr/lib/mips-linux-gnu/libkrb5support.so.0 (0x76e62000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libkeyutils.so.1 => /lib/mips-linux-gnu/libkeyutils.so.1 (0x76e4e000)</div></div><div class=""><div style="font-size: 13px;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>libresolv.so.2 => /lib/mips-linux-gnu/libresolv.so.2 (0x76e28000)</div></div></blockquote><div class=""><br class=""></div><div class="">To summarize → your patch works fine in "the forward direction" (towards solving the problem), but apparently creates another problem when building <i class="">with libssh</i><span style="font-style: normal;" class=""> now.</span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div class=""><span style="font-style: normal;" class="">🤷🏼♂️</span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div class=""><span style="font-style: normal;" class="">Thanks for your efforts!</span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div class=""><span style="font-style: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Clemens</span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div class=""><br class=""></div></body></html>