Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352252 - net-print/cups-1.4.6[gnutls,ssl] - http.c:2785:23: error: ‘gnutls_lock’ undeclared (first use in this function)
Summary: net-print/cups-1.4.6[gnutls,ssl] - http.c:2785:23: error: ‘gnutls_lock’ undec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-20 16:58 UTC by Andrew Savchenko
Modified: 2012-01-27 20:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,17.16 KB, text/plain)
2011-01-20 16:59 UTC, Andrew Savchenko
Details
environment (environment,294.81 KB, text/plain)
2011-01-20 16:59 UTC, Andrew Savchenko
Details
emerge --info (emerge-info,7.74 KB, text/plain)
2011-01-20 16:59 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2011-01-20 16:58:45 UTC
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.
Comment 1 Andrew Savchenko gentoo-dev 2011-01-20 16:59:17 UTC
Created attachment 260381 [details]
build.log
Comment 2 Andrew Savchenko gentoo-dev 2011-01-20 16:59:34 UTC
Created attachment 260382 [details]
environment
Comment 3 Andrew Savchenko gentoo-dev 2011-01-20 16:59:53 UTC
Created attachment 260384 [details]
emerge --info
Comment 4 jeremy 2011-01-20 21:48:16 UTC
i see the same behavior. for some reason it refuses to build with gnutls enabled unless threads is also enabled.
Comment 5 Dmitry Bigunyak 2011-01-26 09:18:08 UTC
Got the same error. Enabling the threads flag solves the problem.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2011-06-06 21:55:34 UTC
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.
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2012-01-27 20:44:40 UTC
This seems to be fixed in cups-1.5.0.