[Samba] Samba 4.14.5 compile error on RHEL7.9

vincent at cojot.name vincent at cojot.name
Tue Jun 1 18:11:20 UTC 2021


Hi,

I was trying to move forward with compiling samba 4.14.y on RHEL7.9 and I 
received the following error (which I hadn't seen before):

----------------
[429/443] Compiling source4/heimdal/lib/asn1/gen_free.c
[430/443] Compiling source4/heimdal/lib/asn1/gen_template.c
Waf: Leaving directory `/usr/src/redhat/BUILD/samba-4.14.5/bin/default'
Build failed
Traceback (most recent call last):
   File 
"/usr/src/redhat/BUILD/samba-4.14.5/third_party/waf/waflib/Task.py", line 350, in process
     ret = self.run()
   File "./buildtools/wafsamba/samba_waf18.py", line 30, in flexfun
     tsk.outputs[0].write(txt.replace('\r\n', '\n').replace('\r', '\n')) # issue #1207
   File 
"/usr/src/redhat/BUILD/samba-4.14.5/third_party/waf/waflib/Node.py", line 201, in write
     Utils.writef(self.abspath(), data, flags, encoding)
   File 
"/usr/src/redhat/BUILD/samba-4.14.5/third_party/waf/waflib/Utils.py", line 268, in writef
     data = data.encode(encoding)
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 14657-14658: ordinal not in range(256)

[...]
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 33323-33324: ordinal not in range(256)

make: *** [all] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.FN8jcR (%build)
----------------

This is my first attempt at building 4.14 rpms on el7.9 so perhaps there's 
a message right there but if someone could shed some light on the failure, 
I'd be very grateful. :)

Vincent S. Cojot



More information about the samba mailing list