Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Problem with readline's configure script?
@ 2003-12-24 23:03 Ron McCall
  2003-12-24 23:34 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Ron McCall @ 2003-12-24 23:03 UTC (permalink / raw)
  To: GDB Mailing List

Hi,

I was trying to build GDB 6.0 on Solaris 9 and ran into some errors
while configuring in gdb.  For example:

./configure: $gcc: not found

I tracked the problem down to readline's configure script.  After
configuring in mmalloc, lines in config.cache look like this:

ac_cv_prog_CC=${ac_cv_prog_CC='gcc'}
ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'}

After configuring in readline, lines in config.cache look like this:

ac_cv_prog_CC=${ac_cv_prog_CC=gcc}
ac_cv_prog_CPP=${ac_cv_prog_CPP=$'gcc -E'}

Then, after configuring in sim, lines in config.cache look like this:

ac_cv_prog_CC=${ac_cv_prog_CC='gcc'}
ac_cv_prog_CPP=${ac_cv_prog_CPP='$gcc -E'}

Several other lines besides CPP are affected in this way at this point.
It seems that readline's different quoting scheme confuses the other
configure scripts.

I dumped the environment in readline's configure script immediately
prior to it updating config.cache and found that:

CPP=$'gcc -E'

I did the same thing in mmalloc's configure script and found that:

CPP=gcc -E

So, it seems that the new quoting scheme switch happens earlier in
readline's configure script than where it updates config.cache.  I
started trying to trace the processing of config.cache after it is read
in but got lost pretty quickly.  Does anyone else happen to know where
the problem might be and how to fix it?  In case it matters, I used the
following top-level configure options:

./configure --disable-nls --with-gnu-ld

Please let me know if you need any more information.

Thanks!

Ron McCall


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with readline's configure script?
  2003-12-24 23:03 Problem with readline's configure script? Ron McCall
@ 2003-12-24 23:34 ` Daniel Jacobowitz
  2003-12-25  2:13   ` Ron McCall
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2003-12-24 23:34 UTC (permalink / raw)
  To: GDB Mailing List

On Wed, Dec 24, 2003 at 06:03:50PM -0500, Ron McCall wrote:
> Hi,
> 
> I was trying to build GDB 6.0 on Solaris 9 and ran into some errors
> while configuring in gdb.  For example:

I don't remember much about this problem, but you may want to try
running the configure scripts with a different shell - bash, for
instance, or the less-crippled shell that Solaris ships with (don't
remember where they keep it).

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with readline's configure script?
  2003-12-24 23:34 ` Daniel Jacobowitz
@ 2003-12-25  2:13   ` Ron McCall
  0 siblings, 0 replies; 3+ messages in thread
From: Ron McCall @ 2003-12-25  2:13 UTC (permalink / raw)
  To: GDB Mailing List

Daniel,

I re-ran configure and make with CONFIG_SHELL set to /bin/bash and that
did the trick!  Thanks for the help!

Ron McCall

On Wed, Dec 24, 2003 at 06:34:31PM -0500, Daniel Jacobowitz wrote:
> I don't remember much about this problem, but you may want to try
> running the configure scripts with a different shell - bash, for
> instance, or the less-crippled shell that Solaris ships with (don't
> remember where they keep it).


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-12-25  2:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-24 23:03 Problem with readline's configure script? Ron McCall
2003-12-24 23:34 ` Daniel Jacobowitz
2003-12-25  2:13   ` Ron McCall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox