Red Hat Bugzilla – Bug 42214
syntax errors in db3/configure for rpm-4.0.3-0.26
Last modified: 2007-04-18 12:33:24 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en] (X11; U; SunOS 5.6 sun4u)
Description of problem:
This is actually 3 problems, but they all are on the same line of code.
When running configure on solaris 2.6 it complains about the placement of a
parenthesis and halts. I believe this is due to a $(...) construct on line
12 of db3/configure, this would run under bash but die under the solaris
sh. Would backquotes work equivalently?
On line 11 configure is called and it is passed a variable CFALGS that I'm
guessing is supposed to be CFLAGS
Finally, the compiler used by the configure called on line 11 is not
necessarily the one that is used for the rpm configure. It defaults to cc
if it's available whereas (in my opinion) the compiler used for the rpm
configure should be passed to the db configure
Steps to Reproduce:
As you can see the db3 configure is a bit (ahem) minimalistic at the moment.
Hmmm, no wonder I was having trouble setting CFLAGS ...
Sure back tics work fine.
Will catch the CC as well as the CFALGS in a bit.
Thanks for noticing.
Fixed in rpm-4.0.3-0.29 (or thereabouts).
Created attachment 21565 [details]
changes the db configure to default to different compiler
The CC fix did not work, I am attaching a patch that changes the behavior of the
configure in db/dist (default compiler is cc) to match the rest of rpm (default
compiler is gcc). The patch is against rpm-4.0.3-0.42
The leading space in the sed script around line 12 is causing configure to break
on both my solaris and rh7.1 systems:
`echo $* | sed -e "s% --cache-file=.*$% --enable-shared --enable-static ...
getting rid of it seems to work fine
that should be the space between "s% and --cache
This problem appears to be resolved. Please reopen if I'm wrong.