@penguin42 @thelastpsion works on netbsd. adding /usr/pkg/lib to /etc/ld.so.conf should also work but strange /usr/pkg/lib is not picked up by default... setting rpath at build time should fix this: LDFLAGS="-L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib" to configure.
@penguin42 @thelastpsion usually ./configure --prefix=/usr/pkg should take care of these things... (assuming you are making/updating a port).
@kaveman @penguin42 Both of these worked - thank you! I did have to add LIBS="-lreadline" as well (to the LDFLAGS version) to make sure that it picks readline and not libedit
And now I've got a new issue... 😅
--- plpftp-ftp.o ---
ftp.cc: In member function 'void ftp::initReadline()':
ftp.cc:1502:40: error: cannot convert 'ftp::do_completion' from type 'char** (ftp::)(char*, int, int)' to type 'char** (*)(const char*, int, int)'
1502 | rl_attempted_completion_function = do_completion;
| ^~~~~~~~~~~~~
*** [plpftp-ftp.o] Error code 1
I'm out of brainpower for tonight, so this will be for another day. But thank you for helping me make some progress!
@thelastpsion Note that it's wanting constness for the first argument.
@penguin42 It just seems odd, because this error doesn't happen on the three other platforms that plptools compiles on.
EDIT: A bug has been picked up by another maintainer that's very likely related to this but just didn't show up on the other platforms. I'll check in the morning.
@thelastpsion Not obvious to me, but it's possible it's due to the BSDs having a different readline (wouldn't surprise me if they've not got the GNU version?) - but hmm that error is the wrong way around for that. I look forward to the answer 🙂