Skip to contentSkip to conversation

Error in building Qemu-1.3.0 on Solaris 10

Qemu-devel Dipanjan Das 3 participants 8 messages Dec 16, 2012 – Jun 13, 2017

lore
Share & tools
lore
#0 lore raw

Public bug reported:

While trying to build Qemu on Oracle Solaris 10 (SPARC processor), I encountered the following error in the configure step:

./configure --prefix=/usr/local/ --install=/usr/ucb/install ./configure: bad substitution
./configure: !: not found
./configure: !: not found
./configure: !: not found
./configure: !: not found
./configure: !: not found
./configure: curl-config: not found
./configure: curl-config: not found

As the following bug report says:
https://bugs.launchpad.net/qemu/+bug/636315, "sh" is hard-coded in the script. Can't the script be modified to accept a $SHELL argument to make use of bash or other shell during configure and make step?

** Affects: qemu
Importance: Undecided
Status: New

** Tags: 10 solaris

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1090837

Title:
  Error in building Qemu-1.3.0 on Solaris 10

Status in QEMU:
  New

Bug description:
  While trying to build Qemu on Oracle Solaris 10 (SPARC processor), I
  encountered the following error in the configure step:

  ./configure --prefix=/usr/local/ --install=/usr/ucb/install
  ./configure: bad substitution
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: curl-config: not found
  ./configure: curl-config: not found

  As the following bug report says:
  https://bugs.launchpad.net/qemu/+bug/636315, "sh" is hard-coded in the
  script. Can't the script be modified to accept a $SHELL argument to
  make use of bash or other shell during configure and make step?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1090837/+subscriptions
#1 lore raw

Are you using /bin/sh (broken) or /usr/xpg4/bin/sh (should work)?

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1090837

Title:
  Error in building Qemu-1.3.0 on Solaris 10

Status in QEMU:
  New

Bug description:
  While trying to build Qemu on Oracle Solaris 10 (SPARC processor), I
  encountered the following error in the configure step:

  ./configure --prefix=/usr/local/ --install=/usr/ucb/install
  ./configure: bad substitution
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: curl-config: not found
  ./configure: curl-config: not found

  As the following bug report says:
  https://bugs.launchpad.net/qemu/+bug/636315, "sh" is hard-coded in the
  script. Can't the script be modified to accept a $SHELL argument to
  make use of bash or other shell during configure and make step?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1090837/+subscriptions
#2 lore raw
In reply to Dipanjan Das

If I invoke /usr/xpg4/bin/sh from bash and then start the build process, will it be OK/ Or do I need to add /usr/xpg4/bin/sh to PATH? Does the patch mentioned in the referred bug need to be applied?

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1090837

Title:
  Error in building Qemu-1.3.0 on Solaris 10

Status in QEMU:
  New

Bug description:
  While trying to build Qemu on Oracle Solaris 10 (SPARC processor), I
  encountered the following error in the configure step:

  ./configure --prefix=/usr/local/ --install=/usr/ucb/install
  ./configure: bad substitution
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: curl-config: not found
  ./configure: curl-config: not found

  As the following bug report says:
  https://bugs.launchpad.net/qemu/+bug/636315, "sh" is hard-coded in the
  script. Can't the script be modified to accept a $SHELL argument to
  make use of bash or other shell during configure and make step?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1090837/+subscriptions
#3 lore raw
In reply to Dipanjan Das

Just using $SHELL inside configure would be insufficient if run via Solaris' sh. Using bash ./configure ... should've worked for v1.2 without patches, didn't test v1.3 on Sol10 yet.

Whether the DTrace support scripts fully work on Solaris 10 is another issue.

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1090837

Title:
  Error in building Qemu-1.3.0 on Solaris 10

Status in QEMU:
  New

Bug description:
  While trying to build Qemu on Oracle Solaris 10 (SPARC processor), I
  encountered the following error in the configure step:

  ./configure --prefix=/usr/local/ --install=/usr/ucb/install
  ./configure: bad substitution
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: curl-config: not found
  ./configure: curl-config: not found

  As the following bug report says:
  https://bugs.launchpad.net/qemu/+bug/636315, "sh" is hard-coded in the
  script. Can't the script be modified to accept a $SHELL argument to
  make use of bash or other shell during configure and make step?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1090837/+subscriptions
#4 lore raw
In reply to Dipanjan Das

Until tomorrow, I can't report back as the Solaris 10 system is in my workplace. What I tried was to trigger ./configure from bash shell which produced the log above and aborted. As the title already says, I tried to build Qemu 1.3.0.

P.S. If I already use bash shell to invoke the script, do I need to bash ./configure ... any more?

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1090837

Title:
  Error in building Qemu-1.3.0 on Solaris 10

Status in QEMU:
  New

Bug description:
  While trying to build Qemu on Oracle Solaris 10 (SPARC processor), I
  encountered the following error in the configure step:

  ./configure --prefix=/usr/local/ --install=/usr/ucb/install
  ./configure: bad substitution
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: curl-config: not found
  ./configure: curl-config: not found

  As the following bug report says:
  https://bugs.launchpad.net/qemu/+bug/636315, "sh" is hard-coded in the
  script. Can't the script be modified to accept a $SHELL argument to
  make use of bash or other shell during configure and make step?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1090837/+subscriptions
#5 lore raw
In reply to Dipanjan Das

Yes, if you execute ./configure ... the shell will execute the shebang line inside the script, which says /bin/sh and happens to be a really ancient version for backwards compatibility on Solaris.

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1090837

Title:
  Error in building Qemu-1.3.0 on Solaris 10

Status in QEMU:
  New

Bug description:
  While trying to build Qemu on Oracle Solaris 10 (SPARC processor), I
  encountered the following error in the configure step:

  ./configure --prefix=/usr/local/ --install=/usr/ucb/install
  ./configure: bad substitution
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: curl-config: not found
  ./configure: curl-config: not found

  As the following bug report says:
  https://bugs.launchpad.net/qemu/+bug/636315, "sh" is hard-coded in the
  script. Can't the script be modified to accept a $SHELL argument to
  make use of bash or other shell during configure and make step?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1090837/+subscriptions
#6 lore raw
In reply to Dipanjan Das

I did the following and it was a success:

1. Added sh to path to override default /usr/bin/sh: PATH=/usr/xpg4/bin/sh:$PATH
2. From bash: sh ./configure

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1090837

Title:
  Error in building Qemu-1.3.0 on Solaris 10

Status in QEMU:
  New

Bug description:
  While trying to build Qemu on Oracle Solaris 10 (SPARC processor), I
  encountered the following error in the configure step:

  ./configure --prefix=/usr/local/ --install=/usr/ucb/install
  ./configure: bad substitution
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: curl-config: not found
  ./configure: curl-config: not found

  As the following bug report says:
  https://bugs.launchpad.net/qemu/+bug/636315, "sh" is hard-coded in the
  script. Can't the script be modified to accept a $SHELL argument to
  make use of bash or other shell during configure and make step?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1090837/+subscriptions
#7 lore raw
In reply to Dipanjan Das

Closing, as there is a work-around according to comment #6

** Changed in: qemu
Status: New => Won't Fix

Signature · 31 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1090837

Title:
  Error in building Qemu-1.3.0 on Solaris 10

Status in QEMU:
  Won't Fix

Bug description:
  While trying to build Qemu on Oracle Solaris 10 (SPARC processor), I
  encountered the following error in the configure step:

  ./configure --prefix=/usr/local/ --install=/usr/ucb/install
  ./configure: bad substitution
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: !: not found
  ./configure: curl-config: not found
  ./configure: curl-config: not found

  As the following bug report says:
  https://bugs.launchpad.net/qemu/+bug/636315, "sh" is hard-coded in the
  script. Can't the script be modified to accept a $SHELL argument to
  make use of bash or other shell during configure and make step?

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1090837/+subscriptions