jansson library from package not linked correctly
I just installed libjansson on Alpine to compile Asterisk, but the
configure check for libjansson fails with these errors:
/usr/lib/gcc/i486-alpine-linux-uclibc/4.7.2/../../../libjansson.so:
undefined reference to `__isnan’
/usr/lib/gcc/i486-alpine-linux-uclibc/4.7.2/../../../libjansson.so:
undefined reference to `__isinf’
It seems that libjansson needs to be compiled against libm when used with uclibc.
I installed using the alpine-2.5.4-x86.iso from the main page.
(from redmine: issue id 1851, created on 2013-05-09, closed on 2013-05-21)
- Changesets:
- Revision 27226291 by Natanael Copa on 2013-05-14T09:02:37Z:
main/jansson: fix libm underlinking
This is more a workaround than a fix. Proper fix should do a check in
configure.ac that can handle isnan/isinf as macros.
ref #1851
- Revision 8a93cf73 by Natanael Copa on 2013-05-14T09:03:24Z:
main/jansson: fix libm underlinking
This is more a workaround than a fix. Proper fix should do a check in
configure.ac that can handle isnan/isinf as macros.
fixes #1851
(cherry picked from commit 27226291aa918607683c210c9d2a291027abd5eb)