[Samba] compile samba 4.14.2 failed on centos 8.3

Adam Xu adam_xu at adagene.com.cn
Thu Mar 25 02:33:29 UTC 2021


Hi everyone.

I have downloaded samba 4.12 and try to compile it.

first install all the dependencies and configure like that:

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libdir=/usr/lib64 --enable-fhs --with-lockdir=/var/lib/samba/lock \
--with-cachedir=/var/lib/samba --with-piddir=/run --with-systemd \
--disable-cups --systemd-install-services
no error occured.
then I try to make
there were some errors like:
[380/431] Compiling source4/heimdal/lib/asn1/lex.l [381/431] Compiling 
source4/heimdal/lib/com_err/lex.l Waf: Leaving directory 
`/root/samba-4.14.2/bin/default' Build failed Traceback (most recent 
call last): File "/root/samba-4.14.2/third_party/waf/waflib/Context.py", 
line 452, in cmd_and_log ret, out, err = Utils.run_process(cmd, kw, 
cargs) File "/root/samba-4.14.2/third_party/waf/waflib/Utils.py", line 
992, in run_process return run_prefork_process(cmd, kwargs, cargs) File 
"/root/samba-4.14.2/third_party/waf/waflib/Utils.py", line 927, in 
run_prefork_process raise Exception(trace) Exception: ['--noline', 
'../../source4/heimdal/lib/asn1/lex.l'] Traceback (most recent call 
last): File "<string>", line 37, in run File 
"/usr/lib64/python3.6/subprocess.py", line 729, in __init__ 
restore_signals, start_new_session) File 
"/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child raise 
child_exception_type(errno_num, err_msg, err_filename) 
FileNotFoundError: [Errno 2] No such file or directory: '--noline': 
'--noline' During handling of the above exception, another exception 
occurred: Traceback (most recent call last): File 
"/root/samba-4.14.2/third_party/waf/waflib/Task.py", line 350, in 
process ret = self.run() File "./buildtools/wafsamba/samba_waf18.py", 
line 29, in flexfun txt = bld.cmd_and_log(lst, cwd=tsk.get_cwd(), 
env=env.env or None, quiet=0) File 
"/root/samba-4.14.2/third_party/waf/waflib/Context.py", line 454, in 
cmd_and_log raise Errors.WafError('Execution failure: %s' % str(e), 
ex=e) waflib.Errors.WafError: Execution failure: ['--noline', 
'../../source4/heimdal/lib/asn1/lex.l'] Traceback (most recent call 
last): File "<string>", line 37, in run File 
"/usr/lib64/python3.6/subprocess.py", line 729, in __init__ 
restore_signals, start_new_session) File 
"/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child raise 
child_exception_type(errno_num, err_msg, err_filename) 
FileNotFoundError: [Errno 2] No such file or directory: '--noline': 
'--noline' Traceback (most recent call last): File 
"/root/samba-4.14.2/third_party/waf/waflib/Context.py", line 452, in 
cmd_and_log ret, out, err = Utils.run_process(cmd, kw, cargs) File 
"/root/samba-4.14.2/third_party/waf/waflib/Utils.py", line 992, in 
run_process return run_prefork_process(cmd, kwargs, cargs) File 
"/root/samba-4.14.2/third_party/waf/waflib/Utils.py", line 927, in 
run_prefork_process raise Exception(trace) Exception: ['--noline', 
'../../source4/heimdal/lib/com_err/lex.l'] Traceback (most recent call 
last): File "<string>", line 37, in run File 
"/usr/lib64/python3.6/subprocess.py", line 729, in __init__ 
restore_signals, start_new_session) File 
"/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child raise 
child_exception_type(errno_num, err_msg, err_filename) 
FileNotFoundError: [Errno 2] No such file or directory: '--noline': 
'--noline' During handling of the above exception, another exception 
occurred: Traceback (most recent call last): File 
"/root/samba-4.14.2/third_party/waf/waflib/Task.py", line 350, in 
process ret = self.run() File "./buildtools/wafsamba/samba_waf18.py", 
line 29, in flexfun txt = bld.cmd_and_log(lst, cwd=tsk.get_cwd(), 
env=env.env or None, quiet=0) File 
"/root/samba-4.14.2/third_party/waf/waflib/Context.py", line 454, in 
cmd_and_log raise Errors.WafError('Execution failure: %s' % str(e), 
ex=e) waflib.Errors.WafError: Execution failure: ['--noline', 
'../../source4/heimdal/lib/com_err/lex.l'] Traceback (most recent call 
last): File "<string>", line 37, in run File 
"/usr/lib64/python3.6/subprocess.py", line 729, in __init__ 
restore_signals, start_new_session) File 
"/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child raise 
child_exception_type(errno_num, err_msg, err_filename) 
FileNotFoundError: [Errno 2] No such file or directory: '--noline': 
'--noline' make: *** [Makefile:7: all] Error 1
How could I fix that ?


More information about the samba mailing list