FS#45704 - [lua-sec] ssl.so: undefined symbol: luaL_optint

Attached to Project: Community Packages
Opened by Ivan Agarkov (kreon) - Sunday, 19 July 2015, 00:03 GMT
Last edited by Anatol Pomozov (anatolik) - Sunday, 19 July 2015, 21:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Anatol Pomozov (anatolik)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
lua-sec's ssl.so doesn't work with latest lua package.
Rebuilding from https://github.com/brunoos/luasec fixes this problem.

Additional info:
lua: 5.3.1-1
lua-sec: 1:0.5-3


Steps to reproduce:
[kreon@xaron ~]$ sudo pacman -Sy lua-sec
:: Synchronizing package databases...
core 121.6 KiB 746K/s 00:00 [#######################################################################] 100%
extra 1743.7 KiB 3.17M/s 00:01 [#######################################################################] 100%
community 2.7 MiB 2.44M/s 00:01 [#######################################################################] 100%
multilib 125.9 KiB 220K/s 00:01 [#######################################################################] 100%
resolving dependencies...
looking for conflicting packages...

Packages (2) lua-socket-3.0rc1-7 lua-sec-1:0.5-3

Total Installed Size: 0.29 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring [#######################################################################] 100%
(2/2) checking package integrity [#######################################################################] 100%
(2/2) loading package files [#######################################################################] 100%
(2/2) checking for file conflicts [#######################################################################] 100%
(2/2) checking available disk space [#######################################################################] 100%
(1/2) installing lua-socket [#######################################################################] 100%
(2/2) installing lua-sec [#######################################################################] 100%
[kreon@xaron ~]$ lua -lssl
lua: error loading module 'ssl.core' from file '/usr/lib/lua/5.3/ssl.so':
/usr/lib/lua/5.3/ssl.so: undefined symbol: luaL_optint
stack traceback:
[C]: in ?
[C]: in function 'require'
/usr/share/lua/5.3/ssl.lua:7: in main chunk
[C]: in function 'require'
[C]: in ?


This task depends upon

Closed by  Anatol Pomozov (anatolik)
Sunday, 19 July 2015, 21:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 0.5-4
Comment by Doug Newgard (Scimmia) - Sunday, 19 July 2015, 04:16 GMT
pacman -Sy lua-sec is a problem. Never run that.

Update your entire system and see if the problem goes away.
Comment by Ivan Agarkov (kreon) - Sunday, 19 July 2015, 07:24 GMT
> pacman -Sy lua-sec is a problem. Never run that.
It's just a proof I use latest package. System update can't fix that problem until lua-sec is builded with wrong lua version.
You can try it yourself.
Same bug for another lua package: https://bugs.archlinux.org/task/45043

Don't claim me an idiot who doesn't know the linux basics.
Comment by Doug Newgard (Scimmia) - Sunday, 19 July 2015, 13:12 GMT
That command is evidence of partial updates, which are unsupported. I have to make sure that's not what's causing the issue.
Comment by Anatol Pomozov (anatolik) - Sunday, 19 July 2015, 16:32 GMT
I confirm the issue. luasec release 0.5 is not compatible with lua-5.3, I have to pull a few additional patches from HEAD.
Comment by Anatol Pomozov (anatolik) - Sunday, 19 July 2015, 16:48 GMT
luasec version 0.5-4 just pushed to repository. It contains upstream patches for lua-5.3 compatibility. Please try this version.
Comment by Ivan Agarkov (kreon) - Sunday, 19 July 2015, 21:23 GMT
Yes, it works now. Thank you!

Loading...