🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Anantha Srirama Wed, 06 Sep 1989 21:23
Bug in bash-1.03 build on SunOS-4
#547
Author: 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
*******************************************************************************
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