With that patch applied, I now get "undefined reference to
'rpl_gethostname':
:
libtool: link: x86_64-w64-mingw32-ranlib
libgui/graphics/.libs/libgui-graphics.a
libtool: link: x86_64-w64-mingw32-g++ -std=gnu++11 -pthread -Wall -W
-Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings
-Wcast-align -Wcast-qual -g -O2 -Wl,-rpath-link
-Wl,/home/philip/devel/octdev/mxe/mxe_64b_20160617/usr/x86_64-w64-mingw32/lib
-Wl,--export-all-symbols -o src/.libs/mkoctfile.exe
src/src_mkoctfile-mkoctfile.o
-L/home/philip/devel/octdev/mxe/mxe_64b_20160617/usr/x86_64-w64-mingw32/lib
liboctave/wrappers/.libs/libwrappers.a libgnu/.libs/libgnu.a -lgdi32
-lws2_32 -luser32 -lkernel32 -pthread
liboctave/wrappers/.libs/libwrappers.a(liboctave_wrappers_libwrappers_la-unistd-wrappers.o):
In function `octave_gethostname_wrapper':
/home/philip/devel/octdev/mxe/mxe_64b_20160617/tmp-default-octave/octave-4.1.0+/liboctave/wrappers/unistd-wrappers.c:320:
undefined reference to `rpl_gethostname'
collect2: error: ld returned 1 exit status
Makefile:14562: recipe for target 'src/mkoctfile.exe' failed
make[4]: *** [src/mkoctfile.exe] Error 1