Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503644 - net-misc/openconnect-5.99 with net-libs/gnutls-2.12.23-r4 - In function 'openconnect_SSL_read': gnutls.c:119:22: error: 'GNUTLS_E_PREMATURE_TERMINATION' undeclared (first use in this function)
Summary: net-misc/openconnect-5.99 with net-libs/gnutls-2.12.23-r4 - In function 'open...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Schultz
URL:
Whiteboard:
Keywords:
: 503996 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-06 17:52 UTC by Kobboi
Modified: 2014-03-17 17:07 UTC (History)
4 users (show)

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


Attachments
openconnect-5.99-r1.ebuild (openconnect-5.99-r1.ebuild,4.64 KB, text/plain)
2014-03-17 16:44 UTC, Matthew Schultz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2014-03-06 17:52:35 UTC
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"openconnect\" -DPACKAGE_TARNAME=\"openconnect\" -DPACKAGE_VERSION=\"5.99\" -DPACKAGE_STRING=\"openconnect\ 5.99\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"openconnect\" -DVERSION=\"5.99\" -D_POSIX_C_SOURCE=200112L -D_BSD_SOURCE=1 -D_GNU_SOURCE=1 -DDEFAULT_VPNCSCRIPT=\"/etc/openconnect/openconnect.sh\" -DHAVE_GETLINE=1 -DHAVE_STRCASESTR=1 -DHAVE_ASPRINTF=1 -DHAVE_INET_ATON=1 -DHAVE_SETENV=1 -DHAVE_UNSETENV=1 -DENABLE_NLS=1 -DDEFAULT_SYSTEM_CAFILE=\"/etc/ssl/certs/ca-certificates.crt\" -DOPENCONNECT_GNUTLS=1 -DDTLS_GNUTLS=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DIF_TUN_HDR=\"linux/if_tun.h\" -I.  -DLOCALEDIR="\"/usr/share/locale\""  -Wall -Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Werror=pointer-to-int-cast -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Wnested-externs -Wpointer-arith -Wwrite-strings   -I/usr/include/libxml2         -march=core2 -msse4 -mcx16 -mpopcnt -msahf -O2 -pipe -c -o libopenconnect_la-tun.lo `test -f 'tun.c' || echo './'`tun.c
gnutls.c: In function 'openconnect_SSL_read':
gnutls.c:119:22: error: 'GNUTLS_E_PREMATURE_TERMINATION' undeclared (first use in this function)
   } else if (done == GNUTLS_E_PREMATURE_TERMINATION) {
                      ^
gnutls.c:119:22: note: each undeclared identifier is reported only once for each function it appears in
Makefile:809: recipe for target 'libopenconnect_la-gnutls.lo' failed
make[1]: *** [libopenconnect_la-gnutls.lo] Error 1
make[1]: *** Waiting for unfinished jobs....





Reproducible: Always




Workaround: upgrade to gnutls-3
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-09 16:13:42 UTC
*** Bug 503996 has been marked as a duplicate of this bug. ***
Comment 2 Matthew Schultz 2014-03-17 16:44:10 UTC
Created attachment 372864 [details]
openconnect-5.99-r1.ebuild

Removed dependency on gnutls-2 since it appears it's no longer supported in 5.99.
Comment 3 Julian Ospald 2014-03-17 17:07:00 UTC
comitted both in 5.99 and 5.99-r1