🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #547

Bug in bash-1.03 build on SunOS-4

#547
From: Anantha Srirama
Date: Wed, 06 Sep 1989 21:23
34 lines
1591 bytes
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
*******************************************************************************
Technical Details
Message-ID: <124238@sun.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!newstop!sun!ravi!anantha

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!newstop!sun!ravi!anantha
From: anantha%ravi@Sun.COM (Anantha Srirama)
Newsgroups: gnu.bash.bug
Subject: Bug in bash-1.03 build on SunOS-4
Keywords: shell.c bug build
Message-ID: <124238@sun.Eng.Sun.COM>
Date: 6 Sep 89 21:23:09 GMT
Sender: news@sun.Eng.Sun.COM
Distribution: usa
Lines: 34