Article View: comp.sys.next.sysadmin
Article #816NNTP Compiling - type mismatch in initialization
From: Shane M Zatezalo
Date: Mon, 31 Aug 1992 15:26
Date: Mon, 31 Aug 1992 15:26
77 lines
2312 bytes
2312 bytes
I'm trying to compile NNTP, and when the compiler is doing the file "misc.c"
it bombs out with this:
(btw... thanks to Tim Gurbick for helping me with my first problem!)
>make server
cd server; make "LIBS=-ldbm" "CFLAGS=-O "
cc -O -c misc.c
misc.c:955: type mismatch in initialization
misc.c:955: type mismatch in initialization
Here is the code from the file where it seems to be boming: (approximately)
/*
** GETLA -- get the current load average
**
** This code stolen from la.c. (And subsequently stolen from sendmail,
** conf.c for nntpd.)
**
** Parameters:
** none.
**
** Returns:
** The current load average as an integer.
**
** Side Effects:
** none.
*/
#ifdef USG
getla()
{
return(0);
}
#else
#include <nlist.h>
#include <sys/ioctl.h>
struct nlist Nl[] =
{
{ "_avenrun" },
#define X_AVENRUN 0
{ 0 },
};
getla()
{
static int kmem = -1;
# ifdef FSCALE
long avenrun[3];
# else
double avenrun[3];
# endif
extern off_t lseek();
if (kmem < 0)
{
kmem = open("/dev/kmem", 0, 0);
if (kmem < 0)
return (-1);
(void) ioctl(kmem, (int) FIOCLEX, (char *) 0);
nlist("/vmunix", Nl);
if (Nl[0].n_type == 0)
return (-1);
}
any ideas?
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
: Shane M. Zatezalo : i-net> szatezal@magnus.acs.ohio-state.edu :
: CIS Eng Ohio State : NeXTMail> shane@kiwi.shws.ohio-state.edu :
:GS:::: Apple II forever!! ::::::GO BUCKS!::::::: Play Lacrosse! :::::::GS:
Technical Details
Message-ID:
<1992Aug31.152659.15528@magnus.acs.ohio-state.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!szatezalShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!szatezal From: szatezal@magnus.acs.ohio-state.edu (Shane M Zatezalo) Newsgroups: comp.sys.next.sysadmin Subject: NNTP Compiling - type mismatch in initialization Message-ID: <1992Aug31.152659.15528@magnus.acs.ohio-state.edu> Date: 31 Aug 92 15:26:59 GMT Sender: news@magnus.acs.ohio-state.edu Organization: The Ohio State University Lines: 77 Nntp-Posting-Host: magnusug.magnus.acs.ohio-state.edu