[exim] Re: FreeBSD trouble with compiling in either tdb or g…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Odhiambo Washington
日付:  
To: exim-users
題目: [exim] Re: FreeBSD trouble with compiling in either tdb or gdbm
On Thu, Dec 21, 2023 at 6:52 PM Jeremy Harris via Exim-users <
exim-users@???> wrote:

> On 12/21/23 15:35, Odhiambo Washington via Exim-users wrote:
> > ld: error: unable to find library -ltdb
>
> Ah, right; it's not an include file issue
> but a library file issue.
>
> Find where libtdb.so is on your system;
> install it if it really isn't there
> and/or add a "-L <libdir>" to LDFLAGS
>


I have the files in /usr/local/lib/
/usr/local/lib/libtdb.so
/usr/local/lib/libgdbm.so

So I added this to the top of the Makefile:
LDFLAGS += -L/usr/local/lib

But still no joy.

```
ccache clang -g -O0 exim_dbmbuild.c
ccache clang -g -O0 -c -O -I/usr/local/include -I/usr/local/include
-DCOMPILE_UTILITY -o exim_dbmbuild.o exim_dbmbuild.c
ccache clang -g -O0 -o exim_dbmbuild
ccache clang -g -O0 -O -I/usr/local/include -I/usr/local/include -o
exim_dbmbuild exim_dbmbuild.o -lcrypt -lm -lutil -lexecinfo -ltdb
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
```


Should I add it differently?

--
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/