laruence / php-lua

This extension embeds the lua interpreter and offers an OO-API to lua variables and functions.
http://pecl.php.net/package/lua
Other
149 stars 50 forks source link

Error in MAC system, MAC vesion:OS X El Capitan 10.11.6 ,Lua vesion:lua 5.3.2 #24

Open w297088867 opened 8 years ago

w297088867 commented 8 years ago
                                                           ^

/Users/huangjianfeng/Downloads/lua-2.0.2/lua-2.0.2/lua.c:820:24: warning: incompatible pointer types assigning to 'zend_objectvalue ()(zend_class_entry )' (aka 'struct _zend_objectvalue ()(struct _zend_classentry )') from 'zend_object (zend_class_entry )' (aka 'struct _zend_object (struct _zend_class_entry *)') [-Wincompatible-pointer-types] lua_ce->create_object = php_lua_create_object; ^ ~~~~~ /Users/huangjianfeng/Downloads/lua-2.0.2/lua-2.0.2/lua.c:822:22: error: no member named 'offset' in 'struct _zend_object_handlers' lua_object_handlers.offset = XtOffsetOf(php_lua_object, obj);


fatal error: too many errors emitted, stopping now [-ferror-limit=]
26 warnings and 20 errors generated.
make: *_\* [lua.lo] Error 1