Subject: Re: problems compiling nmh 1.2
To: Igor Sobrado <igor@string1.ciencias.uniovi.es>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-users
Date: 12/21/2005 12:00:36
On Wed, 21 Dec 2005, Igor Sobrado wrote:

> gcc -c -DHAVE_CONFIG_H -I.. -I. -I..   -Wall -O2 slocal.c
> slocal.c: In function `suppress_duplicates':
> slocal.c:1533: error: `datum' undeclared (first use in this function)
> slocal.c:1533: error: (Each undeclared identifier is reported only once
> slocal.c:1533: error: for each function it appears in.)
> slocal.c:1533: error: parse error before "key"
> slocal.c:1534: error: `DBM' undeclared (first use in this function)
> slocal.c:1534: error: `db' undeclared (first use in this function)
> slocal.c:1563: error: `key' undeclared (first use in this function)
> slocal.c:1568: warning: implicit declaration of function `dbm_open'
> slocal.c:1586: error: `value' undeclared (first use in this function)
> slocal.c:1586: warning: implicit declaration of function `dbm_fetch'
> slocal.c:1595: warning: implicit declaration of function `dbm_store'
> slocal.c:1595: error: `DBM_INSERT' undeclared (first use in this function)
> slocal.c:1600: warning: implicit declaration of function `dbm_close'
> *** Error code 1

Check to see if it includes ndbm.h.

> It would be nice upgrading nmh from 1.0.4 to 1.2 in the NetBSD pkgsrc
> if it finally works as it should.

You may want to discuss this on the tech-pkg list.


  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/