From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58702 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OukqV-0003fr-Jl for qemu-devel@nongnu.org; Sun, 12 Sep 2010 07:35:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OukqU-0001fU-6k for qemu-devel@nongnu.org; Sun, 12 Sep 2010 07:35:43 -0400 Received: from adelie.canonical.com ([91.189.90.139]:52055) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OukqT-0001fD-S1 for qemu-devel@nongnu.org; Sun, 12 Sep 2010 07:35:42 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1OukqS-0006W1-Il for ; Sun, 12 Sep 2010 12:35:40 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 8CB602E80C4 for ; Sun, 12 Sep 2010 11:35:40 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 12 Sep 2010 11:26:36 -0000 From: =?utf-8?q?Andreas_F=C3=A4rber?= <636315@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100912112636.2648.27149.malonedeb@potassium.ubuntu.com> Message-Id: <20100912112636.2648.27149.malonedeb@potassium.ubuntu.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 636315] [NEW] configure and build errors on Solaris 10 due to /bin/sh usage 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 Public bug reported: Running `LANG=3DC LC_ALL=3DC ./configure --prefix=3D... --install=3D/usr/ucb/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. ** Affects: qemu Importance: Undecided Status: New ** Tags: solaris -- = 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.