[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems compiling zmailer under SunOS 4.1.1




On Mon, 2 Oct 1995, Lars Kellogg-Stedman wrote:

> I'm having some difficulty compiling the latest version of zmailer (from
> ftp.funet.fi) under SunOS 4.1.1.
> 
> Here's the output when compiling the router:
> 
> gcc -traditional -O -g  -I../../include -I../../libsh -I/opt/gnu/include  -c bin
> d.c dbm.c gdbm.c header.c hostsfile.c incore.c ndbm.c ordered.c unordered.c yp.c
> ndbm.c: In function `owner_ndbm':
> ndbm.c:228: `DBM_PAGFNO_NOT_AVAILABLE' undeclared (first use this function)
> ndbm.c:228: (Each undeclared identifier is reported only once
> ndbm.c:228: for each function it appears in.)
> ndbm.c: In function `modp_ndbm':
> ndbm.c:250: `DBM_PAGFNO_NOT_AVAILABLE' undeclared (first use this function)
> 
> I'm not sure where the compiler is finding "DBM_PAGFNO_NOT_AVAILABLE",
> because that symbol doesn't appear *anywhere* in the router source tree.
> Any clues as to what's going on?

  Probably it's coming from your /usr/include/ndbm.h

  Basically, Zmailer needs to use the dbm_pagfno() call, but it isn't 
available in several NDBM implementations.

  So, change hostenv so it doesn't try to use NDBM anymore.

Tom