FS#35766 - lua51-zlib is broken

Attached to Project: Community Packages
Opened by Krzysztof Warzecha (hiciu) - Wednesday, 12 June 2013, 14:29 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 13 June 2013, 12:36 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

lua5.1 can't load zlib module:

$ sudo journalctl -b -u prosody
...
Jun 12 12:31:20 vps prosody[12575]: Error initializing module 'compression' on 'hiciu.org': error loading module 'zlib' from file '/usr/lib/lua/5.1/zlib.so':
...
$ lua5.1
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> require 'zlib'
error loading module 'zlib' from file '/usr/lib/lua/5.1/zlib.so':
/usr/lib/lua/5.1/zlib.so: undefined symbol: luaL_prepbuffsize
...
$ LC_ALL=C pacman -Qi lua51-zlib
Name : lua51-zlib
Version : 0.2-4
Description : Simple streaming interface to zlib for Lua.
Architecture : x86_64
URL : http://github.com/brimworks/lua-zlib
Licenses : MIT
Groups : None
Provides : None
Depends On : zlib lua51
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : lua-lzlib
Replaces : None
Installed Size : 56.00 KiB
Packager : Sergej Pupykin <pupykin.s+arch@gmail.com>
Build Date : Wed Mar 13 14:37:16 2013
Install Date : Wed Jun 12 12:42:21 2013
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

I've tried to rebuild package but with fresh package I'm getting same error. It works if I use version from git. System is up-to-date, I'm not using testing or unofficial repos.

Steps to reproduce:
1. pacman -S lua51-zlib
2. lua5.1 -l zlib

Expected:
- lua prompt.

Got:
- lua5.1: error loading module 'zlib' from file '/usr/lib/lua/5.1/zlib.so': /usr/lib/lua/5.1/zlib.so: undefined symbol: luaL_prepbuffsize
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 13 June 2013, 12:36 GMT
Reason for closing:  Fixed

Loading...