#14997 closed defect (fixed)
Allow dovecot to work with lua-5.4.3
Reported by: | Douglas R. Reno | Owned by: | Douglas R. Reno |
---|---|---|---|
Priority: | normal | Milestone: | 11.0 |
Component: | BOOK | Version: | git |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
When Lua-5.4.3 is installed, Dovecot will fail to build:
/bin/sh ../../libtool --tag=CC --mode=link gcc -I../../src/lib -I../../src/lib-test -I/usr/include/lua5.2 -fPIE -DPIE -std=gnu99 -I/usr/include/tirpc -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=keep -mindirect-branch=keep -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -no-undefined -Wl,--as-needed -ltirpc -o test-lua test_lua-test-lua.o libdovecot-lua.la ../lib-dovecot/libdovecot.la -llua -lm -ldl libtool: link: gcc -I../../src/lib -I../../src/lib-test -I/usr/include/lua5.2 -fPIE -DPIE -std=gnu99 -I/usr/include/tirpc -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=keep -mindirect-branch=keep -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o .libs/test-lua test_lua-test-lua.o -ltirpc ./.libs/libdovecot-lua.so ../lib-dovecot/.libs/libdovecot.so -llua -lm -ldl -Wl,-rpath -Wl,/usr/lib/dovecot /usr/bin/ld: ./.libs/libdovecot-lua.so: undefined reference to `lua_newuserdata' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:592: test-lua] Error 1 make[3]: Leaving directory '/sources/dovecot-2.3.14/dovecot-2.3.14/src/lib-lua' make[2]: *** [Makefile:567: all-recursive] Error 1 make[2]: Leaving directory '/sources/dovecot-2.3.14/dovecot-2.3.14/src' make[1]: *** [Makefile:686: all-recursive] Error 1 make[1]: Leaving directory '/sources/dovecot-2.3.14/dovecot-2.3.14' make: *** [Makefile:530: all] Error 2 54.7 Elasped Time - dovecot-2.3.14
I fixed this error before with the following sed:
sed -i 's/lua_newuserdata/lua_newuserdatauv/' src/lib-lua/dlua-dovecot.c
This can be tested by building Dovecot with --with-lua.
I'll drop the sed back in to get this problem fixed again.
Change History (3)
comment:1 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Fixed at @58a955cec5716c962f04c95349801eda800a8456