Skip to contentSkip to conversation

jansson: needs math library

PATCH New Baruch Siach 2 participants 2 messages Apr 20, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jansson: needs math library

libjansson.so doesn't list libm in its NEEDED header. Fixes the following nftables config time failure:

.../usr/lib/libjansson.so.4: undefined reference to __isnan' .../usr/lib/libjansson.so.4: undefined reference to __isinf'

Fixes:
http://autobuild.buildroot.net/results/152/1525d7a3e1d1fcf35858962251c0b69a5e1b64db/

---
 package/jansson/jansson.mk | 1 +
 1 file changed, 1 insertion(+)
package/jansson/jansson.mk +1 -0
index 6ead0ec10c9a..d51e7097cd8c 100644
@@ -9,5 +9,6 @@ JANSSON_SITE = http://www.digip.org/jansson/releases
 JANSSON_LICENSE = MIT
 JANSSON_LICENSE_FILES = LICENSE
 JANSSON_INSTALL_STAGING = YES
+JANSSON_CONF_ENV = LIBS="-lm"
 
 $(eval $(autotools-package))
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 jansson: needs math library

Dear Baruch Siach,

Quoted 6 lines · Baruch Siach

libjansson.so doesn't list libm in its NEEDED header. Fixes the following nftables config time failure:

.../usr/lib/libjansson.so.4: undefined reference to __isnan' .../usr/lib/libjansson.so.4: undefined reference to __isinf'

Quoted 7 lines

Fixes:
http://autobuild.buildroot.net/results/152/1525d7a3e1d1fcf35858962251c0b69a5e1b64db/

---
 package/jansson/jansson.mk | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com