frank@Morgan.COM (Frank Wortner) (01/31/89)
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."