Skip to contentSkip to conversation

rsyslog: not available on musl

PATCH New Rahul Bedarkar 2 participants 2 messages Oct 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rsyslog: not available on musl

With musl C library, we get following error when building rsyslog:

imfile.c: In function 'in_setupFileWatchStatic':
imfile.c:1614:28: error: 'GLOB_BRACE' undeclared (first use in this function)

        GLOB_MARK|GLOB_NOSORT|GLOB_BRACE, NULL, &files);
                              ^

flag GLOB_BRACE is not available on musl. Since package uses it unconditionally, we mark it not available for musl.

Fixes:
http://autobuild.buildroot.net/results/6d4/6d480bb1e1466809d8ff119f6b35bb91df00785c/

---
 package/rsyslog/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/rsyslog/Config.in +4 -2
index b3c146d..c4dc97a 100644
@@ -7,6 +7,7 @@ config BR2_PACKAGE_RSYSLOG
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_MMU # fork()
 	depends on !BR2_STATIC_LIBS # modules
+	depends on !BR2_TOOLCHAIN_USES_MUSL # GLOB_BRACE
 	# Propagate the exact same dependency from libfastjson,
 	# even though rsyslog already depends on threads for itself:
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_THREADS
@@ -16,8 +17,9 @@ config BR2_PACKAGE_RSYSLOG
 
 	  http://www.rsyslog.com
 
-comment "rsyslog needs a toolchain w/ threads, dynamic library"
+comment "rsyslog needs a uClibc or glibc toolchain w/ threads, dynamic library"
 	depends on BR2_USE_MMU
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
-	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
+		|| BR2_TOOLCHAIN_USES_MUSL
 	depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
Signature · 1 line
2.6.2
#1 lore raw

PATCH 1/1 rsyslog: not available on musl

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Rahul" == Rahul Bedarkar <[email protected]> writes:

With musl C library, we get following error when building rsyslog:
imfile.c: In function 'in_setupFileWatchStatic':
imfile.c:1614:28: error: 'GLOB_BRACE' undeclared (first use in this function)

        GLOB_MARK|GLOB_NOSORT|GLOB_BRACE, NULL, &files);
                              ^
Quoted 7 lines

flag GLOB_BRACE is not available on musl. Since package uses it unconditionally, we mark it not available for musl.

Fixes:
http://autobuild.buildroot.net/results/6d4/6d480bb1e1466809d8ff119f6b35bb91df00785c/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard