meta-openwrt icon indicating copy to clipboard operation
meta-openwrt copied to clipboard

parser.so: undefined symbol: pluralParseAlloc

Open yong-ruilin opened this issue 3 years ago • 3 comments

When I visit openwrt in the browser, the following status appears: Bad Gateway The process did not produce any response

Then I also tried under the terminal. root@OpenWrt:/# /www/cgi-bin/luci
/usr/bin/lua: error loading module 'luci.template.parser' from file '/usr/lib/lua/5.1/luci/template/parser.so':
/usr/lib/lua/5.1/luci/template/parser.so: undefined symbol: pluralParseAlloc
stack traceback:
[C]: ?
[C]: in function 'require'
/usr/lib/lua/5.1/luci/util.lua:11: in main chunk
[C]: in function 'require'
/usr/lib/lua/5.1/luci/config.lua:4: in main chunk
[C]: in function 'require'
/usr/lib/lua/5.1/luci/cacheloader.lua:5: in main chunk
[C]: in function 'require'
/www/cgi-bin/luci:2: in main chunk
[C]: ?

Disassemble parser.so can find the pluralParseAlloc function

Please take a look at what's going on

yong-ruilin avatar Aug 23 '21 03:08 yong-ruilin

I have solved the problem, Add the following in luci_git.bb

do_install_prepend(){

sed -i 's/src\/template_lualib.c/src\/template_lualib.c src\/plural_formula.c/g' ${S}/modules/luci-base/CMakeLists.txt

}

yong-ruilin avatar Aug 25 '21 06:08 yong-ruilin

thanks @yong-ruilin can you make patch and send a pull request ?

kraj avatar Aug 25 '21 15:08 kraj

I still have problems image

RPCError

RPC call to session/access failed with error -32002: Access denied at handleCallReply (http://192.168.1.234/luci-static/resources/rpc.js:82:7)

Can you help me see the problem?

yong-ruilin avatar Aug 26 '21 02:08 yong-ruilin