compile error mol-0.9.70
Andreas Schwab
mol-general@lists.maconlinux.org
Fri, 26 Mar 2004 23:26:20 +0100
Samuel Rydh <samuel@ibrium.se> writes:
> On Wed, Mar 24, 2004 at 12:14:39PM -0500, FW Owen wrote:
>> I just installed XFree86-4.4.0 and kde-3.2.1 from source so
>> I know that I have a good working setup. I'm pretty sure
>> this problem is in mol.
>>
>> [root@green mol-0.9.70]# make
>> + Entering lxdialog
>> + Entering kconfig
>> /bin/sh: -c: line 1: syntax error near unexpected token `;'
>> /bin/sh: -c: line 1: `for x in ; do rm
>> -rf .objs-ppc/.artmp ; mkdir .objs-ppc/.artmp ; ln
>> $x .objs-ppc/.artmp/lib.a ; cd .objs-ppc/.artmp ; ar x
>> lib.a || exit $? ; cd ../../ ; ar q .objs-ppc/libkconf.a_
>> `find .objs-ppc/.artmp -name *.o -o -name .dummy` || exit
>> $? ; done ; true'
>> make[2]: *** [.objs-ppc/libkconf.a] Error 2
>> make[1]: *** [sub-kconfig-all] Error 2
>> make: *** [bootstrap] Error 1
>
> I'm not sure why this generates an error on your setup; it really
> shouldn't.
Some versions of bash makes omitting the word list after `in' a syntax
error (IIRC the previous POSIX standard didn't allow this syntax). To
avoid the error, you should use something like this:
list='$(...)'; for x in $$list; do ...
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."