[gnu.bash.bug] Bug in bash-1.03 build on SunOS-4

anantha%ravi@Sun.COM (Anantha Srirama) (09/07/89)

I found the following problem during the build on a sun3 running sunos4:

	 - File shell.c has a function throw_to_top_level which it uses
	   before its declaration.  It is declared to be of type sighanlder.
	   In SunOS4 it evaluate to 'void' in the file general.h.  Since the
	   function is used before its declaration the C compiler automatically
	   assigns a integer return value to the function and when it sees the
	   declaration of the function to be a void it barfs complaining about
	   redeclaration.

Solution:
	Add this before main() in shell.c

	/*
	 * define the return type of the function throw_to_top_level because
	 * SUNOS4 returns void and the function is used before declaration.
	 */
	sighandler throw_to_top_level ();


		OR

	move the declaration of the function before main() in shell.c

Good luck.

	-Anantha-

*******************************************************************************
Anantha Padmanabha N. Srirama		|	USENET:	...sun!ravi!anantha
Sun Microsystems			|		...sun!anantha@ravi
2550, Garcia Ave.  MS: 16-02		|		...sun!anantha
Mt. View,  CA-94043			|	ARPA:	anantha@sun.com
*******************************************************************************