Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 471077

Summary: app-emulation/wine-1.5.30[ssl] fails with gnutls-3.2.0 - conftest.c:160:15: error: 'gnutls_mac_get_key_size' undeclared (first use in this function)
Product: Gentoo Linux Reporter: Ben Kohler <bkohler>
Component: Current packagesAssignee: Wine Maintainers <wine>
Status: RESOLVED FIXED    
Severity: normal CC: ao, bkohler, marek.bartosiewicz, musv, spiros, yuriy, zeekec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://bugs.winehq.org/show_bug.cgi?id=33649
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: config.log.gz
config.log (2)
wine-gnutls-3.2.0-fix.patch

Description Ben Kohler gentoo-dev 2013-05-23 14:41:05 UTC
Created attachment 348991 [details]
config.log.gz

The new gnutls-3.2.0 breaks current wine[ssl], probably because of changes in this commit:
https://gitorious.org/gnutls/gnutls/commit/e0b3dbe3eb60e3a2d59ba0f20560160de8ce2288

Huge config.log attached, interesting portion says:

configure:10374: checking for gnutls/gnutls.h
configure:10374: result: yes
configure:10387: x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native   conftest.c >&5
conftest.c: In function 'main':
conftest.c:160:15: error: 'gnutls_mac_get_key_size' undeclared (first use in this function)
conftest.c:160:15: note: each undeclared identifier is reported only once for each function it appears in
configure:10387: $? = 1
Comment 1 Yuriy 2013-05-24 07:37:40 UTC
that same error
Comment 2 Pavel Volkov 2013-05-24 09:59:01 UTC
I have a different error, but also gnutls-related:

checking for gnutls/gnutls.h... yes
libxslt.so.1
configure: error: libgnutls development files not found, no schannel support.
This is an error since --with-gnutls was requested.

This is amd64 with USE flags for wine set to:
"X alsa cups gecko gstreamer jpeg lcms mono mp3 ncurses nls opengl oss perl png prelink samba scanner ssl threads truetype udisks xcomposite xinerama xml -capi -custom-cflags -fontconfig -gphoto2 -gsm -ldap -odbc -openal -opencl -osmesa -pulseaudio (-selinux) {-test} -v4l"
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-05-24 13:30:49 UTC
(In reply to comment #2)
> I have a different error, but also gnutls-related:

The error message from emerge told you to attach the config.log file; please attach it :)
Comment 4 Pavel Volkov 2013-05-24 14:49:22 UTC
Ok, I wasn't sure if it's the same bug or not.
Attaching now.
Comment 5 Pavel Volkov 2013-05-24 14:49:51 UTC
Created attachment 349066 [details]
config.log (2)
Comment 6 Ben Kohler gentoo-dev 2013-05-24 15:10:14 UTC
Created attachment 349072 [details, diff]
wine-gnutls-3.2.0-fix.patch

Please try this patch.  Since wine already calls epatch_user, you can drop this patch into /etc/portage/patches/app-emulation/wine/ and it will be applied on next "emerge wine".
Comment 7 Pavel Volkov 2013-05-24 15:52:12 UTC
Succeeded with the patch
Comment 8 Andrea Arteaga (RETIRED) gentoo-dev 2013-05-25 14:06:14 UTC
*** Bug 471218 has been marked as a duplicate of this bug. ***
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-05-26 04:28:16 UTC
Thanks for reporting and creating a patch. I've applied a slightly more upstreamable variant of the patch to 1.5.30, 1.5.31, and 9999 in portage.

+*wine-1.5.31 (26 May 2013)
+
+  26 May 2013; Alexandre Rostovtsev <tetromino@gentoo.org> wine-1.5.30.ebuild,
+  +wine-1.5.31.ebuild, wine-9999.ebuild, +files/wine-1.5.31-gnutls-3.2.0.patch:
+  Version bump, see http://www.winehq.org/announce/1.5.31 for the announcement.
+  Fix build failure with gnutls-3.2.0 (bug #471077, thanks to Ben Kohler).
Comment 10 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-05-26 12:08:37 UTC
*** Bug 471322 has been marked as a duplicate of this bug. ***