Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#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:


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 ../lib-dovecot/ -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/ ../lib-dovecot/.libs/ -llua -lm -ldl -Wl,-rpath -Wl,/usr/lib/dovecot
/usr/bin/ld: ./.libs/ 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 Douglas R. Reno, 3 years ago

Owner: changed from blfs-book to Douglas R. Reno
Status: newassigned

comment:2 by Douglas R. Reno, 3 years ago

Resolution: fixed
Status: assignedclosed

comment:3 by Bruce Dubbs, 3 years ago

Milestone: 10.211.0

Milestone renamed

Note: See TracTickets for help on using tickets.