kuno/GeoIP — Issue #24: Compile fails on node > v0.4.8: invalid conversion from 'void (*)(eio_req*)' to 'int (*)(eio_req*)'
Author: TheDeveloper
Created: 2011-11-21 16:06:25+00:00
State: open

It appears a [change to eio](https://github.com/joyent/node/commit/88afc406caa64628a249d726659b3b054f8dc70d#commitcomment-580709) has broken calls to eio_custom(). When building, I get the error:

````
Waf: Entering directory `node_modules/GeoIP/build'
[ 2/11] cxx: src/netspeed.cc -> build/default/src/netspeed_1.o
../src/netspeed.cc: In static member function 'static v8::Handle geoip::NetSpeed::lookup(const v8::Arguments&)':
../src/netspeed.cc:116: error: invalid conversion from 'void (*)(eio_req*)' to 'int (*)(eio_req*)'
../src/netspeed.cc:116: error: initializing argument 1 of 'eio_req* eio_custom(int (*)(eio_req*), int, int (*)(eio_req*), void*)'
Waf: Leaving directory `node_modules/GeoIP/build'
Build failed: -> task failed (err #1):
{task: cxx netspeed.cc -> netspeed_1.o}
````

Others have [fixed the issue like so](https://github.com/LearnBoost/node-canvas/commit/de520fcece0ada84b6417c229bf5165099d0988c).