Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] slang failing on my system | detects host libraries/headers
@ 2015-09-22 10:31 Jaap Crezee
  2015-11-18 21:57 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Jaap Crezee @ 2015-09-22 10:31 UTC (permalink / raw)
  To: buildroot

Dear all,


It looks to me as if slang is finding some host files on my system currently:


configure:7437: checking for the onig library and header files oniguruma.h
configure:7513: result: yes: /usr/lib and /usr/include


Which ultimately results in:

/data/work/zupr/ZUPR-Embedded-Buildroot/output/host/usr/bin/ccache
/data/work/zupr/ZUPR-Embedded-Buildroot/output/host/usr/bin/arm-linux-gnueabihf-gcc
-I/data/work/zupr/ZUPR-Embedded-Buildroot/output/build/slang-2.3.0/src -shared -fPIC
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64   -Os
-I/data/work/zupr/ZUPR-Embedded-Buildroot/output/build/slang-2.3.0/src
-Wl,-R/usr/lib:/data/work/zupr/ZUPR-Embedded-Buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib
  -lm
/data/work/zupr/ZUPR-Embedded-Buildroot/output/build/slang-2.3.0/modules/onig-module.c -o
onig-module.so -lonig
/data/work/zupr/ZUPR-Embedded-Buildroot/output/build/slang-2.3.0/modules/onig-module.c:27:23:
fatal error: oniguruma.h: No such file or directory
 #include <oniguruma.h>
                       ^
compilation terminated.
Makefile:119: recipe for target 'onig-module.so' failed


Anybody care to fix that correctly? Here's my quick-and-dirty patch:

[jaap at jaap /data/work/zupr/ZUPR-Embedded-Buildroot ]$ git diff
diff --git a/package/slang/slang.mk b/package/slang/slang.mk
index 59ef993..f597017 100644
--- a/package/slang/slang.mk
+++ b/package/slang/slang.mk
@@ -54,4 +54,6 @@ SLANG_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-static
 SLANG_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-static
 endif

+SLANG_CONF_OPTS += --without-onig
+
 $(eval $(autotools-package))
[jaap at jaap /data/work/zupr/ZUPR-Embedded-Buildroot ]$


Kind regards,


Jaap Crezee

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] slang failing on my system | detects host libraries/headers
  2015-09-22 10:31 [Buildroot] slang failing on my system | detects host libraries/headers Jaap Crezee
@ 2015-11-18 21:57 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-11-18 21:57 UTC (permalink / raw)
  To: buildroot

Dear Jaap Crezee,

On Tue, 22 Sep 2015 12:31:01 +0200, Jaap Crezee wrote:

> compilation terminated.
> Makefile:119: recipe for target 'onig-module.so' failed
> 
> 
> Anybody care to fix that correctly? Here's my quick-and-dirty patch:

Thanks, this problem was fixed a bit later in commit
http://git.buildroot.net/buildroot/commit/package/slang?id=3cd1a9febe6a051db98d737a3bb78c8f461a3af3.

Best regards,

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-18 21:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-22 10:31 [Buildroot] slang failing on my system | detects host libraries/headers Jaap Crezee
2015-11-18 21:57 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox