Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Use of "getline" breaks compilation on Mac OS X 10.6 #3

Closed
jacknagel opened this issue Jan 28, 2014 · 3 comments
Closed

Use of "getline" breaks compilation on Mac OS X 10.6 #3

jacknagel opened this issue Jan 28, 2014 · 3 comments

Comments

@jacknagel
Copy link

OS X 10.6 and older do not provide the "getline" function which is used in geoipupdate.c.

The usual approach is to detect this at configure time and provide some kind of fallback implementation.

I don't use this software myself, but a Homebrew user on 10.6 reported the issue: Homebrew/legacy-homebrew#25865

@borisz
Copy link
Contributor

borisz commented Jan 29, 2014

If you have the opportunity, please check if the workaround in bz/workaround-missing-getline works.

@sidney
Copy link

sidney commented Feb 6, 2014

I found this issue after getting the build failure using homebrew on Mac OS 10.6.8. The branch works for me. For other homebrew users who find this page from the downstream bug report, here are the exact steps to try this patch:

I used
brew edit geoipupdate
to edit the recipe, adding the branch option to the url line in the head function to make it say
url 'https://github.com/maxmind/geoipupdate.git', :branch => 'bz/workaround-missing-getline'
and then did
brew install --HEAD geoipupdate

@oschwald
Copy link
Member

oschwald commented Feb 7, 2014

Thanks. This was fixed by #4.

@oschwald oschwald closed this as completed Feb 7, 2014
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

4 participants