Hello, cups-1.4.6 fails to compile with gnutls support: http.c: In function ‘http_read_ssl’: http.c:2785:3: warning: implicit declaration of function ‘pthread_mutex_lock’ http.c:2785:23: error: ‘gnutls_lock’ undeclared (first use in this function) http.c:2785:23: note: each undeclared identifier is reported only once for each function it appears in http.c:2787:3: warning: implicit declaration of function ‘pthread_mutex_unlock’ http.c: In function ‘http_setup_ssl’: http.c:3103:23: error: ‘gnutls_lock’ undeclared (first use in this function) http.c: In function ‘http_shutdown_ssl’: http.c:3217:23: error: ‘gnutls_lock’ undeclared (first use in this function) http.c: In function ‘http_write_ssl’: http.c:3468:23: error: ‘gnutls_lock’ undeclared (first use in this function) make[1]: *** [http.o] Error 1 With openssl support (USE="-gnutls ssl") it builds well.
Created attachment 260381 [details] build.log
Created attachment 260382 [details] environment
Created attachment 260384 [details] emerge --info
i see the same behavior. for some reason it refuses to build with gnutls enabled unless threads is also enabled.
Got the same error. Enabling the threads flag solves the problem.
Looks like an upstream bug. It's now being worked around by - surprise - enabling threads... Keeping the bug open because this needs to be checked again for future versions, but it's not blocking anything anymore.
This seems to be fixed in cups-1.5.0.