[exim] FreeBSD trouble with compiling in either tdb or gdbm

Top Page
Delete this message
Reply to this message
Author: Odhiambo Washington
Date:  
To: exim users
Subject: [exim] FreeBSD trouble with compiling in either tdb or gdbm
In my attempt to use either tdb or gdbm, I edit Local/Makefile and add:

USE_TDB = yes
DBMLIB = -ltdb

or
USE_GDBM = yes
DBMLIB = -lgdbm

In both cases, the compilation fails with the error that it cannot find
tdb.h and gdbm.h are both in /usr/local/include/


<CUT>
ccache clang -g -O0 exim_dbmbuild.c
ccache clang -g -O0 -o exim_dbmbuild
ld: error: unable to find library -ltdb
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
*** Error code 1

Stop.
make[1]: stopped in /usr/local/SRC/Exim/exim-4.97/build-FreeBSD-amd64
*** Error code 1

Stop.
make: stopped in /usr/local/SRC/Exim/exim-4.97
</CUT>

or
<CUT>
ccache clang -g -O0 exim_dbmbuild.c
ccache clang -g -O0 -o exim_dbmbuild
ld: error: unable to find library -lgdbm
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
*** Error code 1

Stop.
make[1]: stopped in /usr/local/SRC/Exim/exim-4.97/build-FreeBSD-amd64
*** Error code 1

Stop.
make: stopped in /usr/local/SRC/Exim/exim-4.97
</CUT>


Does someone using FreeBSD have a working Makefile they're willing to share?

My complete Makefile is at: https://pastebin.ubuntu.com/p/kzGCxgWfqm/
Maybe someone can spot what I am doing wrong.


--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/