Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549014 - net-misc/aiccu-2007.01.15-r4 fails to build with net-libs/gnutls-3.4.1
Summary: net-misc/aiccu-2007.01.15-r4 fails to build with net-libs/gnutls-3.4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 557262
Blocks: gnutls-3.5-breakage
  Show dependency tree
 
Reported: 2015-05-09 13:50 UTC by Forza
Modified: 2015-09-22 07:24 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forza 2015-05-09 13:50:29 UTC
AICCU is using deprecated functions in GnuTLS-3.4.1. Compile fails. 

Reproducible: Always

Steps to Reproduce:
1. Install net-libs/gnutls-3.4.1
2. emerge net-misc/aiccu-2007.01.15-r4

Actual Results:  
x86_64-pc-linux-gnu-gcc -O2 -pipe -fomit-frame-pointer -march=native -mtune=native -msse3 -D_GNU_SOURCE -D AICCU_CONSOLE -D AICCU_GNUTLS -D_LINUX -D HAS_IFHEAD -D AICCU_TYPE="\"linux\""   -c -o ../common/aiccu_linux.o ../common/aiccu_linux.c
In file included from ../common/aiccu.h:17:0,
                 from ../common/aiccu_linux.c:13:
../common/common.h:384:2: warning: gnutls_session is deprecated [-Wdeprecated-declarations]
  gnutls_session  session; /* The GnuTLS sesision */
  ^
In file included from ../common/aiccu_linux.c:13:0:
../common/aiccu.h:114:2: warning: gnutls_certificate_credentials is deprecated [-Wdeprecated-declarations]
  gnutls_certificate_credentials tls_cred; /* GNUTLS credentials */
  ^
../common/aiccu_linux.c: In function aiccu_os_install:
../common/aiccu_linux.c:21:3: warning: ignoring return value of system, declared with attribute warn_unused_result [-Wunused-result]
   (void)system("modprobe -q ipv6 2>/dev/null >/dev/null");
   ^
../common/aiccu_linux.c:36:2: warning: ignoring return value of system, declared with attribute warn_unused_result [-Wunused-result]
  (void)system("modprobe -q sit 2>/dev/null >/dev/null");
  ^
../common/aiccu_linux.c:37:2: warning: ignoring return value of system, declared with attribute warn_unused_result [-Wunused-result]
  (void)system("modprobe -q tun 2>/dev/null >/dev/null");
  ^
x86_64-pc-linux-gnu-gcc -O2 -pipe -fomit-frame-pointer -march=native -mtune=native -msse3 -D_GNU_SOURCE -D AICCU_CONSOLE -D AICCU_GNUTLS -D_LINUX -D HAS_IFHEAD -D AICCU_TYPE="\"linux\"" -Wl,-O1,--sort-common,--enable-new-dtags -o aiccu main.o ../common/tun.o ../common/aiccu.o ../common/hash_md5.o ../common/hash_sha1.o ../common/common.o ../common/heartbeat.o ../common/tic.o ../common/ayiya.o ../common/aiccu_test.o ../common/resolver.o ../common/aiccu_linux.o -lgnutls -lpthread -lresolv
../common/common.o: In function `sock_alloc':
common.c:(.text+0x5c7): undefined reference to `gnutls_certificate_type_set_priority'
collect2: error: ld returned 1 exit status
Makefile:148: recipe for target 'aiccu' failed


The bug can be resolved by removing the following line from common.c:

gnutls_certificate_type_set_priority(sock->session, cert_type_priority);
Comment 2 Michael Weber (RETIRED) gentoo-dev 2015-08-10 23:44:30 UTC
commit 9cced17d2a04989d6fede3141bcb90f3ea9b0914
Author: Michael Weber <xmw@gentoo.org>
Date:   Tue Aug 11 01:39:53 2015 +0200

    net-misc/aiccu: fix for gnutls-3.4 and adjust dep (bug 549014, thanks spam and alpinelinux).
    
    Package-Manager: portage-2.2.20

net-misc/aiccu/aiccu-2007.01.15-r4.ebuild
net-misc/aiccu/aiccu-2007.01.15-r5.ebuild
net-misc/aiccu/files/aiccu-2007.01.15-gnutls-3.4.patch
Comment 3 Michael Weber (RETIRED) gentoo-dev 2015-08-11 00:11:02 UTC
(In reply to Conrad Kostecki from comment #1)
> There is a patch:
> http://git.alpinelinux.org/cgit/aports/tree/main/aiccu/gnutls-3.4.0.
> patch?id=9068d833c12cf96bd271cd0f84ec570305622caf
> 
> Haven't tested.

works against gnutls-3.3 with enabled tls login.
Comment 4 Michael Weber (RETIRED) gentoo-dev 2015-09-22 07:24:20 UTC
commit 1586694db3e6d545abe883e5e10f9aa6550b8d43
Author: Michael Weber <xmw@gentoo.org>
Date:   Tue Sep 22 09:20:35 2015 +0200

    net-misc/aiccu: Drop old revision (bug 549014).