🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Peter Jordan Sat, 01 Jun 1996 00:00
Can't compile nn605b3 with NOV and NNTP.
#7655
Author: Peter Jordan
Date: Sat, 01 Jun 1996 00:00
82 lines
3719 bytes
I downlaoded the tarred version nn-6.0.5.b3.tar.gz
and then downloaded the newspak-2.5 ...

whew .. okay did some MORE reading yet .
made the following edits to config.h-dist
calling it config.h :

#define NOV  (was already defined)
#define NNTP (was undefined)

#include "s-linux.h"  (was set to some sys-5 thingy I think)

I got this last file from the newspak distribution.

Okay ... so I do "make client"
and get the following barf  (included in its entirety) :

cp xmakefile MF.c
/lib/cpp -DCOMPILER="gcc" -DPREPROC="/lib/cpp" \
       -DLDEBUG="-s " \
       -DCDEBUG="-O2 " -Iconf MF.c | \
sed -e '1,/MAKE WILL CUT HERE/d' \
    -e '/^#/d' \
    -e '/^[ \f	]$/d' \
    -e '/^[ \/]*[*]/d' | \
sed -n -e '/^..*$/p' > ymakefile
In file included from /usr/include/endian.h:34,
                 from /usr/include/ctype.h:43,
                 from config.h:17,
                 from MF.c:7:
/usr/include/bytesex.h:13: #error architecture not supported by the Linux C library
In file included from /usr/include/dirent.h:30,
                 from s-linux.h:124,
                 from config.h:129,
                 from MF.c:7:
/usr/include/gnu/types.h:118: warning: `__NFDBITS' redefined
/usr/include/linux/posix_types.h:30: warning: this is the location of the previous definition
/usr/include/gnu/types.h:129: warning: `__FD_ZERO' redefined
/usr/include/asm/posix_types.h:53: warning: this is the location of the previous definition
/usr/include/gnu/types.h:130: warning: `__FD_SET' redefined
/usr/include/asm/posix_types.h:33: warning: this is the location of the previous definition
/usr/include/gnu/types.h:131: warning: `__FD_CLR' redefined
/usr/include/asm/posix_types.h:38: warning: this is the location of the previous definition
/usr/include/gnu/types.h:132: warning: `__FD_ISSET' redefined
/usr/include/asm/posix_types.h:46: warning: this is the location of the previous definition
MF.c:177: unterminated string or character constant
MF.c:177: possible real start of unterminated constant
rm -f MF.c
make  -f ymakefile client
make[1]: Entering directory `/usr/src/nn-6.5.0.b3'
gcc  -Iconf -O6  -O2    -c nn.c -o nn.o
gcc  -Iconf -O6  -O2    -c admin.c -o admin.o
gcc  -Iconf -O6  -O2    -c proto.c -o proto.o
configuration number updated to 1
gcc  -Iconf -O6  -O2    -c global.c -o global.o
gcc  -Iconf -O6  -O2    -c options.c -o options.o
gcc  -Iconf -O6  -O2    -c db.c -o db.o
gcc  -Iconf -O6  -O2    -c nntp.c -o nntp.o
nntp.c: In function `nntp_check':
nntp.c:761: warning: assignment discards `const' from pointer target type
nntp.c: In function `nntp_get_overview':
nntp.c:1193: argument `first' doesn't match prototype
global.h:653: prototype declaration
nntp.c:1193: argument `last' doesn't match prototype
global.h:653: prototype declaration
make[1]: *** [nntp.o] Error 1
make[1]: Leaving directory `/usr/src/nn-6.5.0.b3'
make: *** [client] Error 2



It will compile without NNTP defined .. but thats not what I want ..
I want to use the .overview file thingy over a PPP link
connecting to my local nntpserver.

Please help.
Thanks.

PeterJordan

Re: Can't compile nn605b3 with NOV and NNTP.
#7652
Author: Peter Jordan
Date: Sat, 01 Jun 1996 00:00
48 lines
2469 bytes
pjordan@gpu3.srv.ualberta.ca (Peter Jordan) writes:

>gcc  -Iconf -O6  -O2    -c nntp.c -o nntp.o
>nntp.c: In function `nntp_check':
>nntp.c:761: warning: assignment discards `const' from pointer target type
>nntp.c: In function `nntp_get_overview':
>nntp.c:1193: argument `first' doesn't match prototype
>global.h:653: prototype declaration
>nntp.c:1193: argument `last' doesn't match prototype
>global.h:653: prototype declaration
>make[1]: *** [nntp.o] Error 1
>make[1]: Leaving directory `/usr/src/nn-6.5.0.b3'
>make: *** [client] Error 2


I found the solution .. I think ..
In an ol dpost from cdewick@orb.apana.org.au the same error was reported
along with a tentative solution.
Here is a pathc that should fix the problem but use at your own risk
and you should check out the original post by Ceaig Dewick (960114).

*** global.h	Sat Jun  1 02:45:42 1996
--- global.h.old	Sat Jun  1 02:39:40 1996
***************
*** 650,656 ****
  int	nntp_set_group		__APROTO((group_header *gh));
  int	nntp_get_active		__APROTO((void));
  FILE *	nntp_get_newsgroups	__APROTO((void));
! struct novgroup *nntp_get_overview	__APROTO((group_header *gh, article_number first, article_number last));
  FILE *	nntp_fopen_list		__APROTO((char *cmd));
  char *	nntp_fgets		__APROTO((char *buf, int size));
  article_number *nntp_get_article_list	__APROTO((group_header *gh));
--- 650,656 ----
  int	nntp_set_group		__APROTO((group_header *gh));
  int	nntp_get_active		__APROTO((void));
  FILE *	nntp_get_newsgroups	__APROTO((void));
! struct novgroup *nntp_get_overview	__APROTO((group_header *gh, int low, int high));
  FILE *	nntp_fopen_list		__APROTO((char *cmd));
  char *	nntp_fgets		__APROTO((char *buf, int size));
  article_number *nntp_get_article_list	__APROTO((group_header *gh));


Have fun.

PeterJordan

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