🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1478

Trouble Compiling Tar 1.04 w/GCC 1.32

#1478
From: Frank Wortner
Date: Tue, 31 Jan 1989 14:16
59 lines
2081 bytes
I tried compiling GNU Tar 1.04 with GCC 1.32 on a Sun 3 with SunOS 4.0
and got the following results:

>cd /tmp_mnt/n/s2u2/frank/src/gtar/
>make -k CC=gcc
>gcc -g -DBSD42  -DDEF_AR_FILE=\"/dev/rmt8\"  -DDEFBLOCKING=20  -sun3 -c  list.c
>list.c: In function pr_mkdir:
>list.c:553: undeclared variable `msg_file' (first use here)
>*** Error code 1
>make: Warning: Target `all' not remade because of errors
>
>Compilation finished at Tue Jan 31 09:04:37

I've enclosed a short patch that fixes the problem.

						Frank
				uunet!s5!frank -or- frank@morgan.com

"Computers are mistake amplifiers."
----------------------------------cut here-------------------------------------
#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
#	fix
# This archive created: Tue Jan 31 09:13:53 1989
export PATH; PATH=/bin:$PATH
echo shar: extracting "'fix'" '(242 characters)'
if test -f 'fix'
then
	echo shar: will not over-write existing file "'fix'"
else
sed 's/^	X//' << \SHAR_EOF > 'fix'
	X*** list.c.old	Tue Jan 31 09:01:57 1989
	X--- list.c	Tue Jan 31 09:02:38 1989
	X***************
	X*** 540,545 ****
	X--- 540,546 ----
	X  	int length;
	X  	int mode;
	X  {
	X+ 	extern FILE *msg_file;
	X  	char modes[11];
	X  	char *name;
	X  	extern long baserec;
SHAR_EOF
if test 242 -ne "`wc -c < 'fix'`"
then
	echo shar: error transmitting "'fix'" '(should have been 242 characters)'
fi
fi # end of overwriting check
#	End of shell archive
exit 0
-- 
						Frank
				uunet!s5!frank -or- frank@morgan.com

"Computers are mistake amplifiers."
Technical Details
Message-ID: <221@hudson.Morgan.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!mstan!frank

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!mstan!frank
From: frank@Morgan.COM (Frank Wortner)
Newsgroups: gnu.utils.bug
Subject: Trouble Compiling Tar 1.04 w/GCC 1.32
Message-ID: <221@hudson.Morgan.COM>
Date: 31 Jan 89 14:16:00 GMT
Reply-To: frank@Morgan.COM (Frank Wortner)
Distribution: gnu
Organization: Morgan Stanley and Co., NY, NY
Lines: 59