[vlc-devel] vlc3 : cannot link with libaccess_srt_plugin

Gilles Sabourin gilles.sabourin at free.fr
Sun Dec 3 17:58:23 CET 2017


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) :

  CCLD     libaccess_srt_plugin.la
/usr/src/packages/BUILD/vlc-3.0.0/contrib/x86_64-suse-linux/lib/
libsrt.a(hc_nettle_aes.c.o): In function `hcNettle_AES_Decrypt':
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hc_nettle_aes.c:
377: undefined reference to `nettle_aes_encrypt'
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hc_nettle_aes.c:
377: undefined reference to `nettle_ctr_crypt'
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hc_nettle_aes.c:
397: undefined reference to `nettle_aes_encrypt'
/usr/src/packages/BUILD/vlc-3.0.0/contrib/x86_64-suse-linux/lib/
libsrt.a(hc_nettle_aes.c.o): In function `hcNettle_AES_Encrypt':
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hc_nettle_aes.c:
234: undefined reference to `nettle_aes_encrypt'
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hc_nettle_aes.c:
234: undefined reference to `nettle_ctr_crypt'
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hc_nettle_aes.c:
258: undefined reference to `nettle_aes_encrypt'
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hc_nettle_aes.c:
267: undefined reference to `nettle_aes_encrypt'
/usr/src/packages/BUILD/vlc-3.0.0/contrib/x86_64-suse-linux/lib/
libsrt.a(hc_nettle_aes.c.o): In function `hcrypt_WrapKey':
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hc_nettle_aes.c:
56: undefined reference to `nettle_aes_encrypt'
/usr/src/packages/BUILD/vlc-3.0.0/contrib/x86_64-suse-linux/lib/
libsrt.a(hc_nettle_aes.c.o): In function `hcrypt_UnwrapKey':
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hc_nettle_aes.c:
95: undefined reference to `nettle_aes_decrypt'
/usr/src/packages/BUILD/vlc-3.0.0/contrib/x86_64-suse-linux/lib/
libsrt.a(hcrypt-gnutls.c.o): In function `hcrypt_aes_set_encrypt_key':
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hcrypt-gnutls.c:
32: undefined reference to `nettle_aes_set_encrypt_key'
/usr/src/packages/BUILD/vlc-3.0.0/contrib/x86_64-suse-linux/lib/
libsrt.a(hcrypt-gnutls.c.o): In function `hcrypt_aes_set_decrypt_key':
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hcrypt-gnutls.c:
47: undefined reference to `nettle_aes_set_decrypt_key'
/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'
/usr/src/packages/BUILD/vlc-3.0.0/contrib/x86_64-suse-linux/lib/
libsrt.a(hcrypt_sa.c.o): In function `hcryptCtx_GenSecret':
/usr/src/packages/BUILD/vlc-3.0.0/contrib/native/srt/haicrypt/hcrypt_sa.c:91: 
undefined reference to `nettle_pbkdf2_hmac_sha1'
collect2: error: ld returned 1 exit status



More information about the vlc-devel mailing list