From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44246 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvYZW-0002PW-OX for qemu-devel@nongnu.org; Tue, 14 Sep 2010 12:41:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvYZL-000539-F9 for qemu-devel@nongnu.org; Tue, 14 Sep 2010 12:41:20 -0400 Received: from adelie.canonical.com ([91.189.90.139]:41994) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvYZL-00052u-6z for qemu-devel@nongnu.org; Tue, 14 Sep 2010 12:41:19 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1OvYZI-0006o2-7R for ; Tue, 14 Sep 2010 17:41:16 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 791DA2E80D0 for ; Tue, 14 Sep 2010 16:41:15 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 14 Sep 2010 16:34:29 -0000 From: blueswirl <636315@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100912112636.2648.27149.malonedeb@potassium.ubuntu.com> <1C12421B-DC91-471B-A285-7501CA61CE3E@web.de> <577C53A8-9AA7-4D71-98EF-A75F93A4F74B@web.de> <92ED4C63-1D88-4FAA-959A-747AA5BF4E15@web.de> Message-Id: Subject: Re: [Qemu-devel] [Bug 636315] [NEW] configure and build errors on Solaris 10 due to /bin/sh usage Errors-To: bounces@canonical.com Reply-To: Bug 636315 <636315@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sun, Sep 12, 2010 at 10:02 PM, Andreas F=C3=A4rber wrote: > Am 12.09.2010 um 23:05 schrieb Blue Swirl: > >> On Sun, Sep 12, 2010 at 5:58 PM, Andreas F=C3=A4rber >> wrote: >>> >>> Am 12.09.2010 um 19:47 schrieb Blue Swirl: >>>> >>>> =C2=A0 =C2=A0 =C2=A0 nfields=3D$((nfields + 1)) >>> >>> ./tracetool: syntax error at line 53: `nfields=3D$' unexpected >> >> That looks like fully standards compliant, so Solaris' /bin/sh is not. >> Can you try what happens with /usr/xpg4/bin/sh? > > Works fine! Must've done something wrong when testing that earlier today. > > configure, create_config and tracetool with your fix are silent when > /usr/xpg4/bin is in the $PATH. > If you commit it, we can close this ticket. Thanks for your help, Blue. Does /usr/xpg4/bin/sh work without the patch? -- = configure and build errors on Solaris 10 due to /bin/sh usage https://bugs.launchpad.net/bugs/636315 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: Running `LANG=3DC LC_ALL=3DC ./configure --prefix=3D... --install=3D/usr/uc= b/install` on Solaris 10 amd64 results in the following errors: ./configure: bad substitution ./configure: !: not found ./configure: curl-config: not found ./configure: curl-config: not found Error: invalid trace backend Please choose a supported trace backend. Unfortunately it doesn't print the line numbers of the errors. It must be s= omewhere after the check for `install`. The first few can be resolved by running `bash ./configure ...` instead. = The "check if trace backend exists" hardcodes `sh "$source_path/tracetool" = ...` in configure. Replacing sh with bash makes it work. `gmake` complains "Makefile:331: no file name for -include", which is a fil= ter for *.d files. `create_config` gets the 'bad substitution' error as well. Replacing sh wit= h bash in rules.mak works. etc. To sum it up, a) there are shell script incompatibilities with Solaris 10's /bin/sh shell= , and b) hardcoding 'sh' in configure or Makefiles seems like a bad idea. QEMU Git 73d7434279e3905164afd02360eebe4b43c7fa (ESP: fix ESP DMA access...) $ uname -a SunOS sonnengoettin 5.10 Generic_142901-03 i86pc i386 i86pc # No banner output for /bin/sh $ bash --version GNU bash, version 3.00.16(1)-release (i386-pc-solaris2.10) Copyright (C) 2004 Free Software Foundation, Inc.