🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Katz, Amir Tue, 29 Jan 2002 08:49
Problem on Solaris with gdb 5.1.x
#2737
Author: Katz, Amir
Date: Tue, 29 Jan 2002 08:49
26 lines
1857 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.

The workaround for now is to comment out all the 'which' statements before
the configure, restore them afterwards.

Anyone has a better idea?

Thanks

Amir Katz
Product Development Manager - USA-API
INCONTROL for Security Management
BMC Software Inc.
Phone:	+972-3-645-1145
Fax:		+972-3-766-4617
Mobile:	+972-54-429-662
E-mail:	Amir_Katz@BMC.com
Re: Problem on Solaris with gdb 5.1.x
#2599
Author: Andrew Cagney
Date: Thu, 07 Mar 2002 17:46
22 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads