Re: Compiling Problem

Yar Tikhiy (yar@comp.chem.msu.su)
Thu, 24 Jul 1997 13:44:55 +0400 (MSD)

Hi!

The errors appear because of slightly incorrect 'ndbm.h' file shipped
with the gdbm library. You should put the standard frame like this

#ifndef _NDBM_H_
#define _NDBM_H_
<actual ndbm.h>
#endif

around the 'ndbm.h' file.

SY, Yar

> This is a cut and paste of the screen when I am running "make" ..
>
> Could someone please help me resolve this problem and get around it?
>
> I can't ifggure out why it is doing this.
>
> gcc -c -O2 -Wall -I../iflib -DCICOLOG=LOG_LOCAL0 -DMAILLOG=LOG_LOCAL0
> -DHAS_STATFS -DSTATFS_IN_VFS_H -DHAS_SETSID -DHAS_NDBM_H
> -DDONT_HAVE_TM_GMTOFF -DHAS_TERMIOS_H -DASCII_LOCKFILES -DHAS_FSYNC
> -DHAS_IOCTL_H -DHAS_REGEX_H -DHAS_TCP -DFORCEINTL -DHAS_SYSLOG
> -DNEED_UUCPFROM -DNEED_BSY -DSLAVE_SENDS_NAK_TOO -DNEED_FORK -DINT32=long
> -DINT16=short nodelist.c
> In file included from nlindex.h:9,
> from nodelist.c:21:
> /usr/include/ndbm.h:38: conflicting types for `datum'
> /usr/include/ndbm.h:38: previous declaration of `datum'
> /usr/include/ndbm.h:42: conflicting types for `DBM'
> /usr/include/ndbm.h:42: previous declaration of `DBM'
> /usr/include/ndbm.h:47: conflicting types for `dbm_open'
> /usr/include/ndbm.h:47: previous declaration of `dbm_open'
> /usr/include/ndbm.h:51: conflicting types for `dbm_fetch'
> /usr/include/ndbm.h:51: previous declaration of `dbm_fetch'
> /usr/include/ndbm.h:59: conflicting types for `dbm_firstkey'
> /usr/include/ndbm.h:59: previous declaration of `dbm_firstkey'
> /usr/include/ndbm.h:61: conflicting types for `dbm_nextkey'
> /usr/include/ndbm.h:61: previous declaration of `dbm_nextkey'
> make[1]: *** [nodelist.o] Error 1
> make[1]: Leaving directory `/home/kris/ifmail-2.11/ifcico'
> make: *** [all] Error 2
> #

SY, Yar