Hi, I'm trying to get samba server up and running in my buildroot image. First I enabled wchar support for uClibc, then enabled samba4. It's failing with the following: [2113/3474] Compiling source3/rpc_server/mdssvc/dalloc.c [2114/3474] Compiling lib/afs/afs_funcs.c [2115/3474] Compiling librpc/rpc/dcerpc_helper.c [2116/3474] Compiling source3/registry/reg_parse_prs.c ../../source3/lib/netapi/examples/common.c:13:10: fatal error: iconv.h: No such file or directory 13 | #include <iconv.h> | ^~~~~~~~~ compilation terminated. Waf: Leaving directory `/home/user/buildroot/output/build/samba4-4.15.6/bin/default' Build failed -> task in 'LIBNETAPI_EXAMPLES_COMMON' failed with exit status 1 (run with -v to display more information) make[1]: *** [Makefile:7: all] Error 1 make[1]: Leaving directory '/home/user/buildroot/output/build/samba4-4.15.6' make: *** [package/pkg-generic.mk:292: /home/user/buildroot/output/build/samba4-4.15.6/.stamp_built] Error 2
Does this error happen after a full rebuild, i.e "make clean all" ?
I just double checked and confirmed. Here's a complete list of steps to repro from master (commmit de77516a2b3f8435df066cfc611b0eacfb61b02e): git clone https://git.busybox.net/buildroot/ cd buildroot/ make qemu_x86_64_defconfig make menuconfig # enable uClibc wchar support # enable samba4 make
Hi, I was able to reproduce the build failure. It should be fixed by https://patchwork.ozlabs.org/project/buildroot/patch/20220531163828.3865322-1-fontaine.fabrice@gmail.com/ Best Regards, Fabrice
Fixed by https://git.buildroot.org/buildroot/commit/?id=6a1331ba01b146f4c3a29e0d604e92cf676a46f8