Hi,

This does not look to be a problem with serious consequences, but if one
wants to have a completely clean build, it might be interesting to
investigate this further. When compiling version 048738b28 with VS2015 I
get two "locally defined" linking warnings coming from zlib:

zlib.lib(zutil.obj) : warning LNK4217: locally defined symbol _free
imported in function _zcfree
zlib.lib(zutil.obj) : warning LNK4217: locally defined symbol _malloc
imported in function _zcalloc

After googling it [1], it looks like this is due to mismatch between
zlib and fossil compiler options for runtime selection (static
multi-threaded vs. dynamic). Indeed zlib.lib is compiled with -MD (line
29 in compat\zlib\win32\Makefile.msc) and fossil static with -MT (line
235 in win\Makefile.msc). Compiling zlib with -MT eliminates the
warnings, neverless when doing this from the fossil Makefile (by adding
`LOC=-MT' in line 677) one gets another VS warning about overriding
options (which cannot be disabled).

I am not an expert, what could be a clean solution here (without
touching zlib's Makefile)?

Best regards,
Daniel

[1] https://stackoverflow.com/a/6979586
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to