Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

The Windows documentation is out-of-date #48

Closed
tpoechtrager opened this issue Jan 2, 2015 · 5 comments
Closed

The Windows documentation is out-of-date #48

tpoechtrager opened this issue Jan 2, 2015 · 5 comments

Comments

@tpoechtrager
Copy link
Contributor

  • Many documents state zlib is needed to build GeoIP, but that's not the case.
    GeoIP seems to build fine without zlib. Can't even find any zlib.h includes.

    To name a files few that have zlib traces:

    • Makefile.win32
    • Readme.MinGW
    • READMEwin32.txt
  • READMEwin32static.txt is wrong. I don't get a static library that way.

  • GeoIPWinDLL.patch seems to be out-of-date.

@oschwald
Copy link
Member

oschwald commented Jan 2, 2015

Thanks. I think the zlib requirement is from when geoipupdate was included with libGeoIP.

@oschwald
Copy link
Member

oschwald commented Jan 8, 2015

Do you recall what problems you had with the nmake directions in READMEwin32static.txt? I do get a static library when following them, but both it and the DLL seem to be missing the symbol for GeoIP_region_name_by_code even though it is linked against the correct obj file. Otherwise it seems fine from what I can tell.

@tpoechtrager
Copy link
Contributor Author

Do you recall what problems you had with the nmake directions in READMEwin32static.txt?
I do get a static library when following them

I just get a DLL and an import library, but not a static one.

Look at the link command:

link /DLL /nologo /subsystem:console [...] /out:GeoIP.dll /implib:GeoIP.lib

but both it and the DLL seem to be missing the symbol for GeoIP_region_name_by_code
even though it is linked against the correct obj file.

Wrong DLL linkage, you need to include GeoIP.h in regionName.c.

@oschwald
Copy link
Member

oschwald commented Jan 9, 2015

Thanks. You were right on both counts.

@oschwald
Copy link
Member

Thank you. I think all of the issues have been addressed in master now.

oschwald added a commit that referenced this issue Jan 12, 2015
1.6.4: Windows and Misc Updates

* Update Fips codes (Boris Zentner)
* Several issues with the MinGW build were fixed. (Thomas Pöchtrager. Github
  #46.)
* Use a constructor in pread.c to ensure the critical section is always
  initialized. (Thomas Pöchtrager. Github #47.)
* Added missing include of `io.h` on Windows. (Thomas Pöchtrager. Github #49.)
* Fixed `configure` warning that `'missing' script is too old or missing`.
  (Reported by Floren Munteanu. Github #33.)
* Previously `nmake /f Makefile.vc clean` would fail on Windows. This was
  fixed.
* Obsolete win32 and NetWare make files were removed.
* Numerous documentation updates. (Reported by Thomas Pöchtrager. GitHub #48.)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants