On Thu, Feb 24, 2000 at 10:46:47AM +0100, Stephan Kulow wrote:
> Thomas Tanner wrote:
> >
> > On 11-Feb-2000 Stephan Kulow wrote:
> > > mkdir .libs
> > > mkdir .libs
> > > mkdir: Failed to make directory ".libs"; File exists
> > > ../libtool: test: argument expected
> > > make[2]: *** [ksconfig.lo] Error 1
> > > make[2]: *** Waiting for unfinished jobs....
> > > As it seems, the libtool runs start a little race to create the .libs
> > > directory and
> > > one failed ;(
> >
> > Strange. There should be no problem with creating .libs
> > at the same time. How can the following code in libtool fail?
> >
> > if test -d "$dir"; then
> > $show "$rm $libobj"
> > $run $rm $libobj
> > else
> > $show "$mkdir $dir"
> > $run $mkdir $dir
> > status=$?
> > if test $status -ne 0 && test ! -d $dir; then
> > exit $status
> > fi
> > fi
> >
> > I suppose there's a bug in your shell that doesn't
> > set status correctly. Could you please add
> > "echo $status" after "status=$?" and try it again?
>
> Well, I think I found the bug. The multi-language branch
> creates the objdir and the code looks like this:
>
> if test ! -d $objdir; then
> $show "$mkdir $objdir"
> $run $mkdir $objdir
> status=$?
> if test $status -ne 0 && test ! -d $dir; then
> exit $status
> fi
> fi
>
> And the $dir is quite not existant :)
>
> Thanks for pointing me at the right place.
Hmm, I guess I missed that one. Sorry. :-)
I'll check in a fix later today.
Thanks!
-Ossama
--
Ossama Othman <[EMAIL PROTECTED]>
Distributed Object Computing Laboratory, Univ. of California at Irvine
1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8