Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25306 - emerge pinentry failing when doing autoconf
Summary: emerge pinentry failing when doing autoconf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: J Robert Ray
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-26 02:04 UTC by Hasse Hagen Johansen
Modified: 2003-12-11 11:20 UTC (History)
4 users (show)

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


Attachments
proposed pinetry configure patch (pinentry-0.6.8.patch,323 bytes, patch)
2003-08-24 03:40 UTC, Brandy Westcott (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hasse Hagen Johansen 2003-07-26 02:04:17 UTC
when I emerge pinentry it it stops when doing autoconf. Her is the output:

emerge --verbose pinentry
Calculating dependencies ...done!
>>> emerge (1 of 1) app-crypt/pinentry-0.6.8 to /
>>> md5 src_uri ;-) pinentry-0.6.8.tar.gz
>>> Unpacking source...
>>> Unpacking pinentry-0.6.8.tar.gz to /var/tmp/portage/pinentry-0.6.8/work
>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /bin/install -c
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for seteuid... yes
checking for stpcpy... yes
checking for mlock... yes
checking whether mlock is broken... no
checking for fopencookie... yes
checking for byte typedef... no
checking for ulong typedef... yes
checking for setcap... :
checking for cap_set_proc in -lcap... no
checking for initscr in -lncurses... yes
checking for ncurses include dir... none
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft,
char * *outbuf, size_t *outbytesleft);
checking for glib-config... /usr/bin/glib-config
checking for GLIB - version >= 1.2.0... yes
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.0... yes
configure: error: conditional "am__fastdepCXX" was never defined.
Usually this means the macro was only invoked conditionally.
 
!!! ERROR: app-crypt/pinentry-0.6.8 failed.
!!! Function econf, Line 320, Exitcode 1
!!! econf failed

Reproducible: Always
Steps to Reproduce:
1. emerge pinentry
2.
3.

Actual Results:  
autoconf failed, something about a macro which isn't defined

Expected Results:  
the pinentry should be emerged

emerge info
Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.22-pre5 i686 AMD Athlon(tm) processor
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo// http://gentoo.linux.no/
ftp://gentoo.linux.no/pub/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 foomaticdb libg++ mad gtk X gnome alsa 3dnow aalib acpi apm avi berkdb
bonobo cdr crypt cups dga directfb doc dvd encode esd evo fbcon flash gb gd gdbm
ggi gif gphoto2 gpm gtk2 gtkhtml guile imap imlib innodb ipv6 java jikes jpeg
kerberos krb4 lcms ldap leim libgda libwww matrox maildir mbox mikmod mmx motif
mozilla mpeg mule mysql nas ncurses nls oav oci8 odbc oggvorbis opengl oss pam
pda pdflib perl pic png python quicktime radeon readline samba sasl scanner sdl
slang slp spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf xface xml
xml2 xmms xv zlib ladcca -3dfx -arts -kde -pcmcia -qt -qtmt"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-tbird -O3 -pipe -fstack-protector"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2003-08-17 06:16:12 UTC
Please attach the contents of /var/tmp/portage/pinentry-0.6.8/work/pinentry-0.6.8/config.log
It works for me
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-08-24 00:29:38 UTC
pinentry will only fail with the above error when USE="-qt" is set. 
The configure script initializes am__fastdepCXX only within the 
qt-specific part: 
 
 
	# Check whether --enable-pinentry-qt or --disable-pinentry-qt was given. 
	if test "${enable_pinentry_qt+set}" = set; then 
	  enableval="$enable_pinentry_qt" 
	  pinentry_qt=$enableval 
	else 
	  pinentry_qt=maybe 
	fi; 
 
	if test "$pinentry_qt" != "no"; then     // start of qt-specific checks 
 
	...... 
 
	  if 
	    test "x$enable_dependency_tracking" != xno \ 
	    && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 
	    am__fastdepCXX_TRUE= 
	    am__fastdepCXX_FALSE='#' 
	  else 
	    am__fastdepCXX_TRUE='#' 
	    am__fastdepCXX_FALSE= 
	  fi 
 
	..... 
 
	fi     // end of qt-specific checks 
 
 
And then the configure script checks that it has been initialized: 
 
 
	if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; 
then 
	  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never 
defined. 
	Usually this means the macro was only invoked conditionally." >&5 
 
 
Changing the configure script to initialize am__fastdepCXX when USE="-qt" : 
 
	if test "$pinentry_qt" = "yes"; then 
	  BUILD_PINENTRY_QT_TRUE= 
	  BUILD_PINENTRY_QT_FALSE='#' 
	else 
	  BUILD_PINENTRY_QT_TRUE='#' 
	  BUILD_PINENTRY_QT_FALSE= 
	  am__fastdepCXX_TRUE='#'		<-- extra line 
	  am__fastdepCXX_FALSE=		<-- extra line 
	fi 
 
With this change, pinentry configures and compiles wonderfully with or 
without qt set in USE. :) 
Comment 3 Brandy Westcott (RETIRED) gentoo-dev 2003-08-24 03:40:23 UTC
Created attachment 16533 [details, diff]
proposed pinetry configure patch
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-10-28 05:09:40 UTC
is this still an issue since 0.6.9 is in cvs and 0.6.8 no more ?
Comment 5 Brandy Westcott (RETIRED) gentoo-dev 2003-10-28 15:57:21 UTC
The upstream developers have sensibly moved the dependency-tracking
checks outside the qt-environment checks with pinentry-0.6.9; it now
configures lovely.
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-11 11:20:00 UTC
so we can close this :D