You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried compiling this version directly on NetBSD, and the compiler complains about rexec():
cc -g -Wall -c -o tapeio.o tapeio.c
tapeio.c: In function 'opentape':
tapeio.c:297:28: warning: implicit declaration of function 'rexec'; did you mean 'exect'? [-Wimplicit-function-declaration]
if ((mtape->tapefd = rexec (&p, htons (512), user, NULL, "/etc/rmt",
^~~~~
exect
The way this is "handled" for some operating systems (simply omitting this line) isn't really useful and won't work because mtape->tapefd is left uninitialized but is used already a few lines later. Nasal demons will ensue.
Further complains are
read20.c:558:16: warning: implicit declaration of function 're_exec'; did you mean 'regexec'? [-Wimplicit-function-declaration]
if ((match = re_exec(topsname)) == -1)
^~~~~~~
regexec
cc -g read20.o tapeio.o -o read20
ld: read20.o: in function `expmatch':
/mnt/vol1/rhialto/cvs/other/tapeutils/read20.c:558: undefined reference to `re_exec'
Defining the replacement re_exec() etc functions near the top of read20.c also for NetBSD would be good; better than needing -lcompat for that.
Same for rexec(3) which has been replaced by rcmd(3).
@Rhialto reported in PDP-10/its#2055 (comment):
The text was updated successfully, but these errors were encountered: