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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Ian B
Dátum:  
Címzett: Odhiambo Washington
CC: exim-users
Tárgy: [exim] Re: FreeBSD trouble with compiling in either tdb or gdbm
I'd be tempted to strace it, and look at the opens to see whats actually
looking where gives any tips. I often find this gets to the heart of whats
happening.

On Thu, Dec 21, 2023 at 4:28 PM Odhiambo Washington via Exim-users <
exim-users@???> wrote:

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


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