Hi Bryce,
Eduard already posted the output from his attempt to compile Inkscape using the current cmake build system and so will not regurgitate that.
From that post, the affected functions are strdup, close, read, unlink, fileno, dup2 and nextafter. All of these functions have an equivalent "_" (underscore) version within Windows and so, I was able to substitute those in the source files and get the compiler to remove all those undefined references.
I am still stumped with the following:
Z:/foss/gcc/64bit/gcc-posix-5.3.0/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-mingw_vfprintf.o):mingw_vfprintf.c:(.text+0x11): undefined reference to `_lock_file'
Z:/foss/gcc/64bit/gcc-posix-5.3.0/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-mingw_vfprintf.o):mingw_vfprintf.c:(.text+0x33): undefined reference to `_unlock_file'
Z:/foss/gcc/64bit/gcc-posix-5.3.0/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-mingw_vprintf.o):mingw_vprintf.c:(.text+0x16): undefined reference to `_lock_file'
Z:/foss/gcc/64bit/gcc-posix-5.3.0/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-mingw_vprintf.o):mingw_vprintf.c:(.text+0x44): undefined reference to `_unlock_file'
collect2.exe: error: ld returned 1 exit status
src/CMakeFiles/inkscape_base.dir/build.make:18500: recipe for target `lib/libinkscape_base.dll' failed
make[2]: *** [lib/libinkscape_base.dll] Error 1
CMakeFiles/Makefile2:666: recipe for target `src/CMakeFiles/inkscape_base.dir/all' failed
make[1]: *** [src/CMakeFiles/inkscape_base.dir/all] Error 2
Makefile:127: recipe for target `all' failed
make: *** [all] Error 2
I don't yet know how to fix this.
Please let me know if you have any suggestions or questions.
Thanks,
Partha