[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libtool 2.2.6 broken?
From: |
Rich Wales |
Subject: |
libtool 2.2.6 broken? |
Date: |
Mon, 27 Oct 2008 14:02:01 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666 |
While trying to build gd-2.0.35 on an old RHEL3 system (kernel
2.4.21-57.EL), I ran into a bunch of errors while doing "make" (see
below). These errors appear to have come from a "libtool" shell
script in the gd-2.0.35 source directory -- a script which I assume
was created by libtool (version 2.2.6 is what's installed on this
system).
I added some tracing stuff into the "libtool" script in the gd-2.0.35
source directory, and I believe the problem is happening because a
shell variable "echo" is not being set. This, in turn, is causing
various constructs in the "libtool" script, such as the following --
case $arg in
-*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
-- to go crazy because $echo expands to an empty string and "X$arg"
therefore gets misinterpreted as a (nonexistent) executable command.
I tried adding echo=/bin/echo at the start of the "libtool"
script, and that fixed the problem; I was able to do a "make" without
difficulty.
I'm attaching a gzipped copy of the "libtool" script in case it may
be helpful.
I did a Google search and found lots and lots of people reporting
essentially the same problem while trying to build various other
packages, so I don't think it's specific to gd-2.0.35 -- more likely
a "libtool" problem. Unfortunately, neither these other people who
reported the problem nor anyone else on the forums in question seemed
to have the slightest clue of what might be broken.
If adding that extra echo=/bin/echo line to the top of the
generated script is not the best solution, then at least I would
suggest that the script ought to explictly check the value of $echo
before trying to use it, and complain if $echo is an empty value.
========================================================================
make[2]: Entering directory `/home/richw/src/gd-2.0.35'
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.
-g -O2 -MT gd.lo -MD -MP -MF ".deps/gd.Tpo" -c -o gd.lo gd.c; \
then mv -f ".deps/gd.Tpo" ".deps/gd.Plo"; else rm -f ".deps/gd.Tpo"; exit 1; fi
./libtool: line 1: X--tag=CC: command not found
./libtool: line 874: libtool: ignoring unknown tag : command not found
./libtool: line 1: X--mode=compile: command not found
./libtool: line 1007: *** Warning: inferring the mode of operation is
deprecated.: command not found
./libtool: line 1008: *** Future versions of Libtool will require --mode=MODE
be specified.: command not found
./libtool: line 1: Xgcc: command not found
./libtool: line 1: X-DHAVE_CONFIG_H: command not found
./libtool: line 1: X-I.: command not found
./libtool: line 1: X-I.: command not found
./libtool: line 1: X-I.: command not found
./libtool: line 1: X-g: command not found
./libtool: line 1: X-O2: command not found
./libtool: line 1: X-MT: command not found
./libtool: line 1: Xgd.lo: command not found
./libtool: line 1: X-MD: command not found
./libtool: line 1: X-MP: command not found
./libtool: line 1: X-MF: command not found
./libtool: line 1: X.deps/gd.Tpo: No such file or directory
./libtool: line 1: X-c: command not found
./libtool: line 1: Xgd.lo: command not found
./libtool: line 1207: libtool: compile: cannot determine name of library
object from `': command not found
make[2]: *** [gd.lo] Error 1
make[2]: Leaving directory `/home/richw/src/gd-2.0.35'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/richw/src/gd-2.0.35'
make: *** [all] Error 2
========================================================================
--
Rich Wales === Palo Alto, CA, USA === address@hidden
http://www.richw.org === http://en.wikipedia.org/wiki/User:Richwales
libtool.gz
Description: GNU Zip compressed data
- libtool 2.2.6 broken?,
Rich Wales <=