Article View: gnu.gdb.bug
Article #2599Re: Problem on Solaris with gdb 5.1.x
From: Andrew Cagney
Date: Thu, 07 Mar 2002 17:46
Date: Thu, 07 Mar 2002 17:46
22 lines
2000 bytes
2000 bytes
> When I run configure, it goes into an infinite loop. I traced the problem > to the following statement in 'configure.in', line 1213 in version 5.1.1: > > if [ "`/usr/bin/which $CCBASE`" = "/usr/ucb/cc" ]; then > > This line is executed only for Solaris. The problem is that on Solaris, > /usr/bin/which is a script that reads the user's .cshrc to get the aliases > and the path. However, in my personal .cshrc file I have a few 'which' > commands, so the configure scripts loops forever, creating more and more > 'which' processes, until the system runs out of processes. I'm wondering why your .cshrc, on its own, doesn't go into infinite recursion. > The workaround for now is to comment out all the 'which' statements before > the configure, restore them afterwards. > > Anyone has a better idea? Not really. Set/unset an environment variable in your .cshrc so you can detect the recusion? Andrew
Technical Details
Message-ID:
<3C87A75B.2090001@cygnus.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!newsfeed.mathworks.com!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdbReferences:
<F39E5E57288ED311914C00508B5593D70367026D@es01-tlv.bmc.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,5b4bad0697792d38 X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 2002-03-07 09:46:07 PST x-uunet-gateway: mr1.ash.ops.us.uu.net from bug-gdb to gnu.gdb.bug; Thu, 7 Mar 2002 17:46:06 GMT Message-ID: <3C87A75B.2090001@cygnus.com> Date: Thu, 07 Mar 2002 12:46:03 -0500 From: ac131313@cygnus.com (Andrew Cagney) User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.8) Gecko/20020210 X-Accept-Language: en-us MIME-Version: 1.0 Subject: Re: Problem on Solaris with gdb 5.1.x References: <F39E5E57288ED311914C00508B5593D70367026D@es01-tlv.bmc.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Approved: bug-gdb-request@mail.gnu.org Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!newsfeed.mathworks.com!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdb Sender: bug-gdb-request@mail.gnu.org Lines: 23