Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94948 - app-text/enscript-1.6.4 fails to configure
Summary: app-text/enscript-1.6.4 fails to configure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-03 13:32 UTC by Brian Tarricone
Modified: 2006-01-14 14:38 UTC (History)
1 user (show)

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


Attachments
config.log (config.log,80.98 KB, text/plain)
2005-06-03 13:39 UTC, Brian Tarricone
Details
enscript-1.6.4.ebuild.patch (enscript-1.6.4.ebuild.patch,230 bytes, patch)
2006-01-14 13:56 UTC, Keri Harris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Tarricone 2005-06-03 13:32:09 UTC
Last few lines of output:

checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.0, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking for perl... /usr/bin/perl
configure: error: conditional "AMDEP" was never defined.
Usually this means the macro was only invoked conditionally.


emerge --info:
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.1
1-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable
d]
ccache version 2.2 [disabled]
dev-lang/python:     2.2.3-r5, 2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.osuosl.org/ http://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aalib acpi4linux alsa apache2 apm audiofile avi berkdb bitmap-fonts bonobo cdparanoia cdr crypt cups curl dmx dvd dvdr dvdread emboss encode fam fbcon ffmpeg flac flash foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib innodb ipv6 jack java joystick jpeg junit kerberos krb4 ldap libcaca libg++ libwww mad matroska mbox mikmod mmx mmxext mp3 mpeg mysql ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline rtc samba sasl sdl session slang speex spell sqlite sse ssl stencil-buffer svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts ungif usb v4l2 vorbis win32codecs wmf xchattext xfs xine xml xml2 xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Brian Tarricone 2005-06-03 13:39:56 UTC
Created attachment 60537 [details]
config.log
Comment 2 Volker Hemmann 2005-06-04 12:55:29 UTC
Hi, 
 
I just emerged it succesfully, here is emerge info: 
 
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 
2.6.11-gentoo-r9 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 2000+ 
Gentoo Base System version 1.6.12 
ccache version 2.4 [enabled] 
dev-lang/python:     2.2.3-r5, 2.3.5 
sys-apps/sandbox:    1.2.8 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 
sys-devel/binutils:  2.16-r1 
sys-devel/libtool:   1.5.18 
virtual/os-headers:  2.6.11-r1 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-march=athlon-xp -O2 -mmmx -m3dnow -msse -mfpmath=sse -ftracer 
-frename-registers -fweb -fomit-frame-pointer -Wdisabled-optimization -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -O2 -mmmx -m3dnow -msse -mfpmath=sse -ftracer 
-frename-registers -fweb -fomit-frame-pointer -Wdisabled-optimization -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig candy ccache distlocks notitles sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo 
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
LC_ALL="de_DE@euro" 
LINGUAS="de" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 16bit 3dnow 3dnowext 3ds S3TC X a52 aac aalib acpi alsa arts audiofile 
avi bash-completion berkdb bitmap-fonts bluetooth bzip2 bzlib cairo caps cdparanoia 
cdr cpudetection crypt css ctype curl dio divx4linux dnd dpms dvd dvdr dvdread editor 
emacs-w3 emboss encode exif expat fame fb fbcon ffmpeg fftw flac fortran freetype 
ftp gcc-libffi gd gdbm gif gimp glitz gnokii graphviz gs gtk gtk2 icq imagemagick imlib 
ipv6 irmc jack jack-tmpfs java javascript joystick jp2 jpeg jpeg2k kde kdeenablefinal 
ladcca lesstif libg++ libwww lzw mad maildir mikmod mjpeg mmx mng monkey motif 
mp3 mpeg mplayer mule music mysql ncurses nls no-htdocs no-old-linux noamazon 
noantlr nobcel nobeanutils nobsf nobsh nocardbus nocd nocommonslogging 
nocommonsnet nojdepend nojsch nojython nolog4j nooro nosendmail nowin nptl 
nvidia objc offensive ogg oggvorbis openal opengl pam pdflib perl physfs pic png 
posix python qemu-fast qt quicktime readline real samba scanner sdl server 
sharedmem slang sms snmp speex spell sqlite sse ssl stencil-buffer svg tcltk tcpd 
theora threads tiff timidity transcode truetype truetype-fonts type1-fonts unicode usb 
userlocales v4l v4l2 vanilla vcd videos vidix visualization vorbis win32codecs xanim 
xemacs xine xinerama xml2 xmlrpc xmms xosd xpm xrandr xscreensaver xv xvid xvmc 
yv12 zlib zvbi linguas_de userland_GNU kernel_linux elibc_glibc" 
 
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2005-06-07 03:04:46 UTC
try to add autoconf before econf 
Comment 4 Brian Tarricone 2005-06-07 11:16:08 UTC
(In reply to comment #3)
> try to add autoconf before econf 

Nope, same error.

I'm also seeing several errors in the configure output like this:

checking sys/param.h usability... no
checking sys/param.h presence... yes
configure: WARNING: sys/param.h: present but cannot be compiled
configure: WARNING: sys/param.h:     check for missing prerequisite headers?
configure: WARNING: sys/param.h: see the Autoconf documentation
configure: WARNING: sys/param.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/param.h: proceeding with the preprocessor's result
configure: WARNING: sys/param.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------- ##
configure: WARNING:     ## Report this to mtr@iki.fi ##
configure: WARNING:     ## ------------------------- ##
checking for sys/param.h... yes

There are about 8-10 of them, some of them for seemingly-important includes
(locale.h, stdarg.h, math.h, etc.).

The strange thing is that I took a look in configure.in, and AM_CONDITIONAL()
isn't used anywhere, which is usually what causes this error (you should only
use AM_CONDITIONAL() at the top level, never calling the macro inside only one
branch of an if statement).

I also tried:

aclocal -I m4
autoheader --force
automake --add-missing --force
autoconf -I m4

and a few combinations and permutations of that (as well as without arguments),
but I still get the same error.
Comment 5 Adam Torgerson 2005-06-08 17:24:52 UTC
Just wanted to chime in on this, I am having the same problem as Brian. My
emerge --info is almost identical, except for USE flags and kernel/python version.
Comment 6 Ashu Tiwary 2005-07-24 17:19:04 UTC
i'm seeing the same problem as illustrated above; my "emerge --info" is pretty
much the same as the ones listed above w/ the slight exceptions of the linux
kernel / python version and USE flags; additionally, i've noticed that i can do
an "ebuild ${PORTDIR}/enscript/enscript-1.6.4.ebuild unpack", navigate to
${PORTAGE_TMPDIR}/portage/enscript-1.6.4/work/enscript-1.6.4, run the same
configure manually that emerge says it is running: "./configure --prefix=/usr
--host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info
--datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
--build=i686-pc-linux-gnu --enable-nls", this runs to completion fine - and i
can subsequently manually compile from there.  of course, even if i run
"configure" manually, if i run "ebuild .../enscript-1.6.4 compile" then i
re-runs the portage system's "configure" which has the error listed above.
Comment 7 Keri Harris gentoo-dev 2005-12-25 18:12:33 UTC
This error is caused by having the CC environment variable set before running configure. From the config.log attachment:

ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc

There's a conditional block in the configure script that will only execute if $CC is *not* set:

if test "X$CC" = "X"; then

<snip>

if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi

<snip>

fi

Finally there's the check to make sure that at least one of AMDEP_TRUE and AMDEP_FALSE is set. If they are both unset then configure fails:

if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
echo "$as_me: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2006-01-14 12:25:52 UTC
so how can we solve this? Can you provide a patch please?
Comment 9 Keri Harris gentoo-dev 2006-01-14 13:56:29 UTC
Created attachment 77110 [details, diff]
enscript-1.6.4.ebuild.patch

The environment variable CC can simply be unset in src_compile. Find attached an ebuild patch to do this.
Comment 10 Stefan Schweizer (RETIRED) gentoo-dev 2006-01-14 14:38:33 UTC
thanks, i added the patch