Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503126 - net-libs/gnutls-2.12.23-r1 with dev-libs/libgcrypt-1.6.1-r1 - init.c:37:3: error: unknown field 'init' specified in initializer
Summary: net-libs/gnutls-2.12.23-r1 with dev-libs/libgcrypt-1.6.1-r1 - init.c:37:3: er...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL: http://www.sourcemage.org/issues/646
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-01 15:27 UTC by Andreas Sturmlechner
Modified: 2015-02-03 11:59 UTC (History)
1 user (show)

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


Attachments
net-libs:gnutls-2.12.23-r1:20140301-141002.log (net-libs:gnutls-2.12.23-r1:20140301-141002.log,141.47 KB, text/plain)
2014-03-01 15:27 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2014-03-01 15:27:30 UTC
Created attachment 371502 [details]
net-libs:gnutls-2.12.23-r1:20140301-141002.log

Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.17, 3.4.82-gentoo x86_64)
=================================================================
System uname: Linux-3.4.82-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_L9400_@_1.86GHz-with-gentoo-2.2
KiB Mem:     8062572 total,   3403332 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Sat, 01 Mar 2014 12:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.2-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo kde a17rgentoo java-crap
Installed sets: @development, @enlightenment, @fonts, @kde-plasmaworkspace-411, @kde412-ownage, @kdepim412-ownage, @kdetools-ownage, @mailserver, @php-ownage, @qt-ownage, @system, @texlive13-ownage, @useful
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x PUEL Q3AEULA Q3AEULA-20000111"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.ynet.sk/pub/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://mirror.ynet.sk/pub/gentoo/ http://gentoo.lagis.at/ ftp://tux.rainside.sk/gentoo/ http://gentoo.inode.at/ http://tux.rainside.sk/gentoo/ ftp://gentoo.lagis.at/ http://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /usr/local/portage/ownage /usr/local/portage/java-crap"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="X a52 acl acpi addressbook akonadi alsa amd64 apache2 avahi bash-completion bluetooth branding bzip2 cdda cddb cdparanoia cdr cli colord consolekit corefonts cracklib crypt cups custom-cflags custom-cpuopts cxx dbus dirac dri dts dvb dvd dvdr egl emboss encode exif expat fam ffmpeg fftw firefox flac fontconfig ftp gd gdbm gif git gpm gs iconv icu id3tag idn imagemagick inotify jpeg jpeg2k kde kipi lame laptop lastfm lcms ldap libnotify lm_sensors lqr lzma lzo mad matroska mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib musicbrainz ncurses nls nptl nsplugin offensive ogg openexr opengl openmp pam pcre pdf phonon plasma pm-utils png policykit postgres ppds python3 qt3support qt4 quicktime readline schroedinger sdl secure-delete semantic-desktop session smp spell sse sse2 sse3 ssl ssse3 startup-notification svg syslog tcpd theora threads tidy tiff truetype udev udisks unicode upower usb v4l vaapi vcd vorbis vpx webp wicd x264 xcb xcomposite xml xmp xpm xv xvid yaz zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias lbmethod_byrequests proxy proxy_balancer slotmem_shm" CALLIGRA_FEATURES="braindump flow karbon kexi krita plan sheets words" CAMERAS="canon pentax ricoh" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-dib0700" ELIBC="glibc" ENLIGHTENMENT_MODULES="access backlight battery clock comp conf-applications conf-dialogs conf-display conf-edgebindings conf-interaction conf-intl conf-keybindings conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-wallpaper2 conf-window-manipulation conf-window-remembers cpufreq dropshadow everything fileman fileman-opinfo gadman ibar ibox illume2 mixer msgbus notification pager physics quickaccess shot start syscon systray tasks temperature tiling winlist wizard xkbswitch" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en de_AT de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON


Last words:

init.c:37:3: error: unknown field 'init' specified in initializer
   .init = NULL,
   ^
init.c:37:3: warning: excess elements in struct initializer [enabled by default]
init.c:37:3: warning: (near initialization for 'gct') [enabled by default]
init.c:38:3: error: unknown field 'select' specified in initializer
   .select = NULL,
   ^
init.c:38:3: warning: excess elements in struct initializer [enabled by default]
init.c:38:3: warning: (near initialization for 'gct') [enabled by default]
init.c:39:3: error: unknown field 'waitpid' specified in initializer
   .waitpid = NULL,
   ^
init.c:39:3: warning: excess elements in struct initializer [enabled by default]
init.c:39:3: warning: (near initialization for 'gct') [enabled by default]
init.c:40:3: error: unknown field 'accept' specified in initializer
   .accept = NULL,
   ^
init.c:40:3: warning: excess elements in struct initializer [enabled by default]
init.c:40:3: warning: (near initialization for 'gct') [enabled by default]
init.c:41:3: error: unknown field 'connect' specified in initializer
   .connect = NULL,
   ^
init.c:41:3: warning: excess elements in struct initializer [enabled by default]
init.c:41:3: warning: (near initialization for 'gct') [enabled by default]
init.c:42:3: error: unknown field 'sendmsg' specified in initializer
   .sendmsg = NULL,
   ^
init.c:42:3: warning: excess elements in struct initializer [enabled by default]
init.c:42:3: warning: (near initialization for 'gct') [enabled by default]
init.c:43:3: error: unknown field 'recvmsg' specified in initializer
   .recvmsg = NULL,
   ^
init.c:43:3: warning: excess elements in struct initializer [enabled by default]
init.c:43:3: warning: (near initialization for 'gct') [enabled by default]
init.c: In function 'gnutls_crypto_init':
init.c:56:14: error: 'struct gcry_thread_cbs' has no member named 'mutex_init'
           gct.mutex_init = gnutls_mutex_init;
              ^
init.c:57:14: error: 'struct gcry_thread_cbs' has no member named 'mutex_destroy'
           gct.mutex_destroy = gnutls_mutex_deinit;
              ^
init.c:58:14: error: 'struct gcry_thread_cbs' has no member named 'mutex_lock'
           gct.mutex_lock = gnutls_mutex_lock;
              ^
init.c:59:14: error: 'struct gcry_thread_cbs' has no member named 'mutex_unlock'
           gct.mutex_unlock = gnutls_mutex_unlock;
              ^
make[4]: *** [init.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-libs/gnutls-2.12.23-r1/work/gnutls-2.12.23/lib/gcrypt'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-libs/gnutls-2.12.23-r1/work/gnutls-2.12.23/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-libs/gnutls-2.12.23-r1/work/gnutls-2.12.23/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-libs/gnutls-2.12.23-r1/work/gnutls-2.12.23'
make: *** [all] Error 2


Quote from URL: "Like libssh, the default branch of gnutls (2.12) cannot access the functions newly listed private in the latest libgcrypt."
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2014-06-07 17:33:15 UTC
Hi,

I cannot reproduce this, any more hints of what special at your environment?
Comment 2 Thomas 2015-02-01 20:02:57 UTC
Same problem here on one of 3 machines.  Will try to provide some helpful information.
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2015-02-01 20:05:59 UTC
(In reply to Thomas from comment #2)
> Same problem here on one of 3 machines.  Will try to provide some helpful
> information.

we are in process of stabilizing gnutls-3.3, see bug#492522, so if it does not happen in gnutls-3.3 it does not worth the effort. can you please confirm?
Comment 4 Andreas Sturmlechner gentoo-dev 2015-02-01 20:25:51 UTC
Sorry about the huge delay. I could not reproduce this with gnutls-2.12.23-r6 either.
Comment 5 Thomas 2015-02-01 20:59:28 UTC
net-libs/gnutls-2.12.23-r6 does not compile against dev-libs/libgcrypt-1.6.2.
Comment 6 Andreas Sturmlechner gentoo-dev 2015-02-01 21:32:56 UTC
Hm, here it built fine on the previously affected system and as well on a second box...
Comment 7 Thomas 2015-02-01 22:02:47 UTC
Well, your system was affected almost a year ago.  While gnutls-2.12.23 probably did not change a lot meanwhile, other installed packages did.

I had gnutls-3.3.7 installed on my affected system, which might have depended on >libgrypt-1.6 (?), but then i reconfigured the system and dropped gnutls (and obviously kept libgcrypt 1.6.2).  Now gnutls-2 came back with cups-2 and had the problem you described abv (in an include file belonging to libgcrypt, BTW).

Switching back to stable libgcrypt 1.5.4 did the trick.
Comment 8 Andreas Sturmlechner gentoo-dev 2015-02-01 22:21:46 UTC
Yes, even though it is a stable system a lot has changed, still makes me wonder what's the culprit on your system. ;) However, we probably shouldn't waste time unless it happens again with gnutls-3. All versions since 3.2 were fine here.
Comment 9 Thomas 2015-02-03 11:59:24 UTC
As mentioned abv, libgcrypt was causing the problem, cf. comment #5:
> net-libs/gnutls-2.12.23-r6 does not compile against dev-libs/libgcrypt-1.6.2.

It does compile against libgcrypt-1.5.4, however.