Closed fulup-bzh closed 8 years ago
Hi @fulup-bzh, It failed because the "libtool' package was missing ; it is so often present on development systems that I tend to omit it, my bad.
Please retry with this new commit : https://github.com/fulup-bzh/AlsaJsonGateway/commit/d22c8608df18432bdbd75a13a0c0cd7597662738
It now mentions libtool in build instructions, and asks for it on the command line instead of printing an ugly error message.
Much beter but a small warning remains because of _GNU_SOURCE that was added in the include without being 1st checked.
Yes, I saw this.
Original Makefile was setting "-Werror" for gcc (https://github.com/fulup-bzh/AlsaJsonGateway/blob/027826771df307a001c1050c5ebbb3baa9a85007/src/Makefile#L13), which made the build fail due to this warning becoming a hard error (I removed the parameter in new Makefile.am).
Not sure why it did not fail before. I guess a fix would be to do in the .h :
#define _GNU_SOURCE
But I was reluctant to patch the source at that time.
Haha, got it ! It is because Autotools sets "-D_GNU_SOURCE=1" by itself when it detects gcc !
This should fix it, please try : https://github.com/fulup-bzh/AlsaJsonGateway/commit/31353f91972845b9f8c01f9479dd4fccd00f611c
This time it works.
Manu, autoconf does not work on OpenSuse checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether to enable Valgrind on the unit tests... checking for valgrind... no yes ./configure: line 5127: syntax error near unexpected token
2.2' ./configure: line 5127:
LT_PREREQ(2.2)'