🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #827

tar-1.11 problems compiling on NeXT2.1

#827
From: Ken-ichiro Aoki
Date: Fri, 11 Sep 1992 16:11
88 lines
5492 bytes
tar1.11 does not compile under NeXT 2.1 (I included the machine info
at the end.) I am using GNU make. The output of the make follows.
(I added -Wall flag) I use GNU tar 1.10, and I recall that 
I had no problems compiling that version. I used the 
./configure provided with tar-1.11. 
I tried fiddling around with the CFLAGS a bit, but to
no avail. cc (which is based on a previous version of gcc) 
chokes on create.c.

It compiled fine on the sparc IPX running sunOS4.1.2.

Before I leave, I just mention that I have compiled+installed a lot
of GNU stuff on the NeXT's (and sparcs as a user)
here and most of the stuff have
no problems and the routines  are of very high quality.
I try to use GNU versions when I can. Thank you for your
time and great work.
                      ___Kenichiro Aoki.
-------------------------------------------------------------------
cc -O -c -g -Wall  -DSYSDIR=1 -DHAVE_SYS_MTIO_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRSTR=1 -DHAVE_VALLOC=1 -DHAVE_MKDIR=1 -DHAVE_MKNOD=1 -DHAVE_RENAME=1 -DHAVE_FTRUNCATE=1 -DHAVE_FTIME=1 -DHAVE_VPRINTF=1 -DDEF_AR_FILE=\"/dev/rst0\" -DDEFBLOCKING=20 -I. -I. testpad.c
testpad.c: In function main:
testpad.c:53: warning: implicit declaration of function `exit'
cc -O -o testpad testpad.o
./testpad
cc -O -c -g -Wall  -DSYSDIR=1 -DHAVE_SYS_MTIO_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRSTR=1 -DHAVE_VALLOC=1 -DHAVE_MKDIR=1 -DHAVE_MKNOD=1 -DHAVE_RENAME=1 -DHAVE_FTRUNCATE=1 -DHAVE_FTIME=1 -DHAVE_VPRINTF=1 -DDEF_AR_FILE=\"/dev/rst0\" -DDEFBLOCKING=20 -I. -I. tar.c
port.h:101: warning: index redefined
port.h:102: warning: rindex redefined
port.h:103: warning: bcopy redefined
port.h:104: warning: bzero redefined
port.h:105: warning: bcmp redefined
In file included from port.h:111, from tar.c:38:
/usr/include/stdlib.h:43: warning: built-in function `__builtin_alloca' redeclared
tar.c: In function main:
tar.c:220: warning: implicit declaration of function `init_volume_number'
tar.c:287: warning: implicit declaration of function `closeout_volume_number'
tar.c: In function name_next:
tar.c:851: warning: implicit declaration of function `chdir'
tar.c: In function addname:
tar.c:961: warning: `i' may be used uninitialized in this function
cc -O -c -g -Wall  -DSYSDIR=1 -DHAVE_SYS_MTIO_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRSTR=1 -DHAVE_VALLOC=1 -DHAVE_MKDIR=1 -DHAVE_MKNOD=1 -DHAVE_RENAME=1 -DHAVE_FTRUNCATE=1 -DHAVE_FTIME=1 -DHAVE_VPRINTF=1 -DDEF_AR_FILE=\"/dev/rst0\" -DDEFBLOCKING=20 -I. -I. create.c
port.h:101: warning: index redefined
port.h:102: warning: rindex redefined
port.h:103: warning: bcopy redefined
port.h:104: warning: bzero redefined
port.h:105: warning: bcmp redefined
In file included from port.h:111, from create.c:45:
/usr/include/stdlib.h:43: warning: built-in function `__builtin_alloca' redeclared
create.c: In function dump_file:
create.c:312: warning: implicit declaration of function `write_long'
create.c:332: warning: implicit declaration of function `unlink'
create.c:464: warning: implicit declaration of function `open'
create.c:475: warning: implicit declaration of function `close'
create.c:549: warning: implicit declaration of function `read'
create.c:577: warning: implicit declaration of function `utime'
create.c:607: warning: implicit declaration of function `readlink'
create.c:638: parse error before `*'
create.c:751: `dirp' undeclared (first use this function)
create.c:751: (Each undeclared identifier is reported only once
create.c:751: for each function it appears in.)
create.c:751: warning: implicit declaration of function `opendir'
create.c:767: warning: implicit declaration of function `readdir'
create.c:767: warning: assignment of pointer from integer lacks a cast
create.c:769: invalid use of undefined type `struct direct'
create.c:772: warning: implicit declaration of function `DP_NAMELEN'
create.c:780: invalid use of undefined type `struct direct'
create.c:786: warning: implicit declaration of function `closedir'
create.c:638: warning: unused variable `DIR'
create.c:200: warning: `header' may be used uninitialized in this function
create.c: In function write_long:
create.c:1341: warning: return-type defaults to `int'
create.c:1371: warning: control reaches end of non-void function
make: *** [create.o] Error 1
Command had non-zero exit status 1
8.78user 2.2system 0:14.18elapsed 76%CPU (0text+0data 0max)k
80inputs+94outputs (0major+0minor)pagefaults 0swaps
------------------------------------------------------------------------


Mach kernel version:
	 NeXT Mach 2.1: Thu Mar  7 19:13:47 PST 1991; /ph1_sources/projects/mk-108.14/RELEASE

Kernel configured for a single processor only.
1 processor is physically available.
Processor type: MC680x0 (68040)
Processor active: 0
Primary memory available: 20.00 megabytes.
Default processor set: 43 tasks, 65 threads, 1 processors
Load average: 0.00, Mach factor: 0.99
Technical Details
Message-ID: <9209111611.AA00643@_madonna.physics.ucla.edu_>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!sdd.hp.com!wupost!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!madonna.physics.ucla.edu!aoki

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!sdd.hp.com!wupost!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!madonna.physics.ucla.edu!aoki
From: aoki@madonna.physics.ucla.edu (Ken-ichiro Aoki)
Newsgroups: gnu.utils.bug
Subject: tar-1.11 problems compiling on NeXT2.1
Message-ID: <9209111611.AA00643@_madonna.physics.ucla.edu_>
Date: 11 Sep 92 16:11:00 GMT
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: Gnus Not Usenet
Lines: 88
Approved: bug-gnu-utils@prep.ai.mit.edu