Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135097 - app-crypt/gnupg-1.9.20-r3 failed to compile
Summary: app-crypt/gnupg-1.9.20-r3 failed to compile
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-31 19:32 UTC by Jeff Boardman
Modified: 2006-10-04 21:18 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 Jeff Boardman 2006-05-31 19:32:32 UTC
Gentoo etc # emerge --info
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.6-r3, 2.6.15.1 i686)
=================================================================
System uname: 2.6.15.1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://gentoo.ccccom.com http://mirror.tucdemonic.org/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://mirror.hamakor.org.il/pub/mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 alsa apache2 apm arts audiofile berkdb bitmap-fonts bzip2 cdr cli crypt cups dri eds emboss encode esd expat foomaticdb fortran gdbm gif gpm gstreamer gtk2 imagemagick imlib ipv6 isdnlog jpeg lcms libg++ libwww mad maildir mhash mikmod mng mp3 ncurses nls nptl ogg oss pam pcre perl png pppd python readline reflection samba sasl sdl session slang spell spl ssl tcpd tiff truetype-fonts type1-fonts udev usb vorbis xml xml2 xmms xorg xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS






Tail of error

if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../gl -I../common -I../intl -DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\"" -DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib/gnupg\"" -DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\""         -I/usr/include -O2 -mcpu=i686 -pipe -Wall -MT preset-passphrase.o -MD -MP -MF ".deps/preset-passphrase.Tpo" -c -o preset-passphrase.o preset-passphrase.c; \
then mv -f ".deps/preset-passphrase.Tpo" ".deps/preset-passphrase.Po"; else rm -f ".deps/preset-passphrase.Tpo"; exit 1; fi
preset-passphrase.c: In function `map_spwq_error':
preset-passphrase.c:140: error: `GPG_ERR_PROTOCOL_VIOLATION' undeclared (first use in this function)
preset-passphrase.c:140: error: (Each undeclared identifier is reported only once
preset-passphrase.c:140: error: for each function it appears in.)
make[2]: *** [preset-passphrase.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gnupg-1.9.20-r3/work/gnupg-1.9.20/agent'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnupg-1.9.20-r3/work/gnupg-1.9.20'
make: *** [all] Error 2

!!! ERROR: app-crypt/gnupg-1.9.20-r3 failed.
!!! Function src_compile, Line 82, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2006-06-01 04:49:06 UTC
I'm a little confused how this occurred.
What version of dev-libs/libgpg-error-1.1 have you got?

Does /usr/include/gpg-error.h exist?

Does 'fgrep -r GPG_ERR_PROTOCOL_VIOLATION /usr/include/' show:
/usr/include/gpg-error.h:    GPG_ERR_PROTOCOL_VIOLATION = 168,
Comment 2 Jeff Boardman 2006-06-01 06:06:41 UTC
I'm a little confused how this occurred.
What version of dev-libs/libgpg-error-1.1 have you got?

Gentoo etc # emerge -s libgpg-error
Searching...
[ Results for search key : libgpg-error ]
[ Applications found : 1 ]

*  dev-libs/libgpg-error
      Latest version available: 1.0-r1
      Latest version installed: 1.0-r1
      Size of downloaded files: 316 kB
      Homepage:    http://www.gnupg.org/(en)/download/index.html#libgpg-error
      Description: Contains error handling functions used by GnuPG software
      License:     GPL-2 LGPL-2.1



Does /usr/include/gpg-error.h exist?

Gentoo etc # ls -lart /usr/include/gpg-error.h
-rw-r--r-- 1 root root 20222 Jun  6  2005 /usr/include/gpg-error.h



Does 'fgrep -r GPG_ERR_PROTOCOL_VIOLATION /usr/include/' show:
/usr/include/gpg-error.h:    GPG_ERR_PROTOCOL_VIOLATION = 168,

Gentoo etc # fgrep -r GPG_ERR_PROTOCOL_VIOLATION /usr/include/
fgrep: /usr/include/GL/glxtokens.h: No such file or directory
fgrep: /usr/include/GL/gl.h: No such file or directory
fgrep: /usr/include/GL/glx.h: No such file or directory
/usr/include/gpg-error.h:    GPG_ERR_PROTOCOL_VIOLATION = 168,
Comment 3 Jeff Boardman 2006-06-01 09:27:20 UTC
Based on your comment that libgpg-error-1.1 was needed I took matters in to my own hands. It is interesting that libgpg-error-1.1 was not in my upgrade path while performing an 'emerge --update --deep --newuse world until I did the following:

Gentoo portage # emerge -up =libgpg-error-1.1
These are the packages that I would merge, in order:
Calculating dependencies
!!! All ebuilds that could satisfy "=libgpg-error-1.1" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-libs/libgpg-error-1.1 (masked by: ~x86 keyword)
For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.


echo "dev-libs/libgpg-error ~x86" >> /etc/portage/package.keywords


Gentoo etc # emerge --update --deep --newuse --pretend world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
[ebuild     U ] dev-libs/libgpg-error-1.1 [1.0-r1]
[ebuild  NS   ] app-crypt/gnupg-1.9.20-r3
<snip>

libgpg-error-1.1 upgraded fine, but the gnupg crashed with the exact same error.

Is gnupg-1.9.20-r3 supposed to be a slot install and co-exist with 1.4.2.2 instead of an upgrade?

*  app-crypt/gnupg
      Latest version available: 1.9.20-r3
      Latest version installed: 1.4.2.2
      Size of downloaded files: 5,302 kB
      Homepage:    http://www.gnupg.org/
      Description: The GNU Privacy Guard, a GPL pgp replacement
      License:     GPL-2

Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-30 13:09:09 UTC
Hello Jeff,

Can you please attach your /usr/include/gpg-error.h, and verify that you have no other gpg-error.h on your filesystem?
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-30 13:10:15 UTC
Please also paste the output of newest gnupg, app-crypt/gnupg-1.9.21-r1.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-04 21:18:24 UTC
I just ran into this while testing something else, and it's an upstream glitch that is fixed in 1.9.21+ (which is presently stable, so I'm closing).