SUMMARY: makemap wont compile

From: Mika Tuupola (
Date: Thu Mar 12 1998 - 10:49:43 CST

        Thanks to all who responded:
        Alessandro Forghieri <>
        Stephen Harris <>
        Reto Lichtensteiger <>

        The solution was simple that I was missing the following
        line from the db-1.85 Makefile:

        MISC= snprintf.o

        Added it. Recompiled db-1.85 and after that makemap
        also compiled clean. Special thanks to mr Lichtensteiger
        pointing out my mistake.

        Original question below:

        I'm having compiling makemap coming with sendmail 8.8.8.
        System is Solaris 2.5.1 with recommended patches installed.

        I have installed The Berkeley NEWDB DB 1.85 database package
        and compiled sendmail successfully. All was done following
        instructions found at:


        However when I try to compile makemap I get the following
        error message:

gcc -o makemap makemap.o safefile.o -L/usr/local/lib -ldb
Undefined first referenced
 symbol in file
snprintf /usr/local/lib/libdb.a(bt_open.o)
ld: fatal: Symbol referencing errors. No output written to makemap
make: *** [makemap] Error 1

        Am I missing something obvious? This question might not
        exactly belong in here but I decided to ask it in here
        since I havent had this problems in any other platforms
        I'm dealing with (mostly Digital Unix).

Mika Tuupola                  
Appelsiini Networks               

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:33 CDT