Please help compiling Samba 4.2.1 - error (GnuTLS not found)

Discussion in 'Mac Programming' started by JohnnieBBadde, Apr 17, 2015.

  1. JohnnieBBadde, Apr 17, 2015
    Last edited: Apr 18, 2015

    JohnnieBBadde macrumors newbie

    Joined:
    Dec 11, 2014
    #1
    Hi,

    since a few critical security issues have been fixed in Samba 4.2.1, I would like to use this up-to-date version with OS X. Last time, with help from the community I could get Samba 4.1.x running, I hope the current differing issues in the installation process can be fixed as well.

    I'm testing it in a VM with a clean install of OS X 10.10.3, Xcode is up-to-date.

    Samba 4.2.1 requires GnuTLS, I installed the latter via Homebrew (Terminal output)

    Then I go to the Samba 4.2.1 folder, ./configure stops because it cannot find GnuTLS (Terminal output)

    Can this be fixed?

    Thank you very much for your help!
     
  2. JohnnieBBadde thread starter macrumors newbie

    Joined:
    Dec 11, 2014
    #2
    Does no one have an idea? @kryten2 to the rescue?

    Is it somehow possible to use a Linux machine to precompile an application for OS X or is that loony?
     
  3. Dranix macrumors 6502a

    Dranix

    Joined:
    Feb 26, 2011
    Location:
    Gelnhausen, Germany
    #3
    Are you trying to use that as a replacement for the smb support in OSX? Just in case - OSX doesn't use Samba but an own implementation of the smb protocol.
     
  4. JohnnieBBadde, Apr 26, 2015
    Last edited: Apr 26, 2015

    JohnnieBBadde thread starter macrumors newbie

    Joined:
    Dec 11, 2014
    #4
    Yes, sadly I know about SMBX. Since it has had bugs for years that disqualify it for my use, I have to use Samba for SMB shares in a heterogenous network.

    In one sentence: You cannot share a folder under OS X with Apple's SMBX so that non-OS X clients can connect to it with an automatic guest login.

    Connecting via Windows for example will always ask you to enter user account details even if OS X is set up for guest network access (OS X clients work fine).
     
  5. robvas macrumors 68020

    Joined:
    Mar 29, 2009
    Location:
    USA
    #5
    Why not use the version of Samba that homebrew provides? too old?
     
  6. JohnnieBBadde thread starter macrumors newbie

    Joined:
    Dec 11, 2014
    #6
    Current Homebrew and MacPorts Samba versions are all out-dated. The whole point is to use the latest version to avoid having unneccessary security issues.
     
  7. macw0rm macrumors newbie

    Joined:
    Nov 6, 2015
    #7
    Hi... When you are compiling Samba 4.2 on OS X El Capitan, please execute $sudo ./configure first.
    It will tell you that GnuTls is missing. This is normal bvehaviour. You need to install MacPorts or Homebrew so you can install GnuTls.

    Go to MacPorts website www.macports.org
    Download ports for your OS.
    Install/Update Xcode
    Run:

    $ sudo port -v install gnutls

    Tada!!!! Now you can run /samba/.configure just fine!!!
     
  8. cqexbesd macrumors regular

    Joined:
    Jun 4, 2009
    #8
    I would guess (without actually looking) that you may have to give configure some hints as to where to find GnuTLS. Maybe ./configure --help will give you a clue but it is likely to be something like ./configure --with-gnutls=/path/to/gnutls.

    That said if you are installing GnuTLS using some packaging system then why not install samba the same way? If the port is out of date then update it first...
     

Share This Page