Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189081 - sys-devel/libtool-1.5.23b causes "line 6904: LANG: command not found"
Summary: sys-devel/libtool-1.5.23b causes "line 6904: LANG: command not found"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-16 08:54 UTC by Stefan Kost
Modified: 2007-08-17 19:58 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 Stefan Kost 2007-08-16 08:54:05 UTC
there seems to be a gentoo modification in libtool:

      # Restore saved environment variables
      for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
      do
        eval "if test \"\${save_$lt_var+set}\" = set; then
                $lt_var=\$save_$lt_var; export $lt_var
              else
                $lt_unset $lt_var
              fi"
      done

Is there some issue with it? because after that I get:

/usr/bin/libtool: line 6904: LANG: command not found
/usr/bin/libtool: line 6904: LC_ALL: command not found
/usr/bin/libtool: line 6904: LC_CTYPE: command not found
/usr/bin/libtool: line 6904: LC_COLLATE: command not found
/usr/bin/libtool: line 6904: LC_MESSAGES: command not found
Comment 1 Stefan Kost 2007-08-16 09:08:08 UTC
When I remove this, it works fine for me:
               else
                $lt_unset $lt_var
Comment 2 SpanKY gentoo-dev 2007-08-16 19:33:51 UTC
i dont know why you think Gentoo added that code when in reality it comes from autoconf which inserts it automatically

please describe what you're actually doing and include `emerge --info` instead of drilling down to the wrong conclusion
Comment 3 Stefan Kost 2007-08-17 11:58:12 UTC
Sorry for jumping to a quick conclussion. I run a buildbot cluster and got this only on the entoo box after a recent update.

You get the error by running:
libtool --mode=execute ./<uninstalled_binary>

below is the output of emerge --info and locale -a

$ emerge --info
Portage 2.1.2.11 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 16 Aug 2007 16:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
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.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j5"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dfx 3dnow X acl acpi alsa apache2 berkdb bitmap-fonts cdr cli cracklib crypt cups directfb dlloader dmx dri dvd dvdr eds fbcon firebird font-server fortran gdbm gkthtml gnome gnutls gpm gstreamer gtk gtk2 hal iconv imap ipv6 isdnlog java ldap lm_sensors midi mmx mozdevelop mozilla mozsvg mozxmlterm mudflap mysql nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses nfs nls nptl nptlonly openmp openntpd pam pcre perl perlsuid postgres pppd python readline reflection samba sdk session snmp spl sse ssl svga symlink tcltk tcpd tetex threads tiff toolbar truetype-fonts type1-fonts unicode userlocales x86 xchatdccserver xchattext xinerama xorg xprint zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

$ locale -a
C
de_DE
de_DE@euro
de_DE.utf8
en_US
en_US.utf8
POSIX
Comment 4 SpanKY gentoo-dev 2007-08-17 17:43:02 UTC
works fine for me

post a URI to the code you're actually compiling

also, run this:
libtool --debug --mode=execute ./<uninstalled_binary> >& log
and post the log as an attachment
Comment 5 Stefan Kost 2007-08-17 19:26:27 UTC
here is the trace, thanks for pointing out --debug, did not know about it. It seems that the cause of my trouble is that $lt_unset is empty. I don't find any other reference to it.

# libtool --debug --mode=execute ./bt-cmd --help
libtool: enabling shell trace mode
+ preserve_args=' --debug'
+ test 3 -gt 0
+ arg=--mode=execute
+ shift
+ case $arg in
++ echo X--mode=execute
++ /bin/sed -e '1s/^X//' -e 's/[-_a-zA-Z0-9]*=//'
+ optarg=execute
+ test -n ''
+ case $arg in
+ mode=execute
+ test 2 -gt 0
+ arg=./bt-cmd
+ shift
+ case $arg in
+ optarg=
+ test -n ''
+ case $arg in
+ nonopt=./bt-cmd
+ break
+ test -n ''
+ case $disable_libs in
+ exec_cmd=
+ test -z ''
+ test -z execute
+ test -n ''
+ generic_help='Try `libtool --help'\'' for more information.'
+ help='Try `libtool --help --mode=execute'\'' for more information.'
+ case $mode in
+ modename='libtool: execute'
+ cmd=./bt-cmd
+ test -z ./bt-cmd
+ libtool_execute_magic='%%%MAGIC variable%%%'
+ args=
+ for file in '"$@"'
+ case $file in
++ echo X--help
++ /bin/sed -e '1s/^X//' -e 's/\([\\`\\"$\\\\]\)/\\\1/g'
+ file=--help
+ args=' "--help"'
+ test -z ''
+ test -n LD_LIBRARY_PATH
+ eval 'export LD_LIBRARY_PATH'
++ export LD_LIBRARY_PATH
+ for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ eval 'if test "${save_LANG+set}" = set; then
                LANG=$save_LANG; export LANG
              else
                 LANG
              fi'
++ test set = set
++ LANG=en_US.utf8
++ export LANG
+ for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ eval 'if test "${save_LC_ALL+set}" = set; then
                LC_ALL=$save_LC_ALL; export LC_ALL
              else
                 LC_ALL
              fi'
++ test set = set
++ LC_ALL=en_US.utf8
++ export LC_ALL
+ for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ eval 'if test "${save_LC_CTYPE+set}" = set; then
                LC_CTYPE=$save_LC_CTYPE; export LC_CTYPE
              else
                 LC_CTYPE
              fi'
++ test '' = set
++ LC_CTYPE
/usr/bin/libtool: line 6904: LC_CTYPE: command not found
+ for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ eval 'if test "${save_LC_COLLATE+set}" = set; then
                LC_COLLATE=$save_LC_COLLATE; export LC_COLLATE
              else
                 LC_COLLATE
              fi'
++ test '' = set
++ LC_COLLATE
/usr/bin/libtool: line 6904: LC_COLLATE: command not found
+ for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ eval 'if test "${save_LC_MESSAGES+set}" = set; then
                LC_MESSAGES=$save_LC_MESSAGES; export LC_MESSAGES
              else
                 LC_MESSAGES
              fi'
++ test '' = set
++ LC_MESSAGES
/usr/bin/libtool: line 6904: LC_MESSAGES: command not found
+ exec_cmd='$cmd "--help"'
+ test -z '$cmd "--help"'
+ test -n '$cmd "--help"'
+ eval exec '$cmd' '"--help"'
++ exec ./bt-cmd --help
Usage:
  lt-bt-cmd [OPTION...]

Help Options:
  -?, --help                                  Show help options
  --help-all                                  Show all help options
  --help-gst                                  Show GStreamer Options
  --help-bt-core                              Show buzztard core options

Application Options:
  --version                                   Show version
  -q, --quiet                                 Be quiet
  --command={info, play, convert, encode}     Command name
  --input-file=<songfile>                     Input file name
  --output-file=<songfile>                    Output file name

Comment 6 SpanKY gentoo-dev 2007-08-17 19:58:47 UTC
this has been fixed in libtool-1.5.24 which i'll get stabilized

thanks for the info