<p>I've tried to use the latest version binary built artifacts from appveyor (also mentioned 0.94.0 link in Readme), and run on windows 7 64bit. But I've got an error about CreateFile2 not located in KERNEL32.dll. But latest 0.92.0 binary works like a charm on my OS. So I done some searches to find out what's the cause of the problem. Here are whats I found:</p>
<ol>
<li>Latest working binary: <a href="https://ci.appveyor.com/project/openstreetmap/osm2pgsql/build/0.0.352" rel="nofollow">0.0.352</a></li>
<li>First successful built binary that doesn't works: <a href="https://ci.appveyor.com/project/openstreetmap/osm2pgsql/build/0.0.397" rel="nofollow">0.0.397</a></li>
<li>The built binary that doesn't works with existing commit (previous commit was deleted so cannot compare those commits): <a href="https://ci.appveyor.com/project/openstreetmap/osm2pgsql/build/0.0.402" rel="nofollow">0.0.402</a></li>
<li>Compare of those two commits: <a href="https://github.com/openstreetmap/osm2pgsql/compare/18880484c5f4e9e7f11a51b4c2a36f601af05e5a...6c6dcd152c6c1fddfc197b94de137a44ffcf7c1f">Compare 18880484c5f4e9e7f11a51b4c2a36f601af05e5a and 6c6dcd152c6c1fddfc197b94de137a44ffcf7c1f</a></li>
</ol>
<p>Well found nothing by comparing those two (not familiar with the osm2pgsql project very well), So do some more searches and found that there is a <a href="https://github.com/madler/zlib/issues/49">regression in zlib</a> that osm2pgsql uses, with the same behavior. The regression is in zlib 1.2.8 and fixed in 1.2.9. By reading the log files of appveyor builds, found <strong>Found ZLIB: C:/libs/lib/zlib.lib (found version "1.2.8")</strong> line, so osm2pgsql uses the same version with regression. So I think the problem came from zlib. I really needs osm2pgsql latest version that works on my OS, and above results are the all things I can do to find a fix for the problem.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/812">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AD2-7j358jW9Boh0bUw-uNovrXzVywObks5tJ--VgaJpZM4Rc_w8">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7pH9UQpj9qW1LyK4kZfPd3fbggylks5tJ--VgaJpZM4Rc_w8.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/issues/812"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/osm2pgsql","title":"openstreetmap/osm2pgsql","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/osm2pgsql"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"zlib issue in windows 7 (#812)"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/osm2pgsql/issues/812"}}}</script>