gevent-on-pypy / pypycore

gevent.core implemented as cffi module, might be used with pypy
56 stars 16 forks source link

make it compile (fix size of stat.st_nlink) #4

Closed hasenj closed 11 years ago

hasenj commented 11 years ago

I don't really understand what's going on, but on my OS X machine, trying to install this package would result in an error message saying:

VerificationError: function ev_stat_init: field 'stat.st_nlink' is declared as 8 bytes, but is really 2 bytes

So I just fixed this field to make it 2 bytes instead of 8. After making the change, everything went smoothly!

ldng commented 11 years ago

if sys.platform == 'linux2': return "long"

would not compile otherwise.

DISTRIB_DESCRIPTION="Ubuntu 12.10"

Python 2.7.3 (3eef596df459, Apr 06 2013, 09:53:06) [PyPy 2.0.0-beta2 with GCC 4.4.3] on linux2

croepha commented 10 years ago

I can confirm @ldng 's findings on ubuntu 12.04