From: 386sx <386sx AT my-deja DOT com> Newsgroups: comp.os.msdos.djgpp Subject: Re: Building gdb 5.0 Date: 30 Jun 2001 09:36:07 GMT Organization: not a chance Lines: 131 Message-ID: References: <8582-Fri29Jun2001133846+0300-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: asoh3pp27.alltel.net (166.102.93.92) X-Trace: fu-berlin.de 993893767 15052080 166.102.93.92 (16 [33304]) User-Agent: Xnews/4.06.22 X-Hobbies: X-Pickup-Sticks, X-Polo-Wrestling To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" wrote: >> From: 386sx <386sx AT my-deja DOT com> >> Newsgroups: comp.os.msdos.djgpp >> Date: 29 Jun 2001 08:29:33 GMT >> >> I haven't tried to compile GDB in about a year but as I said I ran >> into problems trying to compile other programs on Linux due to CDPATH >> not having "." as the first entry, and indeed I found that when I >> explicitly do: >> >> $ make SHELL=/bin/bash >> >> the problem disappears. > > I'm confused again: does the problem pop up during the time the > configure script runs, or when you say "make" (or both)? > > I thought it was during the configure script run. Both. ---------------------------------------- shtest --------------------------------- ---------------------------------------- #!/bin/sh CDPATH=$HOME testdir='testing' mkdir $testdir if cd $testdir; then pwd cd $OLDPWD echo "** success **" else echo "** failure **" fi rmdir $testdir ---------------------------------------- ---------------------------------------- $ ./shtest ./shtest: cd: testing: No such file or directory ** failure ** ---------------------------------------- bashtest ------------------------------- ---------------------------------------- #!/bin/bash CDPATH=$HOME testdir='testing' mkdir $testdir if cd $testdir; then pwd cd $OLDPWD echo "** success **" else echo "** failure **" fi rmdir $testdir ---------------------------------------- ---------------------------------------- $ ./bashtest /home/rick/tmp/testing ** success ** ---------------------------------------- makefile.sh ---------------------------- ---------------------------------------- SHELL = /bin/sh export CDPATH=$(HOME) testdir = testing all: @mkdir $(testdir) @if cd $(testdir); then \ pwd; \ cd $(OLDPWD); \ echo "** success **"; \ else \ echo "** failure **"; \ fi @rmdir $(testdir) ---------------------------------------- ---------------------------------------- $ make -f makefile.sh /bin/sh: cd: testing: No such file or directory ** failure ** ---------------------------------------- makefile.bash -------------------------- ---------------------------------------- SHELL = /bin/bash export CDPATH=$(HOME) testdir = testing all: @mkdir $(testdir) @if cd $(testdir); then \ pwd; \ cd $(OLDPWD); \ echo "** success **"; \ else \ echo "** failure **"; \ fi @rmdir $(testdir) ---------------------------------------- ---------------------------------------- $ make -f makefile.bash /home/rick/tmp/testing ** success ** -- 386 clc FAQ: http://www.eskimo.com/~scs/C-faq/top.html