Latest Stable Samba / Kompilieren / Debian 10

PEASANT KING

Commander
Registriert
Okt. 2008
Beiträge
2.400
Guten Morgen,

wie der Titel schon sagt, würde ich gerne die aktuelle stabile Version von Samba kompilieren und installieren.

Ziel ist es den Debian Server als Backup DC in eine bestehende Domäne einzubinden. Mit der Version aus dem Repo
geht das Ganze nicht, da mit Server 2019 auf Windows Seite und Samba 4.9 auf Debian Seite, Samba nicht die erforderlichen Voraussetzungen mit bringt wohl.

Sprich wenn ich mittels samba-tool domain join ... versuche den Debian Server in die Domäne einzubinden gibt es einen Incompatible_Version Error.

Jetzt habe ich das Problem, beim Ausführen von ./configure im Root der entpackten Samba Files, dass ich eine Meldung bekomme die da lautet:
Code:
Checking for 'gcc' (C compiler)          : Traceback (most recent call last):
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Utils.py", line 828, in wrap
    return cache[k]
KeyError: (<samba_waf18.ConfigurationContext object at 0x7fa74abf0dd8>,)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Utils.py", line 828, in wrap
    return cache[k]
KeyError: (<samba_waf18.ConfigurationContext object at 0x7fa74abf0dd8>,)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Scripting.py", line 159, in waf_entry_point
    run_commands()
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Scripting.py", line 255, in run_commands
    ctx = run_command(cmd_name)
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Scripting.py", line 239, in run_command
    ctx.execute()
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Configure.py", line 159, in execute
    super(ConfigurationContext, self).execute()
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Context.py", line 204, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Context.py", line 286, in recurse
    user_function(self)
  File "/home/ll/samba-4.13.2/wscript", line 160, 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 "/home/ll/samba-4.13.2/third_party/waf/waflib/Context.py", line 286, in recurse
    user_function(self)
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Utils.py", line 830, in wrap
    ret = fun(*k)
  File "/home/ll/samba-4.13.2/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 "/home/ll/samba-4.13.2/third_party/waf/waflib/Context.py", line 286, in recurse
    user_function(self)
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Utils.py", line 830, in wrap
    ret = fun(*k)
  File "/home/ll/samba-4.13.2/buildtools/wafsamba/wscript", line 243, in configure
    conf.load('compiler_c')
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Configure.py", line 271, in load
    func(self)
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Tools/compiler_c.py", line 79, in configure
    conf.load(compiler)
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Configure.py", line 271, in load
    func(self)
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Tools/gcc.py", line 148, in configure
    conf.find_gcc()
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Configure.py", line 317, in fun
    return f(*k, **kw)
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Tools/gcc.py", line 20, in find_gcc
    conf.get_cc_version(cc, gcc=True)
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Configure.py", line 317, in fun
    return f(*k, **kw)
  File "/home/ll/samba-4.13.2/third_party/waf/waflib/Tools/c_config.py", line 1011, in get_cc_version
    cmd = cc + ['-dM', '-E', '-']
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'

Ich weiß nicht so recht, was ich damit anfangen soll, da ich der Meinung bin, alle notwendigen Dependencies installiert zu haben...
Vielleicht kann mir ja einer von euch weiter helfen.

Freundliche Grüße

EDIT:

Hat sich erledigt, es hat gdc gefehlt, oh man bin ich blöd...
 
Wenn ich einen ähnlichen Fall habe wo das Paket in Debian stable zu alt ist empfehle ich erst mal zu schauen ob es das Paket in testing oder unstable nicht auch gibt.
Ich installiere ungern Software am Paketmanager vorbei, nur wenns sein muss.
Samba 4.12 ist aktuell in testing und 4.13 in unstable:
https://packages.debian.org/sid/samba
(Rechts oben kannst du das Release aussuchen)

Deswegen lieber die Repos von testing und/oder unstable in /etc/apt/sources.list eintragen, prefereces anpassen und dann entsprechend mit apt samba aus den testing/unstable Repos installieren.

Aber wenn bei dir samba dann funktioniert wennst ihn selber baust ist auch ok :)
 
Zurück
Oben