[Tile-serving] [openstreetmap/osm2pgsql] zlib issue in windows 7 (#812)

Alireza Dabiri Nejad notifications at github.com
Fri Jan 12 23:49:41 UTC 2018


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:

1. Latest working binary: [0.0.352](https://ci.appveyor.com/project/openstreetmap/osm2pgsql/build/0.0.352)
2. First successful built binary that doesn't works: [0.0.397](https://ci.appveyor.com/project/openstreetmap/osm2pgsql/build/0.0.397)
3. The built binary that doesn't works with existing commit (previous commit was deleted so cannot compare those commits): [0.0.402](https://ci.appveyor.com/project/openstreetmap/osm2pgsql/build/0.0.402)
3. Compare of those two commits: [Compare 18880484c5f4e9e7f11a51b4c2a36f601af05e5a and 6c6dcd152c6c1fddfc197b94de137a44ffcf7c1f](https://github.com/openstreetmap/osm2pgsql/compare/18880484c5f4e9e7f11a51b4c2a36f601af05e5a...6c6dcd152c6c1fddfc197b94de137a44ffcf7c1f)

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 [regression in zlib](https://github.com/madler/zlib/issues/49) 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 **Found ZLIB: C:/libs/lib/zlib.lib (found version "1.2.8")** 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.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/812
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20180112/b0a98cdb/attachment.html>


More information about the Tile-serving mailing list