[vlc-devel] Re: configure patch: detecting gnutls

Torsten Spindler spindler at hbt.arch.ethz.ch
Sat Apr 16 22:30:55 CEST 2005

On Sat, 2005-04-16 at 22:00, Rémi Denis-Courmont wrote:
> Err, I don't understand how the patch would work - it doesn't add -lz to 
> the gnutls plugin link flags !? If the gnutls plugin compiles without 
> -lz there's no reason why the configure check would need -lz either.

The check for gnutls is broken. After calling bootstrap using
./configure --enable-gnutls results in:

checking for gnutls_certificate_verify_peers2 in -lgnutls... no

I checked for this symbol in libgnutls and it is there. From the
configure script I've taken the c code:

#ifdef __cplusplus
extern "C"
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char gnutls_certificate_verify_peers2 ();
main ()
gnutls_certificate_verify_peers2 ();
  return 0;

and compiled it by hand. When I added -lgnutls -lgcrypt -lz it worked. I
have no idea why the compile itself worked. "vlc-config--libs plugin
gnutls" returns:

-L/usr/lib  -g -shared -lpthread -fpic -fPIC -lgnutls -lgcrypt

> There's something wrong there.

Yes, I agree. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20050416/34468538/attachment.sig>

More information about the vlc-devel mailing list