提问人:nikolashaD 提问时间:12/23/2012 最后编辑:Mateusz PiotrowskinikolashaD 更新时间:6/10/2015 访问量:350
在 Fedora 17 上安装 php_gtk 时出现“make: *** [ext/gtk+/php_gtk+.lo] Error 1”
Getting "make: *** [ext/gtk+/php_gtk+.lo] Error 1" while installing php_gtk on Fedora 17
问:
我想在 Fedora 17 上安装。php_gtk
我已经下载并尝试安装它。然后我这样做了:php-gtk-2.0.1
./buildconf
./configure
make
命令后,出现以下错误:make
In file included from /home/n/Downloads/php-gtk-2.0.1/./ext/gtk+/php_gtk+.c:23:0:
/home/n/Downloads/php-gtk-2.0.1/main/php_gtk.h:307:64: error: unknown type name 'function_entry'
In file included from /home/n/Downloads/php-gtk-2.0.1/./ext/gtk+/php_gtk+.c:23:0:
/home/n/Downloads/php-gtk-2.0.1/main/php_gtk.h:308:68: error: unknown type name 'function_entry'
In file included from /home/n/Downloads/php-gtk-2.0.1/./ext/gtk+/php_gtk+.c:23:0:
/home/n/Downloads/php-gtk-2.0.1/main/php_gtk.h:490:64: error: unknown type name 'function_entry'
In file included from /home/n/Downloads/php-gtk-2.0.1/./ext/gtk+/php_gtk+.c:23:0:
/home/n/Downloads/php-gtk-2.0.1/main/php_gtk.h:506:66: error: unknown type name 'function_entry'
make: *** [ext/gtk+/php_gtk+.lo] Error 1
我该如何解决这个问题?
答:
0赞
Thomas
1/20/2013
#1
如果你有 php-5.4,你需要改成
但是,如果解决了这个问题,您可能会发现其他问题。function_entry
zend-function_entry
评论
0赞
Peter
3/17/2015
这确实应该zend_function_entry(用下划线替换连字符)。bugs.php.net/bug.php?id=61479 建议在源代码中将“pval”替换为“zval”,但整个故事可能有点复杂。只需将“function_entry”替换为“zend_function_entry”就足以进行一个简单的测试,我使用此处发布的代码运行该测试:php.webtutor.pl/en/2011/07/07/...
评论