The most recent commit to net/mosh added a patch that tested autoconf results regarding bswap32/bswap64 etc. However, it forgot to #include "config.h". The other byte order sensitive code seems to #include "byteorder.h" which pulls in config.h. To fix mosh I added #include "byteorder.h" to crypto/ocb.cc. Patch included.
Created attachment 173088 [details] Fix crytpo/ocb.cc
Submitted upstream: https://github.com/mobile-shell/mosh/issues/783 Running build tests now.
Committed revision 419315.
A commit references this bug: Author: zi Date: Sat Jul 30 12:45:32 UTC 2016 New revision: 419315 URL: https://svnweb.freebsd.org/changeset/ports/419315 Log: - Fix build under 11.x PR: 211437 Submitted by: peter@ Sponsored by: Maximum Effort Changes: head/net/mosh/files/patch-ocb_cc