#3369 closed defect (fixed)
NetworkManager fails to build
Reported by: | Pierre Labastie | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | BOOK | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description
I do not know exactly whether it comes from the new GnuTLS version or gcc-4.7, but NetworkManager does not build and ends up with the error:
crypto_gnutls.c: In function 'crypto_verify_cert': crypto_gnutls.c:354:2: error: 'gnutls_datum' is deprecated (declared at /usr/include/gnutls/gnutls.h:716) [-Werror=deprecated-declarations] crypto_gnutls.c: In function 'crypto_verify_pkcs12': crypto_gnutls.c:394:2: error: 'gnutls_datum' is deprecated (declared at /usr/include/gnutls/gnutls.h:716) [-Werror=deprecated-declarations] crypto_gnutls.c: In function 'crypto_verify_pkcs8': crypto_gnutls.c:448:2: error: 'gnutls_datum' is deprecated (declared at /usr/include/gnutls/gnutls.h:716) [-Werror=deprecated-declarations] cc1: all warnings being treated as errors make[5]: *** [libnm_util_la-crypto_gnutls.lo] Error 1 make[5]: Leaving directory `/sources/NetworkManager/NetworkManager-0.9.4.0/libnm-util' [...]
The following sed allows to build:
sed -i 's/gnutls_datum /gnutls_datum_t /' libnm-util/crypto_gnutls.c
Be sure to include the spaces before the 2nd and 3rd /
Change History (3)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Switched from GnuTLS to NSS in r10199
Note:
See TracTickets
for help on using tickets.
Hm, I encountered some problems with GnuTLS too. I switched to NSS for my builds. It builds cleanly and api does not change that often. Will switch instructions over to NSS. Looks like GnuTLS crypto stuff isn't maintaned that much.