innfeed-0.10.1をコンパイルしてみました。 コンパイルは以下の環境で行いました。 NWS-5000X NEWS-OS Release 6.1.2 NEWS-C Release 1.010 GNU make 3.75 % make でOKです。 hiraga@meis.sony.co.jp diff -ur innfeed-0.10.1/Makefile innfeed-0.10.1-newsos6/Makefile --- innfeed-0.10.1/Makefile Mon Mar 3 23:07:55 1997 +++ innfeed-0.10.1-newsos6/Makefile Fri Nov 21 16:08:26 1997 @@ -12,21 +12,21 @@ BINDIR = /usr/news/local # Where your man pages live. -MANDIR = /usr/local/man +MANDIR = /usr/local/man/C # The compiler you want. NOTE... AIX 3.2.5 users do NOT use CC. See the # comment in sysconfig.h -CC = gcc +CC = cc # How to run lex and yacc. Innfeed requires Flex (but you shouldn't need it). LEX = lex -d YACC = yacc -t -d # Debug option for compiler -g or -O (or both if using gcc). -DBFLAGS = -g +DBFLAGS = -std -O # Add any architecture specific defines, flags etc. you need -OSFLAGS = +OSFLAGS = # OSFLAGS = -DSOLARIS # uncomment for Solaris # Any extra non-architecture specific defines you may need. @@ -37,7 +37,7 @@ # Any system specific libraries. If you get undefines at link time for names # matching yy*, then you may need ``-ly -ll''. -LIBRARIES = +LIBRARIES = -lsocket -lnsl # uncomment for SOLARIS but you may have to leave out the -lresolv # LIBRARIES = -lnsl -lsocket -lresolv @@ -159,7 +159,7 @@ MV = mv TAG = etags CHMOD = chmod -INSTALL = install -c +INSTALL = /usr/ucb/install -c MAKEDEPEND = ./makedepend DEPENDFLAGS = -s -c '$(CC) -E' diff -ur innfeed-0.10.1/config.h innfeed-0.10.1-newsos6/config.h --- innfeed-0.10.1/config.h Mon Mar 3 23:14:32 1997 +++ innfeed-0.10.1-newsos6/config.h Fri Nov 21 15:52:22 1997 @@ -63,7 +63,7 @@ /* in main.c */ #define NEWSSPOOL "/var/news/spool/articles" /* news-spool */ #define PID_FILE "innfeed.pid" /* pid-file */ -#define LOG_FILE "/var/log/news/innfeed.log" /* log-file */ +#define LOG_FILE "/var/adm/news/innfeed.log" /* log-file */ /* in host.c */ #define DNS_RETRY_PERIOD 900 /* dns-retry */ @@ -106,7 +106,7 @@ /* If this file exists at startup then it's the same as having done '-d 1' on the command line. This is a cheap way of avoiding continual reloading of the newsfeeds file when debugging. */ -#define DEBUG_FILE "/var/log/news/innfeed.debug" +#define DEBUG_FILE "/var/adm/news/innfeed.debug" /* if defined to a non-zero number, then a snapshot will be printed whenever die() is called (e.g. on assert failure). This can use up a diff -ur innfeed-0.10.1/sysconfig.h innfeed-0.10.1-newsos6/sysconfig.h --- innfeed-0.10.1/sysconfig.h Mon Mar 3 23:14:33 1997 +++ innfeed-0.10.1-newsos6/sysconfig.h Fri Nov 21 15:56:11 1997 @@ -99,6 +99,18 @@ /* +** Sony NEWS-OS 6.x +** +*/ + +#if defined (__sony_news) +#define GETSOCKOPT_ARG char * +#define MAX_WRITEV_VEC 16 +#define HAVE_MMAP +#endif + + +/* ** SOLARIS ** */ @@ -285,6 +297,11 @@ #elif defined (__osf__) /* DEC Unix */ #define DONT_USE_UNION_WAIT 1 + +#elif defined (__sony_news) /* NEWS-OS 6.x */ + +#define DO_HAVE_WAITPID 1 +#define LOG_PERROR 0 #elif defined (SOLARIS) /* SunOS 5.x */