SUMMARY: Re: building makemap

From: Lisa Weihl (lweihl@cs.bgsu.edu)
Date: Thu Feb 11 1999 - 17:42:14 CST


Turns out the problem is my lack of knowledge mostly and I knew that. I've
never done more than basic C++ programming on a Unix platform and have
never had to setup my own Makefile.

In the Makefile, I added the path to the library for the Berkeley DB but
forgot the -L in front of it. Also, Michael Hocke caught that I need to
reference with a -ldb in the list of libraries to include. I assume
experience led him to know it had to be -ldb. I also had to add the full
path in the <db.h> reference inside the makemap.c file but I'm assuming
that's because my environment variable for libraries didn't have the path
in it? Does that sound correct?

I'd like to understand this whole library scheme better as it'd make
installing software easier when things don't go smoothly. Are there any
books out there that can help with understanding where to look for the
system libraries (are they all in /usr/include) and how to setup references
to libraries in makefiles and such.

Original question below. Thanks to the following list of people most of
whom all had the above suggestion that worked. THANKS!!

Michael Hocke <michaelh@slmd.com
"David Evans" <DJEVANS@au.oracle.com>
Devadas Viswanath <das@veritas.com>
Danny Johnson <djohnson@nbserv1.rsc.raytheon.com>
Mark ? (missed your lastname when copying mail from home sorry) mark@zang.com
Jason Wright <peewee@scc.mi.org>
"Daniel Kluge" <danielk@tibco.com>

ORIGINAL QUESTION:

>I get the following error when trying to build the makemap that comes with
>sendmail 8.9.1
>
>gcc -o makemap makemap.o safefile.o snprintf.o /usr/local/BerkeleyDB/lib
>-lresolv -lsocket -lnsl -lkstat
>ld: elf error: file /usr/local/BerkeleyDB/lib: unknown type, unable to
>process using elf(3E) libraries
>ld: fatal: File processing errors. No output written to makemap
>
>The db I have installed is db2.5.9 downloaded from sleepycat.com.

>Can anybody tell me what I might be missing that the loader is complaining
>about? I'm not very good at decipering problems when installing software.

******************************************************************
Lisa Weihl, System Administrator E-mail: lweihl@cs.bgsu.edu
Department of Computer Science Office: Hayes 225
Bowling Green State University Phone: (419) 372-0116
Bowling Green, Ohio 43403-0214 Fax: (419) 372-8061



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:15 CDT