Skip to contentSkip to conversation

package/ytree: needs glibc/uclibc toolchain (re_comp/re_exec)

PATCH New Peter Seiderer 2 participants 2 messages Sep 19, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ytree: needs glibc/uclibc toolchain (re_comp/re_exec)

Fixes:

match.o: In function `SetMatchSpec':
match.c:(.text+0x9c): undefined reference to re_comp' match.o: In function Match':
match.c:(.text+0xca): undefined reference to `re_exec'

---
 package/ytree/Config.in | 5 +++++
 1 file changed, 5 insertions(+)
package/ytree/Config.in +5 -0
index 3ac9283a56..c6f75b5590 100644
@@ -1,8 +1,13 @@
 config BR2_PACKAGE_YTREE
 	bool "ytree"
+	depends on !BR2_TOOLCHAIN_USES_MUSL # re_comp/re_exec
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_NCURSES
 	help
 	  Ytree - a (curses-based) file manager similar to DOS Xtree(tm)
 
 	  https://www.han.de/~werner/ytree.html
+
+comment "ytree needs a glibc or uClibc toolchain"
+	depends on BR2_USE_MMU
+	depends on BR2_TOOLCHAIN_USES_MUSL

--
2.23.0

#1 lore raw

PATCH 1/1 package/ytree: needs glibc/uclibc toolchain (re_comp/re_exec)

Quoted 11 lines · On Thu, 19 Sep 2019 22:02:57 +0200 Peter Seiderer <[email protected]> wrote:

Fixes:

match.o: In function `SetMatchSpec':
match.c:(.text+0x9c): undefined reference to re_comp' match.o: In function Match':
match.c:(.text+0xca): undefined reference to `re_exec'

---
 package/ytree/Config.in | 5 +++++
 1 file changed, 5 insertions(+)

Applied to master, thanks. Not great that we're adding a new package, and it uses some old legacy/deprecated APIs that musl doesn't implement.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com