Skip to content

Fix for compiling error with cygwin #2

merged 1 commit into from Feb 10, 2012

2 participants


Just made it, to compile this under cygwin yay
But to do so, I had to adjust the make file slightly.
I've added a comment to the commit how / why: das-peter@4e88987#commitcomment-954054

Thank you very much for this handy tool & best regards


If you try to compile this using cygwin you might get an error like this:

$ make
cc -Wall -Wno-unused -pedantic  -lGeoIP -o geoip geoip.c
/tmp/ccmbUZq8.o:geoip.c:(.text+0x1f): undefined reference to `_GeoIP_open_type'
/tmp/ccmbUZq8.o:geoip.c:(.text+0x8e): undefined reference to `_GeoIP_record_by_addr'
/tmp/ccmbUZq8.o:geoip.c:(.text+0x179): undefined reference to `_GeoIP_record_by_addr'
collect2: ld returned 1 exit status
Makefile:8: recipe for target `geoip' failed
make: *** [geoip] Error 1

With the above change the error was gone.
Frankly speaking I've no clue why, mainly because I've no clue about compiling at all =)
The following article encouraged me to give the change above a shot:

@cosimo cosimo merged commit d3753d4 into cosimo:master Feb 10, 2012
cosimo commented Feb 10, 2012

Thanks! Appreciated.

Are you able to run varnish on cygwin? That's interesting.


Wow, nice reaction time :)

There are some special steps documented about how to use varnish with cygwin (and even compile it):
So far it looks like everything works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.