Article View: news.software.nn
Article #8095nn 6.5.1 build error in 'db.c' with CACHE_PURPOSE is defined
From: Craig Dewick
Date: Wed, 11 Sep 1996 00:00
Date: Wed, 11 Sep 1996 00:00
45 lines
2036 bytes
2036 bytes
When attempting to build nn-6.5.1 on this machine, a Sun 4/380 running
SunOS 4.1.4 with gcc-2.6.3, I encountered a problem with 'db.c'.
Here is the output from the build session if I try to build nn right now:
make -f ymakefile all
make[1]: Entering directory `/mnt/azwan/nn-6.5.1'
cc -Iconf -O -c db.c
"db.c", line 1233: syntax error at or near variable name "const"
"db.c", line 1237: const undefined
make[1]: *** [db.o] Error 1
make[1]: Leaving directory `/mnt/azwan/nn-6.5.1'
make: *** [all] Error 2
Here's the code fragment from 'db.c'
#ifdef CACHE_PURPOSE
static int
purpcmp(p0, p1)
const void *p0, *p1; <---- this is line 1233
{
return strcmp( ((struct purp_list *)p0)->group_name,
((struct purp_list *)p1)->group_name );
}
Note that this section of code is only being built because I have defined
CACHE_PURPOSE in the config file as a result of using NOV to access the
overview database maintained by Inn. Something is obviously wrong, but I'm
not a C guru so I'm kind of up against the preverbial brick wall.
If you can suggest a solution (even if it's extrememly simple - I'm still
kind of naive about some aspects of C), please post it here so everyone
can benefit.
Regards,
Craig.
--
Craig Dewick. Send email to 'cdewick@jedi.apana.org.au'
Point a web browser at 'http://jedi.apana.org.au/~cdewick' to
access my collection of Sun information and links to other places.
Technical Details
Message-ID:
<5141e4$fls@jedi.apana.org.au>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <5141e4$fls@jedi.apana.org.au> Subject: nn 6.5.1 build error in 'db.c' with CACHE_PURPOSE is defined Date: Wed, 11 Sep 1996 00:00:00 +0000 From: cdewick@jedi.apana.org.au (Craig Dewick) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail X-Deja-AN: 179777133 Organization: Jedi - Fighting for Net.Freedom Newsgroups: news.software.nn