[Samba] Building on AIX

Ben Huntsman ben at huntsmans.net
Thu Jun 10 22:01:59 UTC 2021


Hi guys-
   I'm still working on that other issue with winbind, but trying to get a scratch build completed from source in my environment to test the latest version.  I've seen someone else run into this before as well, but I'm not entirely sure what the resolution was.  Anyone remember this error:

Checking for 'xlc' (C compiler)          : Traceback (most recent call last):
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Utils.py", line 828, in wrap
    return cache[k]
KeyError: (<samba_waf18.ConfigurationContext object at 0xb050ec2c>,)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Utils.py", line 828, in wrap
    return cache[k]
KeyError: (<samba_waf18.ConfigurationContext object at 0xb050ec2c>,)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Scripting.py", line 159, in waf_entry_point
    run_commands()
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Scripting.py", line 255, in run_commands
    ctx = run_command(cmd_name)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Scripting.py", line 239, in run_command
    ctx.execute()
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Configure.py", line 159, in execute
    super(ConfigurationContext, self).execute()
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Context.py", line 204, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Context.py", line 286, in recurse
    user_function(self)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/wscript", line 141, in configure
    conf.RECURSE('lib/replace')
  File "./buildtools/wafsamba/samba_utils.py", line 66, in fun
    return f(*k, **kw)
  File "./buildtools/wafsamba/samba_utils.py", line 463, in RECURSE
    return ctx.recurse(relpath)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Context.py", line 286, in recurse
    user_function(self)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Utils.py", line 830, in wrap
    ret = fun(*k)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/lib/replace/wscript", line 30, in configure
    conf.RECURSE('buildtools/wafsamba')
  File "./buildtools/wafsamba/samba_utils.py", line 66, in fun
    return f(*k, **kw)
  File "./buildtools/wafsamba/samba_utils.py", line 463, in RECURSE
    return ctx.recurse(relpath)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Context.py", line 286, in recurse
    user_function(self)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Utils.py", line 830, in wrap
    ret = fun(*k)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/buildtools/wafsamba/wscript", line 243, in configure
    conf.load('compiler_c')
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Configure.py", line 271, in load
    func(self)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Tools/compiler_c.py", line 79, in configure
    conf.load(compiler)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Configure.py", line 271, in load
    func(self)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Tools/xlc.py", line 59, in configure
    conf.find_xlc()
  File "./buildtools/wafsamba/samba_utils.py", line 66, in fun
    return f(*k, **kw)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Tools/xlc.py", line 17, in find_xlc
    conf.get_xlc_version(cc)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Configure.py", line 317, in fun
    return f(*k, **kw)
  File "/opt/freeware/src/packages/BUILD/samba-4.12.15/third_party/waf/waflib/Tools/c_config.py", line 1097, in get_xlc_version
    cmd = cc + ['-qversion']
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'
error: Bad exit status from /var/tmp/rpm-tmp.S3Uaab (%build)

I'm trying to build it as an RPM, but that shouldn't matter... the error stack comes from the actual sources...

Thanks in advance!



More information about the samba mailing list