Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser.so: undefined symbol: pluralParseAlloc #117

Open
yong-ruilin opened this issue Aug 23, 2021 · 3 comments
Open

parser.so: undefined symbol: pluralParseAlloc #117

yong-ruilin opened this issue Aug 23, 2021 · 3 comments

Comments

@yong-ruilin
Copy link

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
Copy link
Author

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

}

@kraj
Copy link
Owner

kraj commented Aug 25, 2021

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

@yong-ruilin
Copy link
Author

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 yong-ruilin reopened this Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants