Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183335 - autogen-5.7.1 failed to compile if user shell set as tcsh
Summary: autogen-5.7.1 failed to compile if user shell set as tcsh
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-26 22:15 UTC by Christophe
Modified: 2007-06-26 22:18 UTC (History)
0 users

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 Christophe 2007-06-26 22:15:08 UTC
autogen failed to compile when the terminal was originally started from my account (tcsh) even if the su is set on bash. Switching to bash or sh before emerge did not solve it. However running emerge from root console (bash) worked.



Reproducible: Always

Steps to Reproduce:
1. under amd64, with user shell set as tcsh
2. go super user, and emerge autogen 
3.

Actual Results:  
...
Making all in xml2ag
make[2]: Entering directory `/disk0/gentoo/tmp/portage/sys-devel/autogen-5.7.1/work/autogen-5.7.1/xml2ag'
top_builddir=.. top_srcdir=.. PATH=`cd ../columns;pwd`:$PATH ; export top_builddir top_srcdir PATH ; /disk0/gentoo/tmp/portage/sys-devel/autogen-5.7.1/work/autogen-5.7.1/agen5/autogen ./xmlopts.def
Your shell is '/bin/tcsh'.  AutoGen will attempt to use 'sh'
Changing server shell from sh to /bin/sh
top_builddir=.. top_srcdir=.. ; \
	export top_builddir top_srcdir ; \
	CLexe=/disk0/gentoo/tmp/portage/sys-devel/autogen-5.7.1/work/autogen-5.7.1/columns/columns \
	/disk0/gentoo/tmp/portage/sys-devel/autogen-5.7.1/work/autogen-5.7.1/agen5/autogen -Tfork.tpl ./xmlopts.def
Your shell is '/bin/tcsh'.  AutoGen will attempt to use 'sh'
Changing server shell from sh to /bin/tcsh
Ambiguous output redirect.
Closing server:  Alarm clock signal (14) received

Last command issued:
cd /disk0/gentoo/tmp/portage/sys-devel/autogen-5.7.1/work/autogen-5.7.1/xml2ag
exec 8>&2 2>/dev/null

if test -n "${ZSH_VERSION+set}" && (emulate sh) 1>&2
then
  emulate sh
  NULLCMD=:

else if test -n "${BASH_VERSION+set}" && (set -o posix) 1>&2
then
  set -o posix
fi ; fi

for f in 1 2 5 6 7 13 14
do trap "echo trapped on $f >&2" $f ; done

test -n "${CDPATH}" && {
  CDPATH=''
  unset CDPATH
}
( unalias cd ) 1>&2 && unalias cd
die() {
  echo $* >&8
  kill -TERM ${AG_pid}
  exit 1
}
exec 2>&8
AG_pid=8216


echo
echo ShElL-OuTpUt-HaS-bEeN-cOmPlEtEd
AutoGen aborting on signal 6 (Aborted) in state EMITTING
processing template fork.tpl
            on line 113
       for function EXPR (11)
/bin/sh: line 3:  8216 Aborted                 CLexe=/disk0/gentoo/tmp/portage/sys-devel/autogen-5.7.1/work/autogen-5.7.1/columns/columns /disk0/gentoo/tmp/portage/sys-devel/autogen-5.7.1/work/autogen-5.7.1/agen5/autogen -Tfork.tpl ./xmlopts.def
make[2]: *** [fork.c] Error 134
make[2]: Leaving directory `/disk0/gentoo/tmp/portage/sys-devel/autogen-5.7.1/work/autogen-5.7.1/xml2ag'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/disk0/gentoo/tmp/portage/sys-devel/autogen-5.7.1/work/autogen-5.7.1'
make: *** [all] Error 2

!!! ERROR: sys-devel/autogen-5.7.1 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  autogen-5.7.1.ebuild, line 33:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/mnt/src/log/portage/sys-devel:autogen-5.7.1:20070626-213835.log'.


Expected Results:  
The detection and change of shell seems to failed as :
- I was under su which use bash, not tcsh (but my login user is tcsh)
- Anyway the script seems to perform the shell switch in wrong direction "Changing server shell from sh to /bin/tcsh"


emerge --info
Portage 2.1.2.7 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 26 Jun 2007 06:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -fomit-frame-pointer -mno-tls-direct-seg-refs"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://prometheus.cs.wmich.edu/gentoo "
LINGUAS="en en_GB fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/disk0/gentoo/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/m199"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi aiglx alsa amd64 bash-completion berkdb bindist bitmap-fonts bonobo bzip2 cairo cdparanoia cdr cli cracklib cups daap dbus divx divx4linux dri dvd dvdr dvdread dvi emboss emerald encode evo fam ffmpeg fftw firefox flac font-server foomaticdb fortran gdbm gif gimp gimpprint glitz glut gmedia gnome gnomedb gpm gstreamer gtk hal hddtemp iconv ioemu isdnlog jpeg kerberos libg++ libnotify lm_sensors mad metar midi mikmod mng mono mozbranding mp3 mpeg mudflap nautilus ncurses network nonfsv4 nptl nptlonly nsplugin nvidia ogg oggvorbis ole openal opengl openmp oss pam pcre pdf perl plotutils png ppds pppd pygrub python qt3support qt4 quicktime readline realmedia reflection samba screen sdl sensord server session sftplogging smp sourceview spell spl ssl stream svg tcpd theora threads tiff totem truetype truetype-fonts type1-fonts unicode v4l v4l2 vnc vorbis wma wmp xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB fr" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-26 22:18:53 UTC
Well, then run `su -` instead of su.