[Samba] Compiling gets undefined reference by tls.c

Caesar Samsi cmsamsi at gmail.com
Thu Apr 23 19:58:36 MDT 2015


It turns out that gnutls-3.4.0 caused the problem.

I removed all gnutls packages from the system and cleaned out 
/usr/local/lib from libgnu* files.

Installed libgnutls28-dev and samba's make finished successfully.

Hope this helps. I've no idea where to file a bug.

On 04/23/2015 03:18 PM, Caesar Samsi wrote:
> Hi,
>
> I'm wanting to install the latest Samba 4.2.1 on my LinuxMint 17 / 
> Rebecca host.
>
> I have:
> 1. Followed the HOWTO to get OS and lib dependencies (but seems I'm 
> missing something)
> 2. Run ./configure --enable-gnutls
> 3. Near the end while linking make halts with an error below.
>
> I'm guessing there is a missing lib as the reference appears 
> unresolved, however, which libraries are missing (filenames)?
>
> Thank you, Caesar.
>
> [3605/4085] Linking default/source4/auth/kerberos/libauthkrb5-samba4.so
> default/source4/lib/tls/tls_1.o: In function `tls_init_client':
> tls.c:(.text+0x1846): undefined reference to 
> `gnutls_certificate_type_set_priority'
> default/source4/lib/tls/tls_tstream_1.o: In function 
> `_tstream_tls_connect_send':
> tls_tstream.c:(.text+0x2014): undefined reference to 
> `gnutls_certificate_type_set_priority'
> collect2: error: ld returned 1 exit status
> Waf: Leaving directory `/home/caesar/Downloads/samba-4.2.1/bin'
> Build failed:  -> task failed (err #1):
>     {task: cc_link 
> packet_1.o,tls_1.o,tlscert_1.o,tls_tstream_1.o,gssapi_pac_1.o,kerberos_pac_1.o,kerberos_pac_2.o,krb5_init_context_1.o 
> -> libauthkrb5-samba4.so}
> make: *** [all] Error 1
>



More information about the samba mailing list