bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

exceute mode fails in multi-language branch


From: Christian Vogler
Subject: exceute mode fails in multi-language branch
Date: Wed, 6 Jun 2001 02:56:14 -0400
User-agent: Mutt/1.3.15i

On the multi-language-branch, the execute mode fails for me. The exact
libtool version is:

ltconfig (GNU libtool) 1.4a (1.641.2.257 2001/05/28 20:59:25)

The failure happens with, for example, the following command:

address@hidden src]$ ../../libtool --debug --mode=execute ldd glftrack
libtool: enabling shell trace mode
+ test 3 -gt 0
+ arg=--mode=execute
+ shift
++ echo X--mode=execute
++ sed -e '1s/^X//' -e 's/[-_a-zA-Z0-9]*=//'
+ optarg=execute
+ test -n ''
+ mode=execute
+ test 2 -gt 0
+ arg=ldd

[stuff snipped]

+ file=/home/cvogler/src/work/defmod/src/.libs/glftrack
+ args= "/home/cvogler/src/work/defmod/src/.libs/glftrack"
+ test -z ''
+ test -n LD_LIBRARY_PATH
+ eval 'export LD_LIBRARY_PATH'
++ export LD_LIBRARY_PATH
+ test '' = set
+ test set = set
+ LANG=en
+ export LANG
+ exec_cmd="$cmd"$args
+ test -z '"$cmd"$args'
+ test -n '"$cmd"$args'
+ eval exec '"$cmd"$args'
++ exec ldd '"/home/cvogler/src/work/defmod/src/.libs/glftrack"'
ldd: "/home/cvogler/src/work/defmod/src/.libs/glftrack": No such file or 
directory

Something is going wrong with the quoting of $args here. The following
patch fixes the problem for me. I didn't test if it breaks anything
else, though.

Regards
- Christian

--- snip --

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.200.2.68
diff -u -u -5 -r1.200.2.68 ltmain.in
--- ltmain.in   2001/05/20 18:09:55     1.200.2.68
+++ ltmain.in   2001/06/06 06:46:23
@@ -5051,11 +5051,11 @@
       if test "${save_LANG+set}" = set; then
        LANG="$save_LANG"; export LANG
       fi
 
       # Now prepare to actually exec the command.
-      exec_cmd='"$cmd"$args'
+      exec_cmd="\$cmd $args"
     else
       # Display what would be done.
       if test -n "$shlibpath_var"; then
        eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
        $echo "export $shlibpath_var"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]