This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: configure-script failure

On Mon, 30 Aug 2004, Peter Ekberg wrote:

> > > > "configure -v"?  "bash -x configure"?  Come on, man, do some
> > > > *debugging*!
> > > > 	Igor
> > >
> > > Attached is the output of a bash -x run of my testcase, available here:
> > >
> >
> > Quoting the relevant part of the attached "bashlog":
> >
> > + ac_package=extra-includes
> > + expr xextra-includes : '.*[^-_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]'
> > + echo 'configure: error: invalid package name: extra-includes'
> > configure: error: invalid package name: extra-includes
> > + exit 1
> >
> > > Looks like a bug to me as "extra-includes" is alphanumeric, which I
> > > believe is what is being tested.
> >
> > Yes, it does seem wrong.  Now the question is whether bash is getting
> > the wrong return code from expr, or whether the && doesn't work
> > properly, or whether there's some other problem here.  Can you
> > reproduce this under strace?  I don't suggest that you send the raw
> > strace output to the list, but examining it might be helpful in
> > tracking this down.
> Not the whole strace output, but a snippet around the actual problem.
> I don't know if it is useful. It's not useful to me...

Well, turns out you snipped out the relevant piece of the strace (see the
end of your snippet, it just starts dealing with the expr invocation).  I
guess that was because you looked for the actual configure output, and the
different buffering of stdout/stderr confused you.

> I have the whole output (~12MB) readily available on request.

Just the next, say, 100 lines after the snippet you posted should be
enough.  Feel free to send them to me privately, so as not to spam the
list, unless CGF and Corinna request to see them as well.

> I used this command to generate the log:
> "strace bash ../../ggi3/ggi-core/libgii/configure --prefix=/usr --with-extra-includes=/cygdrive/c/dx9csdk/include &> bashstrace"

Umm, FWIW, it would have been probably better to use

"strace -O bashstrace bash ../../ggi3/ggi-core/libgii/configure --prefix=/usr --with-extra-includes=/cygdrive/c/dx9csdk/include"

but you don't have to re-run the whole thing now.  Just please send me
this snippet plus the next 100 or so lines.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]