On 21. Jun 2021, at 18.57, James <list at xdrv.uk> wrote:> > On 21/06/2021 17:39, Daniel J. Luke wrote: >> On Jun 21, 2021, at 7:20 AM, Timo Sirainen <timo at sirainen.com> wrote: >>> Here's a new release with some security fixes and quite a lot of other changes as well. >>> >>> * Removed support for Lua 5.2. Use version 5.1 or 5.3 instead. >> Looks like it doesn't want to build w/o lua now. >> >> On my MacOS system configure says: > > And on OmniOS / Solaris it failed with: > > libtool: link: gcc -std=gnu99 -m64 -march=x86-64 -fPIC -Os -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -m64 -o test-dict test-dict.o ./.libs/libdict.a ../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -lsocket -lnsl -lsendfile > gcc: error: ./.libs/libdict_lua.a: No such file or directory > gmake[3]: *** [Makefile:630: test-dict-client] Error 1Attached patch should work? You'll need to run autogen.sh again. -------------- next part -------------- A non-text attachment was scrubbed... Name: lib-dict-lua-link.patch Type: application/octet-stream Size: 1104 bytes Desc: not available URL: <https://dovecot.org/pipermail/dovecot/attachments/20210622/326572b4/attachment.obj> -------------- next part --------------
On 22/06/2021 12:30, Timo Sirainen wrote:>> And on OmniOS / Solaris it failed with: >> >> libtool: link: gcc -std=gnu99 -m64 -march=x86-64 -fPIC -Os -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -m64 -o test-dict test-dict.o ./.libs/libdict.a ../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -lsocket -lnsl -lsendfile >> gcc: error: ./.libs/libdict_lua.a: No such file or directory >> gmake[3]: *** [Makefile:630: test-dict-client] Error 1 > Attached patch should work? You'll need to run autogen.sh again.No, similar error, I am slowly investigating. I didn't run autogen.sh in the first place so I can't run it again. Running for the first time it moans about missing libtool: .... Warning: libtoolize does not appear to be available. This means that the automatic build preparation via autoreconf will probably not work. Preparing the build by running each step individually, however, should work and will be done automatically for you if autoreconf fails. ERROR: Unable to locate GNU Libtool. ERROR: To prepare the Dovecot build system from scratch, at least version 1.4.2 of GNU Libtool must be installed. ....
On Tue, Jun 22, 2021 at 01:30:49PM +0200, Timo Sirainen wrote:> > And on OmniOS / Solaris it failed with: > > > > libtool: link: gcc -std=gnu99 -m64 -march=x86-64 -fPIC -Os -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -m64 -o test-dict test-dict.o ./.libs/libdict.a ../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -lsocket -lnsl -lsendfile > > gcc: error: ./.libs/libdict_lua.a: No such file or directory > > gmake[3]: *** [Makefile:630: test-dict-client] Error 1 > > Attached patch should work? You'll need to run autogen.sh again.This works for me on MacOS both with and without lua (ran autoconf -fi since autogen.sh isn't in the source tarball). Thanks! -- Daniel J. Luke
On 22/06/2021 12:30, Timo Sirainen wrote:>> libtool: link: gcc -std=gnu99 -m64 -march=x86-64 -fPIC -Os -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -m64 -o test-dict test-dict.o ./.libs/libdict.a ../lib-test/.libs/libtest.a ../lib/.libs/liblib.a -lsocket -lnsl -lsendfile >> gcc: error: ./.libs/libdict_lua.a: No such file or directory >> gmake[3]: *** [Makefile:630: test-dict-client] Error 1 > > Attached patch should work? You'll need to run autogen.sh again.Patching src/lib-dict/Makefile.in did the job. I don't know what is wrong with autoconf and automake - obviously I need a suite of tools to enable portability of autoconf, automake and libtool.