zsh-workers
 help / color / mirror / code / Atom feed
* Libtool/zsh quoting problem
@ 2006-02-09 23:32 David Gómez
  2006-02-10  8:46 ` DervishD
  2006-02-11  9:36 ` [SOLVED] Libtool/zsh quoting problem: a zsh... bug? DervishD
  0 siblings, 2 replies; 39+ messages in thread
From: David Gómez @ 2006-02-09 23:32 UTC (permalink / raw)
  To: Zsh-workers

Hi all ;),

>From some time till now i was having problems compiling certaing packages, in
particular those ones that used macros in the command with spaces in it. I
thought it was a libtool problem, but the culprit seems zsh ;).

I was missing the origin of the problem because in another systems with zsh
everything compiled correctly. The difference was that in those machines /bin/sh
pointed to a bash shell (no problem) and in my system /bin/sh points to zsh.

All libtool scripts start with /bin/sh, so everything will work ok if the 
sh symlink is a bash shell.

A example, with the littlecms source (http://www.littlecms.com):

[huma@fargo] [~/lcms-1.15] % make
Making all in src
make[1]: Entering directory `/home/huma/lcms-1.15/src'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"lcms\"
-DPACKAGE_TARNAME=\"lcms\" -DPACKAGE_VERSION=\"1.15\" -DPACKAGE_STRING=\"lcms\
1.15\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DSIZEOF_INT=4 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_LONG=4
-DSIZEOF_UNSIGNED_LONG=4 -DSIZEOF_LONG_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8
-DHasJPEG=1 -DHasZLIB=1 -DHasTIFF=1 -DHAVE_TIFFCONF_H=1  -I. -I. -I../include
-I../include    -g -O2 -MT cmscnvrt.lo -MD -MP -MF ".deps/cmscnvrt.Tpo" -c -o
cmscnvrt.lo cmscnvrt.c; \ then mv -f ".deps/cmscnvrt.Tpo" ".deps/cmscnvrt.Plo";
else rm -f ".deps/cmscnvrt.Tpo"; exit 1; fi
 gcc -DPACKAGE_NAME=\"lcms\" -DPACKAGE_TARNAME=\"lcms\"
-DPACKAGE_VERSION=\"1.15\" -DPACKAGE_STRING=\"lcms 1.15\"
-DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DSIZEOF_INT=4 -DSIZEOF_UNSIGNED_INT=4 -DSIZEOF_LONG=4
-DSIZEOF_UNSIGNED_LONG=4 -DSIZEOF_LONG_LONG=8 -DSIZEOF_UNSIGNED_LONG_LONG=8
-DHasJPEG=1 -DHasZLIB=1 -DHasTIFF=1 -DHAVE_TIFFCONF_H=1 -I. -I. -I../include
-I../include -g -O2 -MT cmscnvrt.lo -MD -MP -MF .deps/cmscnvrt.Tpo -c
cmscnvrt.c  -fPIC -DPIC -o .libs/cmscnvrt.o gcc: 1.15": No such file or
directory
make[1]: *** [cmscnvrt.lo] Error 1
make[1]: Leaving directory `/home/huma/lcms-1.15/src'
make: *** [all-recursive] Error 1

Where -DPACKAGE_STRING=\"lcms 1.15\" in the gcc command should be quoted
to avoid the error.

I noticed this problem too compiling other packages: Xorg modular and libIDL.

Is there any option in zsh to avoid this problem?

thanks,

-- 
David Gómez                                      Jabber ID: davidge@jabber.org


^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2006-02-15 11:36 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-09 23:32 Libtool/zsh quoting problem David Gómez
2006-02-10  8:46 ` DervishD
2006-02-10  9:48   ` David Gómez
2006-02-10 11:34     ` DervishD
2006-02-10 12:56       ` David Gómez
2006-02-10 14:25         ` DervishD
2006-02-10 18:27           ` David Gómez
2006-02-10 19:31             ` DervishD
2006-02-11  9:36 ` [SOLVED] Libtool/zsh quoting problem: a zsh... bug? DervishD
2006-02-11 10:21   ` Andrey Borzenkov
2006-02-11 11:06     ` DervishD
2006-02-11 11:33       ` David Gómez
2006-02-11 12:06         ` DervishD
2006-02-11 12:28       ` Andrey Borzenkov
2006-02-11 18:07         ` DervishD
2006-02-11 12:21     ` DervishD
2006-02-11 18:14     ` Wayne Davison
2006-02-11 18:22       ` DervishD
2006-02-11 18:58         ` Wayne Davison
2006-02-11 19:42       ` Bart Schaefer
2006-02-12  4:50         ` Wayne Davison
2006-02-12 20:28           ` Peter Stephenson
2006-02-13 10:56             ` Peter Stephenson
2006-02-12  7:46       ` Andrey Borzenkov
2006-02-12  7:54         ` Andrey Borzenkov
2006-02-12 20:26       ` Peter Stephenson
2006-02-13 10:53         ` PATCH: fixing ${1+"$@"} when word-splitting Wayne Davison
2006-02-13 11:34           ` Peter Stephenson
2006-02-13 17:43             ` Wayne Davison
2006-02-13 18:08               ` Peter Stephenson
2006-02-13 19:00                 ` Wayne Davison
2006-02-13 19:33                   ` Wayne Davison
2006-02-13 19:33                   ` Peter Stephenson
2006-02-13 20:11                     ` Wayne Davison
2006-02-13 19:48               ` Wayne Davison
2006-02-13 11:40           ` DervishD
2006-02-14  7:14           ` Wayne Davison
2006-02-15 10:31             ` Wayne Davison
2006-02-15 11:35             ` Wayne Davison

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).