[Samba] Samba git: build error when upgrading

Gerry Reno greno at verizon.net
Sat May 11 18:11:56 MDT 2013


On 05/11/2013 06:43 PM, Gerry Reno wrote:
> Seeing a build problem after updating my git tree:
>
>     $ git remote -v
>     origin    git://git.samba.org/samba.git (fetch)
>     origin    git://git.samba.org/samba.git (push)
>
>     $ git pull
>     $ ./configure ...
>     $ make clean
>     WAF_MAKE=1 python ./buildtools/bin/waf build
>     ./buildtools/wafsamba/samba_utils.py:397: DeprecationWarning: the md5 module is deprecated; use hashlib instead
>       import md5
>     Waf: Entering directory `/home/gerryr/build/samba4/bin'
>     symlink: samba/__init__.py -> python/samba/__init__.py
>     /home/gerryr/build/samba4/wscript: error: Traceback (most recent call last):
>       File "/home/gerryr/build/samba4/buildtools/wafadmin/Utils.py", line 647, in recurse
>         exec(compile(txt, file_path, 'exec'), dc)
>       File "/home/gerryr/build/samba4/wscript_build", line 43, in <module>
>         bld.RECURSE('python')
>       File "./buildtools/wafsamba/samba_utils.py", line 472, in RECURSE
>         return ctx.add_subdirs(relpath)
>       File "/home/gerryr/build/samba4/buildtools/wafadmin/Build.py", line 993, in add_subdirs
>         self.recurse(dirs, 'build')
>       File "/home/gerryr/build/samba4/buildtools/wafadmin/Utils.py", line 650, in recurse
>         raise WscriptError("".join(traceback.format_exception(exc_type, exc_value, tb)), base)
>     WscriptError: /home/gerryr/build/samba4/python/wscript: error: Traceback (most recent call last):
>       File "/home/gerryr/build/samba4/buildtools/wafadmin/Utils.py", line 647, in recurse
>         exec(compile(txt, file_path, 'exec'), dc)
>       File "/home/gerryr/build/samba4/python/wscript_build", line 37, in <module>
>         installdir='python')
>       File "./buildtools/wafsamba/wafsamba.py", line 685, in SAMBA_SCRIPT
>         os.symlink(link_src, link_dst)
>     OSError: [Errno 17] File exists
>
>
> Are there some files I should remove before upgrading my tree from 4.0.4 to current?
>

Running git clean -x -f -d  does not help:

    $ git clean -x -f -d
    Removing .lock-wscript
    Removing bin/
    warning: failed to remove 'bin/'
    Removing buildtools/wafadmin/Build.pyc
    Removing buildtools/wafadmin/Configure.pyc
    Removing buildtools/wafadmin/Constants.pyc
    Removing buildtools/wafadmin/Environment.pyc
    Removing buildtools/wafadmin/Logs.pyc
    Removing buildtools/wafadmin/Node.pyc
    Removing buildtools/wafadmin/Options.pyc
    Removing buildtools/wafadmin/Runner.pyc
    Removing buildtools/wafadmin/Scripting.pyc
    Removing buildtools/wafadmin/Task.pyc
    Removing buildtools/wafadmin/TaskGen.pyc
    Removing buildtools/wafadmin/Tools/ar.pyc
    Removing buildtools/wafadmin/Tools/cc.pyc
    Removing buildtools/wafadmin/Tools/ccroot.pyc
    Removing buildtools/wafadmin/Tools/compiler_cc.pyc
    Removing buildtools/wafadmin/Tools/config_c.pyc
    Removing buildtools/wafadmin/Tools/cxx.pyc
    Removing buildtools/wafadmin/Tools/gcc.pyc
    Removing buildtools/wafadmin/Tools/gnu_dirs.pyc
    Removing buildtools/wafadmin/Tools/icc.pyc
    Removing buildtools/wafadmin/Tools/intltool.pyc
    Removing buildtools/wafadmin/Tools/perl.pyc
    Removing buildtools/wafadmin/Tools/preproc.pyc
    Removing buildtools/wafadmin/Tools/python.pyc
    Removing buildtools/wafadmin/Tools/suncc.pyc
    Removing buildtools/wafadmin/Utils.pyc
    Removing buildtools/wafadmin/ansiterm.pyc
    Removing buildtools/wafsamba/__init__.pyc
    Removing buildtools/wafsamba/configure_file.pyc
    Removing buildtools/wafsamba/gccdeps.pyc
    Removing buildtools/wafsamba/generic_cc.pyc
    Removing buildtools/wafsamba/hpuxcc.pyc
    Removing buildtools/wafsamba/irixcc.pyc
    Removing buildtools/wafsamba/pkgconfig.pyc
    Removing buildtools/wafsamba/samba3.pyc
    Removing buildtools/wafsamba/samba_abi.pyc
    Removing buildtools/wafsamba/samba_autoconf.pyc
    Removing buildtools/wafsamba/samba_autoproto.pyc
    Removing buildtools/wafsamba/samba_bundled.pyc
    Removing buildtools/wafsamba/samba_conftests.pyc
    Removing buildtools/wafsamba/samba_cross.pyc
    Removing buildtools/wafsamba/samba_deps.pyc
    Removing buildtools/wafsamba/samba_dist.pyc
    Removing buildtools/wafsamba/samba_headers.pyc
    Removing buildtools/wafsamba/samba_install.pyc
    Removing buildtools/wafsamba/samba_optimisation.pyc
    Removing buildtools/wafsamba/samba_patterns.pyc
    Removing buildtools/wafsamba/samba_pidl.pyc
    Removing buildtools/wafsamba/samba_python.pyc
    Removing buildtools/wafsamba/samba_utils.pyc
    Removing buildtools/wafsamba/samba_version.pyc
    Removing buildtools/wafsamba/samba_wildcard.pyc
    Removing buildtools/wafsamba/stale_files.pyc
    Removing buildtools/wafsamba/symbols.pyc
    Removing buildtools/wafsamba/tests/__init__.pyc
    Removing buildtools/wafsamba/tests/test_abi.pyc
    Removing buildtools/wafsamba/tests/test_bundled.pyc
    Removing buildtools/wafsamba/tests/test_utils.pyc
    Removing buildtools/wafsamba/tru64cc.pyc
    Removing buildtools/wafsamba/wafsamba.pyc
    Removing lib/dnspython/dns/__init__.pyc
    Removing lib/dnspython/dns/edns.pyc
    Removing lib/dnspython/dns/entropy.pyc
    Removing lib/dnspython/dns/exception.pyc
    Removing lib/dnspython/dns/flags.pyc
    Removing lib/dnspython/dns/hash.pyc
    Removing lib/dnspython/dns/inet.pyc
    Removing lib/dnspython/dns/ipv4.pyc
    Removing lib/dnspython/dns/ipv6.pyc
    Removing lib/dnspython/dns/message.pyc
    Removing lib/dnspython/dns/name.pyc
    Removing lib/dnspython/dns/opcode.pyc
    Removing lib/dnspython/dns/query.pyc
    Removing lib/dnspython/dns/rcode.pyc
    Removing lib/dnspython/dns/rdata.pyc
    Removing lib/dnspython/dns/rdataclass.pyc
    Removing lib/dnspython/dns/rdataset.pyc
    Removing lib/dnspython/dns/rdatatype.pyc
    Removing lib/dnspython/dns/renderer.pyc
    Removing lib/dnspython/dns/resolver.pyc
    Removing lib/dnspython/dns/reversename.pyc
    Removing lib/dnspython/dns/rrset.pyc
    Removing lib/dnspython/dns/set.pyc
    Removing lib/dnspython/dns/tokenizer.pyc
    Removing lib/dnspython/dns/tsig.pyc
    Removing lib/dnspython/dns/ttl.pyc
    Removing lib/dnspython/dns/wiredata.pyc
    Removing lib/ldb/tests/python/api.pyc
    Removing lib/pep8/pep8.pyc
    Removing lib/subunit/python/subunit/__init__.pyc
    Removing lib/subunit/python/subunit/chunked.pyc
    Removing lib/subunit/python/subunit/details.pyc
    Removing lib/subunit/python/subunit/iso8601.pyc
    Removing lib/subunit/python/subunit/test_results.pyc
    Removing lib/testtools/testtools/__init__.pyc
    Removing lib/testtools/testtools/_compat2x.pyc
    Removing lib/testtools/testtools/compat.pyc
    Removing lib/testtools/testtools/content.pyc
    Removing lib/testtools/testtools/content_type.pyc
    Removing lib/testtools/testtools/distutilscmd.pyc
    Removing lib/testtools/testtools/helpers.pyc
    Removing lib/testtools/testtools/matchers.pyc
    Removing lib/testtools/testtools/monkey.pyc
    Removing lib/testtools/testtools/run.pyc
    Removing lib/testtools/testtools/runtest.pyc
    Removing lib/testtools/testtools/testcase.pyc
    Removing lib/testtools/testtools/testresult/__init__.pyc
    Removing lib/testtools/testtools/testresult/real.pyc
    Removing lib/testtools/testtools/testsuite.pyc
    Removing selftest/__init__.pyc
    Removing selftest/run.pyc
    Removing selftest/selftesthelpers.pyc
    Removing selftest/socket_wrapper.pyc
    Removing selftest/subunithelper.pyc
    Removing selftest/target/__init__.pyc
    Removing selftest/target/samba.pyc
    Removing selftest/testlist.pyc
    Removing selftest/tests/__init__.pyc
    Removing selftest/tests/test_run.pyc
    Removing selftest/tests/test_samba.pyc
    Removing selftest/tests/test_socket_wrapper.pyc
    Removing selftest/tests/test_target.pyc
    Removing selftest/tests/test_testlist.pyc
    Removing source3/build/__init__.pyc
    Removing source3/build/charset.pyc
    Removing source4/heimdal/lib/wind/UnicodeData.pyc
    Removing source4/heimdal/lib/wind/generate.pyc
    Removing source4/heimdal/lib/wind/rfc3454.pyc
    Removing source4/heimdal/lib/wind/rfc4518.pyc
    Removing source4/heimdal/lib/wind/stringprep.pyc
    Removing source4/heimdal/lib/wind/util.pyc
    Removing st/

    $ ./configure ...
    'configure' finished successfully (1m16.130s)
    $ make
    WAF_MAKE=1 python ./buildtools/bin/waf build
    ./buildtools/wafsamba/samba_utils.py:397: DeprecationWarning: the md5 module is deprecated; use hashlib instead
      import md5
    Waf: Entering directory `/home/gerryr/build/samba4/bin'
    symlink: samba/__init__.py -> python/samba/__init__.py
    /home/gerryr/build/samba4/wscript: error: Traceback (most recent call last):
      File "/home/gerryr/build/samba4/buildtools/wafadmin/Utils.py", line 647, in recurse
        exec(compile(txt, file_path, 'exec'), dc)
      File "/home/gerryr/build/samba4/wscript_build", line 43, in <module>
        bld.RECURSE('python')
      File "./buildtools/wafsamba/samba_utils.py", line 472, in RECURSE
        return ctx.add_subdirs(relpath)
      File "/home/gerryr/build/samba4/buildtools/wafadmin/Build.py", line 993, in add_subdirs
        self.recurse(dirs, 'build')
      File "/home/gerryr/build/samba4/buildtools/wafadmin/Utils.py", line 650, in recurse
        raise WscriptError("".join(traceback.format_exception(exc_type, exc_value, tb)), base)
    WscriptError: /home/gerryr/build/samba4/python/wscript: error: Traceback (most recent call last):
      File "/home/gerryr/build/samba4/buildtools/wafadmin/Utils.py", line 647, in recurse
        exec(compile(txt, file_path, 'exec'), dc)
      File "/home/gerryr/build/samba4/python/wscript_build", line 37, in <module>
        installdir='python')
      File "./buildtools/wafsamba/wafsamba.py", line 685, in SAMBA_SCRIPT
        os.symlink(link_src, link_dst)
    OSError: [Errno 17] File exists


Still same problem.

.



More information about the samba mailing list