|
From: | Andrew Cagney |
Subject: | Re: Problem on Solaris with gdb 5.1.x |
Date: | Thu, 07 Mar 2002 12:46:03 -0500 |
User-agent: | Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.8) Gecko/20020210 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |