#20026: busybox fails to build with musl
----------------------+------------------------
 Reporter:  puleglot  |      Owner:  developers
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:
Component:  packages  |    Version:  Trunk
 Keywords:            |
----------------------+------------------------
 This bug is probably triggered by
 CONFIG_BUSYBOX_CONFIG_FEATURE_VI_REGEX_SEARCH=y. Tested on CC, but I
 expect the same error on trunk.

 {{{
 make   -C /home/puleglot/openwrt-15.05/build_dir/target-
 mips_34kc_musl-1.1.9/busybox-1.23.2 CC="mips-openwrt-linux-musl-gcc"
 CROSS_COMPILE="mips-openwrt-linux-musl-" KBUILD_HAVE_NLS=no
 EXTRA_CFLAGS="-O2 -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-
 caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-
 float -mips16 -minterlink-mips16 -fstack-protector -D_FORTIFY_SOURCE=1
 -Wl,-z,now -Wl,-z,relro" ARCH="mips" SKIP_STRIP=y LDLIBS="m crypt"  all
 make[4]: Entering directory '/home/puleglot/openwrt-15.05/build_dir
 /target-mips_34kc_musl-1.1.9/busybox-1.23.2'
   CC      editors/vi.o
 editors/vi.c: In function 'char_search':
 editors/vi.c:1890:2: error: 're_syntax_options' undeclared (first use in
 this function)
   re_syntax_options = RE_SYNTAX_POSIX_EXTENDED;
   ^
 editors/vi.c:1890:2: note: each undeclared identifier is reported only
 once for each function it appears in
 editors/vi.c:1890:22: error: 'RE_SYNTAX_POSIX_EXTENDED' undeclared (first
 use in this function)
   re_syntax_options = RE_SYNTAX_POSIX_EXTENDED;
                       ^
 editors/vi.c:1892:50: error: 'RE_ICASE' undeclared (first use in this
 function)
    re_syntax_options = RE_SYNTAX_POSIX_EXTENDED | RE_ICASE;
                                                   ^
 editors/vi.c:1895:2: warning: implicit declaration of function
 're_compile_pattern' [-Wimplicit-function-declaration]
   err = re_compile_pattern(pat, strlen(pat), &preg);
   ^
 editors/vi.c:1895:6: warning: assignment makes pointer from integer
 without a cast [enabled by default]
   err = re_compile_pattern(pat, strlen(pat), &preg);
       ^
 editors/vi.c:1923:2: warning: implicit declaration of function 're_search'
 [-Wimplicit-function-declaration]
   i = re_search(&preg, q, size, /*start:*/ 0, range, /*struct
 re_registers*:*/ NULL);
   ^
 scripts/Makefile.build:197: recipe for target 'editors/vi.o' failed
 make[5]: *** [editors/vi.o] Error 1
 Makefile:741: recipe for target 'editors' failed
 make[4]: *** [editors] Error 2
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/20026>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to