Solved

Makemap problem

Posted on 2003-11-05
4
626 Views
Last Modified: 2013-12-17
Hi,

Im trying to install sendmail.8.12.10 on Mandrake Pro Suite 9.2 but im having some problems with the makemap command.

whenever I run "makemap hash.... or makemap dbm" it returns an error saying
recomplie makemap with -DNEWDB or something along those lines. Where do I put the extra -DNEWDB when recomplilng makemap?

Thanks
0
Comment
Question by:choccarlm
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 9691263
That optin needs to be included in the confMAPDEF when building sendmail. The usual method of doing this is to create a devtools/Site/site..m4 file containing at least:

define(`confMAPDEF', `-DNIS -DMAP_REGEX')
 
and then use 'Build', 'Build install'.
0
 

Author Comment

by:choccarlm
ID: 9693021
I added /devtools/Site/site.config.m4 and places the line:

define(`confMAPDEF', `-DNIS -DMAP_REGEX')

within that file.

This was a new install so I then built sendmail, went into the makemap directory and ran

sh Build -c
sh Build install

Im still getting the same error though

(I've installed the db required from sleepycat)
0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 9698140
The default install of BerkeleyDB would be to /usr/local/BerkelyDB.n.n, which isn't someplace that the sendmail build process will look. If your copy of BerkeleyDB is installed that way you need to tell Sendmail about it. The last time I built sendmail from source it was on a system that used BerkeleyDB 3.2.9 and the site.m4 file that I used looked like:

define(`confMANROOT', `/usr/share/man/man')
define(`confDONT_INSTALL_CATMAN')
define(`confINSTALL_RAWMAN')
define(`confMAPDEF', `-DNIS -DMAP_REGEX')
APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
APPENDDEF(`confINCDIRS', `-I/usr/local/BerkeleyDB.3.2/include')
APPENDDEF(`confLIBDIRS', `-L/usr/local/BerkeleyDB.3.2/lib')
0
 

Author Comment

by:choccarlm
ID: 9716256
thanks a lot
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question