Unixware 2 patches and problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

nntpcached still doesn't work on our Unixware 2.03, but I haven't
investigated it very much yet. All it seems to do is that it syslogd the
'cwd now /etc/nntpcache' line and exits. It leaves the following files in
/var/spool/newscache:

-rw-r--r--    1 news     news           0 Sep  3 23:04 cache.mmap
-rw-r--r--    1 news     news         392 Sep  3 23:04 nntpcache.stats

Here are some patches for compiling nntpcached out-of-the-tar under
Unixware. They don't solve the big problem, but they ease compiling.
libgen is needed for syslog().

diff -ur nntpcache-0.92.3UL/Makefile.in nntpcache-0.92.3UL.JAPO/Makefile.in
--- nntpcache-0.92.3UL/Makefile.in	Mon Aug 19 08:38:51 1996
+++ nntpcache-0.92.3UL.JAPO/Makefile.in	Tue Sep  3 22:34:44 1996
@@ -48,7 +48,7 @@
 	./confused conf.cf
 
 confused: $(LIBPROFF) confused.o
-	$(CC) -o $@ confused.o $(LIBPROFF)
+	$(CC) -o $@ confused.o $(LIBPROFF) $(LIBS)
 
 headers: version.h extern.h conf.h mmap_results.h
 
diff -ur nntpcache-0.92.3UL/configure.in nntpcache-0.92.3UL.JAPO/configure.in
--- nntpcache-0.92.3UL/configure.in	Mon Aug 19 08:38:52 1996
+++ nntpcache-0.92.3UL.JAPO/configure.in	Tue Sep  3 22:34:05 1996
@@ -91,6 +91,7 @@
 AC_CHECK_FUNCS(getdtablesize statfs statvfs usleep utime waitpid wait3 chroot strdup strcasecmp strcasestr strncasestr vsnprintf daemon setenv putenv)
 AC_CHECK_LIB(nsl, gethostbyname)
 AC_CHECK_LIB(socket, socket)
+AC_CHECK_LIB(gen, syslog)
 
 AC_PROG_MAKE_SET
 
diff -ur nntpcache-0.92.3UL/libproff/str.h nntpcache-0.92.3UL.JAPO/libproff/str.h
--- nntpcache-0.92.3UL/libproff/str.h	Fri Jul 26 14:31:47 1996
+++ nntpcache-0.92.3UL.JAPO/libproff/str.h	Tue Sep  3 22:45:15 1996
@@ -1,3 +1,6 @@
+/* size_t might be defined in ... */
+#include <sys/types.h>
+
 struct strList
 {
 	struct strList *next;
@@ -26,3 +29,4 @@
 #  define strCaseEq(x,y) (strcasecmp((x), (y)) == 0)
 #  define strnCaseEq(x,y,z) (strncasecmp((x), (y), (z)) == 0)
 #endif
+
diff -ur nntpcache-0.92.3UL/list.c nntpcache-0.92.3UL.JAPO/list.c
--- nntpcache-0.92.3UL/list.c	Tue Sep  3 12:59:24 1996
+++ nntpcache-0.92.3UL.JAPO/list.c	Tue Sep  3 22:49:05 1996
@@ -141,7 +141,7 @@
 			p2->write_locks=0;
 		if (!(newsgroupLockWrite(p)))
 			goto restart;
-		r=strcasecmp(s, p->group);
+		r=strCaseEq(s, p->group);
 		if (r==0)
 		{
 			if (!lock_write)

---
Hannu Laurila - kube@japo.fi  *  Kauppakatu 10, FIN-62900 ALAJÄRVI
Alajärven Puhelinosuuskunta   *  Tel +358 66 557 2209 - Fax +358 66 557 2788


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux