Building Sendmail 8.9.0 and/or makemap with db2.4.10

Building Sendmail 8.9.0 and/or makemap with db2.4.10

Post by Markus Bauman » Thu, 18 Jun 1998 04:00:00



I receive the error "DBM_PAGFNO_NOT_AVAILABLE" whenever I try to build
sendmail or makemap.  If anyone has some pointers, they would be greatly
appreciated.

Thanks,
Markus

sendmail-8.9.0/src# sh Build
\Configuration: os=SunOS, rel=5.5.1, rbase=5, rroot=5.5, arch=sun4, sfx=
Using M4=/usr/ccs/bin/m4
Creating obj.SunOS.5.5.1.sun4 using ../BuildTools/OS/SunOS.5.5
Making dependencies in obj.SunOS.5.5.1.sun4
gcc -M -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=20500
*.c >> Makefile
Making in obj.SunOS.5.5.1.sun4
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c alias.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c arpadate.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c clock.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c collect.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c conf.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c convtime.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c daemon.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c deliver.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c domain.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c envelope.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c err.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c headers.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c macro.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c main.c
gcc -O -I.  -DNEWDB -DNDBM -DNIS -DNISPLUS -DMAP_REGEX
-DSOLARIS=20500    -c map.c
map.c:22: parse error before `README'
map.c: In function `ndbm_map_open':
map.c:909: `DBM_PAGFNO_NOT_AVAILABLE' undeclared (first use this
function)
map.c:909: (Each undeclared identifier is reported only once
map.c:909: for each function it appears in.)
make: *** [map.o] Error 1

--

Vice President - Internet         www: http://www.csolve.net/net/
Compu-SOLVE Technologies Inc.   phone: (705)528-6000

 
 
 

Building Sendmail 8.9.0 and/or makemap with db2.4.10

Post by Juan Galle » Tue, 23 Jun 1998 04:00:00



posted to comp.mail.sendmail on Wed, 17 Jun 1998 21:03:29 GMT,

: I receive the error "DBM_PAGFNO_NOT_AVAILABLE" whenever I try to build
: sendmail or makemap.  If anyone has some pointers, they would be greatly
: appreciated.

In your include path, the compiler finds the ndbm.h file that comes with
the Berkeley DB package instead of the system one. Please carefully read
src/README, specially the 'DATABASE DEFINITION' section. I suggest you
explicitly add /usr/include to the compiler flags:

Build -I/usr/include -I/usr/local/include ...

(where ... would be any other flags/switches/arguments you've used
previously).

HTH,
--
Juan Gallego
Little ({sys,net}-{admin,hacker}) Boss