Bug 14821 - Samba server is failing to compile
Summary: Samba server is failing to compile
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2022.02
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-26 22:50 UTC by buildroot
Modified: 2022-06-06 20:05 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description buildroot 2022-05-26 22:50:20 UTC
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
Comment 1 Thomas Petazzoni 2022-05-27 08:31:13 UTC
Does this error happen after a full rebuild, i.e "make clean all" ?
Comment 2 buildroot 2022-05-27 15:20:45 UTC
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
Comment 3 Fabrice Fontaine 2022-05-31 20:48:34 UTC
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