[vlc-devel] vlc3 : cannot link with libaccess_srt_plugin

Justin Kim justin.kim at collabora.com
Mon Dec 4 01:59:53 CET 2017


Hello,

The linking error is pretty strange for me.

Did you set PKG_CONFIG_LIBDIR to a proper pkgconfig directory?
Maybe, in your case, 
/usr/lib/pkgages/BUILD/vlc-3.0.0/contrib/x86_64-suse-linux/lib/pkgconfig ?

SRT plugin has dependencies on gnutls, nettle


On 04/12/2017 2:11 AM, Gilles Sabourin wrote:
> Le dimanche 3 décembre 2017, 17:58:23 CET Gilles Sabourin a écrit :
>> Le dimanche 3 décembre 2017, 11:22:32 CET Jean-Baptiste Kempf a écrit :
>>> Hello Gilles,
>>>
>>> What happens if you force -lstdc++ ?
>>>
>>> Best,
>>
>> Hello Jean-Baptitste,
>>
>> I have modified "Makefile.am" in ~/modules/access" this line :
>>
>> libaccess_srt_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(accessdir)'
>>
>> to :
>>
>> libaccess_srt_plugin_la_LDFLAGS = $(AM_LDFLAGS) -lstdc++ -rpath
>> '$(accessdir)'
>>
>> and after a make, I've got fewer link errors, about nettle library entries
>> missing (but nettle 3.3 is installed on my system) :
> [...]
> 
> So long, so far, I've manually forced -lnettle into Makefile.am, and after a
> make, it is still complaining about gnutls :
> 
> make[4]: Entering directory '/usr/src/packages/BUILD/vlc-3.0.0/modules'
>    CCLD     libaccess_srt_plugin.la
> /usr/src/packages/BUILD/vlc-3.0.0/contrib/x86_64-suse-linux/lib/
> libsrt.a(hcrypt_ctx_tx.c.o): In function `hcryptCtx_Tx_Rekey':
> /usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hcrypt_ctx_tx.c:
> 63: undefined reference to `gnutls_rnd'
> /usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hcrypt_ctx_tx.c:
> 70: undefined reference to `gnutls_rnd'
> /usr/src/packages/BUILD/vlc-3.0.0/contrib/x86_64-suse-linux/lib/
> libsrt.a(hcrypt_ctx_tx.c.o): In function `hcryptCtx_Tx_Refresh':
> /usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hcrypt_ctx_tx.c:
> 140: undefined reference to `gnutls_rnd'
> collect2: error: ld returned 1 exit status
> 
> I've tried to add -lgnutls, but eh, one cannot win each time : this does not
> help...
> 
> So this srt plugin has pretty much dependencies on  stdc++ and nettle at
> least, and maybe gnutls...
> 
> Best,
> Gilles SABOURIN
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list