Samba build error: module 'time' has no attribute 'clock'

Steve French smfrench at gmail.com
Wed Jan 26 17:40:04 UTC 2022


Not having much luck building Jeremy's master-smb2 branch (
https://git.samba.org/?p=jra/samba/.git;a=shortlog;h=refs/heads/master-smb2)
on Ubuntu

Anyone recognize this Samba build error and how to fix it?

Waf: Entering directory `/home/smfrench/jra-samba-posix/bin/default'
Selected embedded Heimdal build
Traceback (most recent call last):
  File
"/home/smfrench/jra-samba-posix/third_party/waf/waflib/Scripting.py", line
158, in waf_entry_point
    run_commands()
  File
"/home/smfrench/jra-samba-posix/third_party/waf/waflib/Scripting.py", line
251, in run_commands
    ctx = run_command(cmd_name)
  File
"/home/smfrench/jra-samba-posix/third_party/waf/waflib/Scripting.py", line
235, in run_command
    ctx.execute()
  File
"/home/smfrench/jra-samba-posix/third_party/waf/waflib/Scripting.py", line
573, in execute
    return execute_method(self)
  File "/home/smfrench/jra-samba-posix/third_party/waf/waflib/Build.py",
line 231, in execute
    self.execute_build()
  File "/home/smfrench/jra-samba-posix/third_party/waf/waflib/Build.py",
line 245, in execute_build
    self.pre_build()
  File "/home/smfrench/jra-samba-posix/third_party/waf/waflib/Build.py",
line 542, in pre_build
    m(self)
  File
"/home/smfrench/jra-samba-posix/./buildtools/wafsamba/samba_deps.py", line
1106, in check_project_rules
    tstart = time.clock()
AttributeError: module 'time' has no attribute 'clock'
make: *** [Makefile:7: all] Error 2

-- 
Thanks,

Steve


More information about the samba-technical mailing list