<div dir="ltr">Hello, everybody. I just dug through the archives looking to see if there might have been any workaround to this, but I haven't seen anything. The mosh website says that there is an OpenBSD pre-compiled package available for mosh, but I guess that must've been a few versions ago, as I haven't seen anything in the 5.x repositories as far as mosh, nor in the ports directories.<div>
<br></div><div>So anyway, I took it upon myself to compile things from scratch. Everything went well up until ::pselect() was undeclared. Here's the exact compiler error:</div><div><br></div><div><div>contract:/usr/src/mosh-1.2.4$ make</div>
<div>make all-recursive</div><div>Making all in src</div><div>Making all in protobufs</div><div>make all-am</div><div>Making all in util</div><div> CXX select.o</div><div>In file included from select.cc:33:</div><div>
select.h: In member function 'int Select::select(int)':</div><div>select.h:139: error: '::pselect' has not been declared</div><div>*** Error 1 in src/util (Makefile:288 'select.o': @echo " CXX " select.o;g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -fno-strict-overflow ...)</div>
<div>*** Error 1 in src (Makefile:296 'all-recursive')</div><div>*** Error 1 in . (Makefile:337 'all-recursive')</div><div>*** Error 1 in /usr/src/mosh-1.2.4 (Makefile:255 'all')</div></div><div><br>
</div><div>Anyway, I've found a couple of potential workarounds. First, there is one found at <a href="http://openbsd.7691.n7.nabble.com/PATCH-net-mosh-and-pselect-td227394.html">http://openbsd.7691.n7.nabble.com/PATCH-net-mosh-and-pselect-td227394.html</a> ; unfortunately, this appears to apply to a version of mosh found in an OpenBSD that has mosh in /usr/ports, which my 5.3 system most certainly does not.</div>
<div><br></div><div>Second, I did find raw source code for a pselect() function, but I'm not really sure if it's going to be compatible with what this particular application is going to use it for, it's been awhile since I worked with C/C++. I found that at <a href="ftp://ftp.fr.openbsd.org/pub/OpenBSD/src/usr.sbin/nsd/compat/pselect.c">ftp://ftp.fr.openbsd.org/pub/OpenBSD/src/usr.sbin/nsd/compat/pselect.c</a> , but it was provided as a pselect() for 'nsd', not for any generic package.</div>
<div><br></div><div>Anyway, any help that you guys could point me to or suggestions you can offer would very much be appreciated. Mosh rocks and I really want to have it on my only externally-facing system (the BSD one). Thanks in advance!</div>
<div><br></div><div>-Damon Getsman</div></div>