Thread View: fj.news.b
6 messages
6 total messages
Started by Hirohiko KIUCHI
Tue, 12 Jan 1993 07:20
Cnews install: redeclaration of umask
Author: Hirohiko KIUCHI
Date: Tue, 12 Jan 1993 07:20
Date: Tue, 12 Jan 1993 07:20
47 lines
2220 bytes
2220 bytes
$@%a%$%F%C%/$NLZFb$G$9!#(J
Cnews-9205-JP $@$N%$%s%9%H!<%k$r$7$F$$$k(J$@$N$G$9$,!"(Jdoit.bin$@$NESCf$G!"(J
+ cd ../libbig
+ make u COPTS=-g DBM=
cc -g -I../include -I../relay -target sun4 -c active.fast.c
"../include/libc.h", line 33: redeclaration of umask
*** Error code 1
make: Fatal error: Command failed for target `active.fast.o'
+ exit 1
$
$@$H$$$&%(%i!<$G;_$^$C$F$7$^$$$^(J$@$9!#D4$Y$F$_$k$H!"(Jactive.fast.c $@$,!"(J
include $@$7$F$$$k!"(J
#include <sys/stat.h>
#include "libc.h"
$@$NN>(J$@J}$G!"(Jumask() $@$r@k8@$7$F$$$^$9!#(J
/usr/include/sys/stat.h:
84 #ifndef KERNEL
85 int chmod(/* char *path, mode_t mode */);
86 int fstat(/* int fd; struct stat *sbuf */);
87 int mkdir(/* char *path; mode_t mode */);
88 int mkfifo(/* char *path; mode_t mode */);
89 int stat(/* char *path; struct stat *sbuf */);
90 mode_t umask(/* mode_t mask */);
91 #endif
92
93 #endif /* !__sys_stat_h */
Cnews-9205-JP/include/libc.h:
33 extern int access(), chown(), fork(), link(), mkdir(), umask(), unlink(), wait();
$@$3$&$7$F$_$k$H!"(Jmkdir()$@$b(J$@#2EY@k8@$5$l$F$$$^$9$,!"(Jumask()$@$K$D$$$F$O!"(J
int $@$H(J mode_t $@$N0c$$$,$"$k$+$i$G$7$g$&$+!#(J
$@$7$+$7!"$I$NMM(J$@$KBP=h$7$?$i$h$$$N$+$o$+$j$^$;$s!#(J
$@4D6-$O!"(JSun SPARC station 2, Sun OS 4.1.2 JLE 1.1.2 $@$G$9!#(J
$@$h$m$7(J$@$/$*4j$$$7$^$9!#(J
--
($@3t(J)$@%a%$%F%C%/!!>pJs%7%9%F%`It%7%9%F%`4IM}2](J $@!?!?!?!?(J
$@LZFb9@I'(J / E-mail: kiuchi@meitec.co.jp $@!?!?!?!?(J
TEL: (052)532-6512 / FAX: (052)532-6518 $@!?!?!?!?(J
Re: Cnews install: redeclaration of umask
Author: Takahiro Kanbe
Date: Tue, 12 Jan 1993 18:13
Date: Tue, 12 Jan 1993 18:13
10 lines
946 bytes
946 bytes
In article <KIUCHI.93Jan12162027@yagi.sys.meitec.co.jp> kiuchi@sys.meitec.co.jp (Hirohiko KIUCHI) writes: $B$7$+$7!"$I$NMM$KBP=h$7$?$i$h$$$N$+$o$+$j(B$B$^$;$s!#(B $B<h$j4:$($:!"(BCnews-9205-JP/include/libc.h$B$+$i6%9g$9$k@k8@$r:o=|$9$l$P(BOK $B$G$9!#(B -- $B?@8M!!N4Gn!J$+$s$Y!!$?$+$R$m!K(B FXIS / Network Group. taka@fxis.fujixerox.co.jp
Solution: "Cnews install: redeclaration of umask" + MORE BUG INFO
Author: Shigeyuki Takagi
Date: Wed, 13 Jan 1993 03:50
Date: Wed, 13 Jan 1993 03:50
138 lines
4697 bytes
4697 bytes
In article <KIUCHI.93Jan12162027@yagi.sys.meitec.co.jp> kiuchi@sys.meitec.co.jp (Hirohiko KIUCHI) writes:
>Cnews-9205-JP $B$N%$%s%9%H!<%k$r$7$F$$$k$N$G$9$,!"(Bdoit.bin$B$NESCf$G!"(B
>cc -g -I../include -I../relay -target sun4 -c active.fast.c
>"../include/libc.h", line 33: redeclaration of umask
>*** Error code 1
>make: Fatal error: Command failed for target `active.fast.o'
>$B$H$$$&%(%i!<$G;_$^$C$F$7$^$$$^$9!#D4$Y$F$_$k$H!"(Bactive.fast.c $B$,!"(B
>include $B$7$F$$$k!"(B
>#include <sys/stat.h>
>#include "libc.h"
>$B$NN>J}$G!"(Bumask() $B$r@k8@$7$F$$$^$9!#(B
$B$H$j$"$($:$=$N@k8@$@$1$r$O$:$;$PNI$$$H$$$&?@8M$5$s$N%U%)%m!<$,$"$j$^$7$?$,!"(B
$B$3$l$O(B PATCHES/known.problems $B$N?7$7$$$b$N$K$O=q$$$F$"$j$^$9!#(B
WIDE $B$J$I$GF|K\8l2=$7$?%Q%C%1!<%8$N(B anonymous ftp $B$,$G$-$k$h$&$K$J$C$?(B
$B8e$GDI2C$5$l$?$b$N$N$h$&$G$9!#(B
$B$*$*$C$T$i$K$O%"%J%&%s%9$5$l$F$$$J$$$i$7$$$N$G$9$,!"(B
uunet $B$N%"!<%+%$%V$J$I$G$O99?7$5$l$F$$$k$=$&$G$9!#(B
$B$3$N?7$7$$%U%!%$%k$r:rG/Kv$K(B WIDE $B$N?92<7/$+$i$b$i$C$?$N$G!"(B
$B$3$3$K$D$1$F$*$-$^$9!#(B
$BA0H>$O(B WIDE $B$J$I$G9qFb$+$i(B ftp $B$7$F$-$?$b$N$HF1$8$G$9$,!"DI2C$,$"$j$^$9!#(B
$B$=$l$+$i!"$b$C$HA{$.$K$J$kLdBj$,$"$C$F!"(B
$B!V(BSUN OS 4.1 $B0J9_$G$O(B faster stdio $B$r;H$C$F$O$$$1$J$$!W(B
$B$H=q$$$F$"$j$^$9!#(B
<< known.problems >>
--- cut ------ cut ------ cut ------ cut ------ cut ------ cut ---
This one-line change to relay/control.c will avoid creating $NEWSARTS/fake:
113c113
< art->a_status |= synccaches();
---
> art->a_status |= actsync();
Failure of the exploder regression test is a known problem (some tars
don't make empty directories). The fix should be as follows:
#! /bin/sh
cd explode/regress
mkdir master/out.going master/out.going/bar master/out.going/baz 2>/dev/null
mkdir master/out.going/foo out/out.going out/out.going/bar 2>/dev/null
mkdir out/out.going/baz out/out.going/foo 2>/dev/null
>>master/out.going/bar/togo
>>master/out.going/baz/togo
>>master/out.going/foo/togo
>>out/out.going/bar/togo
>>out/out.going/baz/togo
>>out/out.going/foo/togo
Empty Expires: headers (such as produced by Pnews) are not just quietly
deleted by inews. The fix is to misc/canonhdr.c:
122c122,123
< STREQN(nhdr, expiresnm, STRLEN(expiresnm))) {
---
> STREQN(nhdr, expiresnm, STRLEN(expiresnm)) &&
> nonnull(nhdr+STRLEN(expiresnm))) {
139a141,149
> }
>
> int
> nonnull(s)
> char *s;
> {
> register char *nwp = skipsp(s);
>
> return *nwp != '\n' && *nwp != '\0';
Sites with the SysV tr need to execute this before building C News:
rm inject/stripinvis
The UCB passwd file GCOS field "&" hack in inject/fullname.c contains a
bug; here's the fix:
50c50
< (void) strcat(newgcos, cap);
---
> (void) strcpy(newgcos + (delim - gcos), cap);
inject/pnews refers to a command named "ersh", which we didn't ship.
Change "ersh" to "rsh" for now.
relay/ctl/alternate is obsolete and interferes with installation; the fix is
rm -rf relay/ctl/alternate
The clever dicks on the POSIX committees gratuitously changed the return
types of a bunch of "standard" functions, in the grand ANSI C tradition
("preserve existing correct code"? just say no). A particularly
annoying one is that umask now returns a mode_t, not an int. If you
can't compile C News because your system has been posixiated, the quick
fix is:
(echo 'g/umask/d'; echo w) | ed h/libc.h
inject/actflag quits early if it encounters a group that is not known
locally. This diff to inject/actflag.c fixes it:
77,79c77
< if (actent == NULL) /* group not known locally? */
< continue; /* keep trying */
<
---
> if (actent != NULL) { /* group known locally? */
113c111
<
---
> }
Don't use our faster stdio on SunOS 4.1 and later releases. stdiock has
been updated to catch this latest incompatibility.
======================================================================
$B0J>e$G$9!#(B
--
$B9bLZ(J $BLP9T(J ($B3t(J)$B%j%/%k!<%H!!%a%G%#%"%G%6%$%s%;%s%?!<(J
takagi@isr.recruit.co.jp
03-3536-7770($BBeI=(J)
Re: Cnews install: redeclaration of umask
Author: Hirohiko KIUCHI
Date: Mon, 18 Jan 1993 06:41
Date: Mon, 18 Jan 1993 06:41
58 lines
3243 bytes
3243 bytes
$@%a%$%F%C%/$NLZFb$G$9!#(J In article <KIUCHI.93Jan12162027@yagi.sys.meitec.co.jp> kiuchi@sys.meitec.co.jp (Hirohiko KIUCHI) writes: >Cnews-9205-JP $@$N%$%s%9%H!<%k$r$7$F$$$k$N$G$9$,!"(Jdoit.bin$@$NESCf$G!"(J >cc -g -I../include -I../relay -target sun4 -c active.fast.c >"../include/libc.h", line 33: redeclaration of umask >*** Error code 1 >make: Fatal error: Command failed for target `active.fast.o' >$@$H$$$&%(%i!<$G;_$^$C$F$7$^$$(J$@$^$9!#D4$Y$F$_$k$H!"(Jactive.fast.c $@$,!"(J >include $@$7$F$$$k!"(J >#include <sys/stat.h> >#include "libc.h" >$@$NN>J}$G!"(Jumask() $@$r@k8@$7$F$$$^$9!#(J $@$H$$$&;d$N<ALd$KBP$7!"(J $@C]K\!w#N#K#KMM$+$i$O%a!<%k$G!"(J $@?@8MN4(J$@GnMM$H9bLZLP9TMM$+$i$O%K%e!<%9$G!"(J $@2sEz$r$$$?$@$-$^$7$?!#(J $@C]K\$5$s$+$i$O!"(J >> $@7k6I!"6/0z$K!"(Jlibc.h$@$N(J$@%*%j%8%J%k$N@_Dj$r%3%a%s%H%"%&%H$7!"(J >> extern mode_t umask() $@$r=q$-9~$s$G%3%s%Q%$%k$7$?$H$3$m$&$^$/$$(J$@$-$^$7$?!#(J $@$H$$$&2sEz$r$$$?$@$-!"(J $@?@8M$5$s$+$i$O!":o=|$@$1$H$$$&2sEz$r$$$?$@$-$^$7$?!#(J $@@h$KC]K\$5$s$+(J$@$i2sEz$r$$$?$@$$$?$N$G!"(Jexterm mode_t umask() $@$r=q$-9~$^$J$$(J $@%1!<%9$O;n$7$F$J$$$N$G$9$,!"$3$NItJ,$O$&(J$@$^$/$$$/$h$&$K$J$j$^$7$?!#(J $@9bLZ$5$s$+$i$O!"(JPATCHES/known.problems $@$N?7$7$$$b$N$rN.$7$F$$$?$@$-!"(J $@!V(JSUN OS 4.1 $@0J9_$G$O(J faster stdio $@$r;H$C$F$O$$$1$J$$!W(J $@$H$N$4;XE&$r$$$?$@$-$^$7$?!#(J $@$3$l$r4^$a$F%3%s%Q(J$@%$%k$7$?$N$G$9$,!"(Jdoit.bin $@$G!"(J chmod +x mkstripinvis ./mkstripinvis >stripinvis ./mkstripinvis: /usr/lib/news/bin/config: not found *** Error code 1 make: Fatal error: Command failed for target `stripinvis' + exit 1 $@$H$$$&%(%i!<$,=P$^$7$?!#(J $@$3$l$K$D$$$F$O!"(J/usr/lib/news/bin/config $@$H$$$&%U%!%$%k$r(J$@!"$"$i$+$8$a(J $@:n$C$F$*$/$3$H$G2sHr$G$-$^$7$?$,!"$3$N%U%!%$%k$O%*!<%J!<$,(J news $@$J$N$G(J doit.bin $@$G$O$D$/(J$@$l$J$$$O$:$G!"(Jdoit.root $@$K$b$3$N%U%!%$%k$K4X$9$k5-=R(J $@$O$J$/!"K\Mh$J$i$I$&$"$k$O$:$N$b$N$+$,$o$+$j$^$;(J$@$s!#(J $@$H$b$+$/!"%3%s%Q%$%k$O$G$-$?$N$G!"$3$l$+$i%F%9%H$7$F$_$^$9!#(J $@$"$j$,$H$&$4$6$$$^$7$?!#(J -- ($@3t(J)$@%a(J$@%$%F%C%/!!>pJs%7%9%F%`It%7%9%F%`4IM}2](J $@!?!?!?!?(J $@LZFb9@I'(J / E-mail: kiuchi@meitec.co.jp $@!?!?!?!?(J TEL: (052)532-6512 / FAX: (052)532-6518 $@!?!?!?!?(J
Re: Cnews install: redeclaration of umask
Author: Shigeyuki Takagi
Date: Tue, 19 Jan 1993 03:39
Date: Tue, 19 Jan 1993 03:39
21 lines
1765 bytes
1765 bytes
In article <KIUCHI.93Jan18154139@yagi.sys.meitec.co.jp> kiuchi@sys.meitec.co.jp (Hirohiko KIUCHI) writes: >$B$3$l$K$D$$$F$O!"(B/usr/lib/news/bin/config $B$H$$$&%U%!%$%k$r!"$"$i$+$8$a(B >$B:n$C$F$*$/$3$H$G2sHr$G$-$^$7$?$,!"$3$N%U%!%$%k$O%*!<%J!<$,(B news $B$J$N$G(B >doit.bin $B$G$O$D$/$l$J$$$O$:$G!"(Bdoit.root $B$K$b$3$N%U%!%$%k$K4X$9$k5-=R(B >$B$O$J$/!"K\Mh$J$i$I$&$"$k$O$:$N$b$N$+$,$o$+$j$^$;$s!#(B $B:G=i$N%3%s%U%#%.%e%l!<%7%g%s$r$7$?$H$-(B(build $B$r<B9T$7$?;~(B)$B$N(B $B=*$j$N%a%C%;!<%8$G(B root $B8"8B$G(B doit.root $B$r<B9T$7!"(B news $B8"8B$G(B doit.bin $B$r<B9T$7!"(B $B:F$S(B root $B8"8B$G(B again.root $B$7$J$5$$$H8@$o$l$J$+$C$?$G$9$+(B ? doit.bin $B$O(B bin $B8"8B$G$O$J$/$F!"$=$N%5%$%H$N%K%e!<%9%7%9%F%`$N(B $B%i%$%V%i%j$H%P%$%J%j$N=jM-<T$N8"8B$G<B9T$9$k$O$:$G$9$1$I!#(B (/usr/lib/news, /usr/lib/newsbin $B$N(B owner) -- $B9bLZ(J $BLP9T(J ($B3t(J)$B%j%/%k!<%H!!%a%G%#%"%G%6%$%s%;%s%?!<(J takagi@isr.recruit.co.jp 03-3536-7770($BBeI=(J)
Re: Cnews install: redeclaration of umask
Author: Hirohiko KIUCHI
Date: Wed, 20 Jan 1993 07:41
Date: Wed, 20 Jan 1993 07:41
40 lines
2878 bytes
2878 bytes
$@%a%$%F%C%/$NLZFb$G$9!#%U%)%m!<!"$"$j$,$H$&$4$6(J$@$$$^$9!#(J In article <C130uC.L0A@isr.recruit.co.jp> takagi@isr.recruit.co.jp (Shigeyuki Takagi) writes: >>In article <KIUCHI.93Jan18154139@yagi.sys.meitec.co.jp> kiuchi@sys.meitec.co.jp (Hirohiko KIUCHI) writes: >> >>>$@$3$l$K$D$$$F$O!"(J/usr/lib/news/bin/config $@$H$$$&%U%!%$%k$r!"$"$i$+$8$a(J >>>$@:n$C$F$*(J$@$/$3$H$G2sHr$G$-$^$7$?$,!"$3$N%U%!%$%k$O%*!<%J!<$,(J news $@$J$N$G(J >>>doit.bin $@$G$O$D$/$l$J$$$O$:$G!"(Jdoit.root $@$K$b$3$N%U%!%$%k$K4X$9$k5-=R(J >>>$@$O$J$/!"K\Mh$J$i$I$&$"$k$O$:$N$b$N$+$,$o$+$j$^$;$s!#(J >> >>$@:G(J$@=i$N%3%s%U%#%.%e%l!<%7%g%s$r$7$?$H$-(J(build $@$r<B9T$7$?;~(J)$@$N(J >>$@=*$j$N%a%C%;!<%8$G(J >> root $@8"8B$G(J doit.root $@$r<B9T$7!"(J >> news $@8"8B$G(J doit.bin $@$r<B9T$7!"(J >> $@:F$S(J root $@8"8B$G(J again.root >>$@$7$J$5$$$H8@$o(J$@$l$J$+$C$?$G$9$+(J ? You should now run doit.root as root, doit.bin as bin, doit.news as news, and again.root as root, in that order. (This assumes bin $@8"8B$G(J doit.bin$@!"(Jnews $@8"8B$G(J doit.news $@$G$9!#(J >>doit.bin $@$O(J bin $@8"8B$G$O$J$/$F!"$=$N%5%$%H$N%K%e!<%9%7%9%F%`$N(J >>$@%i%$%V%i%j$H%P%$%J%j$N=jM-<T$N8"8B(J$@$G<B9T$9$k$O$:$G$9$1$I!#(J >>(/usr/lib/news, /usr/lib/newsbin $@$N(J owner) /usr/lib/news $@$N(J owner $@$O(J news$@!"(J/usr/lib/newsbin $@$N(J owner $@$O(J bin $@$G$9!#$J$*!"$3$l$i$K1F6A$9$k$O$:$N;O$a$N<ALd$K$O!"(J What user id should be used for news files [news]? What group id should be used for news files [news]? What user id should be used for news programs [bin]? What group id should be used for news programs [bin]? $@$H!"(J$@%G%U%)!<%k%H$GEz$($F$$$^$9!#(J -- ($@3t(J)$@%a%$%F%C%/!!>pJs%7%9%F%`It%7%9%F%`4IM}2](J $@!?!?!?!?(J $@LZFb9@I'(J / E-mail: kiuchi@meitec.co.jp $@!?!?!?!?(J TEL: (052)532-6512 / FAX: (052)532-6518 $@!?!?!?(J$@!?(J
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