i have a problem with homeloader.so after upgrading to php 5.4 using easyapache.
[23-Jul-2013 12:17:55 Asia/Kuala_Lumpur] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/homeloader.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/homeloader.so: cannot open shared object file: No such file or directory in Unknown on line 0
root@cp [~]# locate homeloader
/usr/local/cpanel/src/userphp/homeloader.c
/usr/local/cpanel/src/userphp/homeloader.loT
/usr/local/cpanel/src/userphp/php_homeloader.h
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/homeloader.so <-- 20100525="" code="" nbsp="" no="">-->
current working directory is
/usr/local/lib/php/extensions/no-debug-non-zts-20100525/
trying to compile homeloader.c manually but have error.
root@cp [/usr/local/cpanel/src/userphp]# ./install
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
.....................blablabla
and finally
cc -I. -I/usr/local/cpanel/src/userphp -DPHP_ATOM_INC -I/usr/local/cpanel/src/userphp/include -I/usr/local/cpanel/src/userphp/main -I/usr/local/cpanel/src/userphp -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/cpanel/src/userphp/homeloader.c -fPIC -DPIC -o .libs/homeloader.o
/usr/local/cpanel/src/userphp/homeloader.c:46: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âhomeloader_functionsâ
/usr/local/cpanel/src/userphp/homeloader.c:149: error: âhomeloader_functionsâ undeclared here (not in a function)
gmake: *** [homeloader.lo] Error 1
the solution:
vi /usr/local/cpanel/src/userphp/homeloader.c
go to line 46
type
:46
on vireplace
function_entry
with static zend_function_entry
exit vi. type
:wq
./install
and success: :)
Build complete.
Don't forget to run 'make test'.
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20100525/
root@cp [/usr/local/cpanel/src/userphp]# updatedb
root@cp [/usr/local/cpanel/src/userphp]# locate homeloader.so
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/homeloader.so
/usr/local/lib/php/extensions/no-debug-non-zts-20100525/homeloader.so <-- code="" success="">-->
No comments:
Post a Comment