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

2023-12-21 Thread Odhiambo Washington via Exim-users
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/ ccache clang -g -O0 exim_dbmbuild.c c

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

2023-12-21 Thread Ian B via Exim-users
Have you tried LOOKUP_INCLUDE += -I/usr/local/include out of interest ? (not an exim expert, so may be totally wrong!) Ian On Thu, Dec 21, 2023 at 1:35 PM Odhiambo Washington via Exim-users < exim-users@lists.exim.org> wrote: > In my attempt to use either tdb or gdbm, I edit Local/Makefile and

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

2023-12-21 Thread Odhiambo Washington via Exim-users
I have LOOKUP_INCLUDE= -I/usr/local/include On Thu, Dec 21, 2023 at 4:54 PM Ian B wrote: > Have you tried LOOKUP_INCLUDE += -I/usr/local/include out of interest ? > (not an exim expert, so may be totally wrong!) > > Ian > > On Thu, Dec 21, 2023 at 1:35 PM Odhiambo Washington via Exim-users < >

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

2023-12-21 Thread Jeremy Harris via Exim-users
On 12/21/23 13:32, Odhiambo Washington via Exim-users wrote: In both cases, the compilation fails with the error that it cannot find tdb.h and gdbm.h are both in/usr/local/include/ Add "-I /usr/local/include/" to CFLAGS. A += at the top of the Makefile is fine. -- Cheers, Jeremy -- ## su

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

2023-12-21 Thread Odhiambo Washington via Exim-users
On Thu, Dec 21, 2023 at 5:13 PM Jeremy Harris via Exim-users < exim-users@lists.exim.org> wrote: > On 12/21/23 13:32, Odhiambo Washington via Exim-users wrote: > > In both cases, the compilation fails with the error that it cannot find > > tdb.h and gdbm.h are both in/usr/local/include/ > > Add "

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

2023-12-21 Thread Jeremy Harris via Exim-users
On 12/21/23 15:06, Odhiambo Washington via Exim-users wrote: I added that, but it doesn't change anything, I am afraid. Possibly you are not building with the makefile you think you are. Try "make distclean && make". If that does not work, do "make distclean && make FULLECHO='' and check that

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

2023-12-21 Thread Odhiambo Washington via Exim-users
On Thu, Dec 21, 2023 at 6:28 PM Jeremy Harris via Exim-users < exim-users@lists.exim.org> wrote: > On 12/21/23 15:06, Odhiambo Washington via Exim-users wrote: > > I added that, but it doesn't change anything, I am afraid. > > Possibly you are not building with the makefile you think you are. > >

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

2023-12-21 Thread Jeremy Harris via Exim-users
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 " to LDFLAGS -- Cheers, Jeremy

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

2023-12-21 Thread Odhiambo Washington via Exim-users
On Thu, Dec 21, 2023 at 6:52 PM Jeremy Harris via Exim-users < exim-users@lists.exim.org> 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 libtd

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

2023-12-21 Thread Ian B via Exim-users
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@lists.exim.org> wrote: > On Thu, Dec 21, 2023 at 6:52 PM J

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

2023-12-21 Thread Jeremy Harris via Exim-users
On 12/21/23 16:26, Odhiambo Washington via Exim-users wrote: So I added this to the top of the Makefile: LDFLAGS += -L/usr/local/lib But still no joy. Hmm. Seems LDFLAGS is used for something subtly distinct to LFLAGS. Try the latter. -- Cheers, Jeremy -- ## subscription configuration (re

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

2023-12-21 Thread Evgeniy Berdnikov via Exim-users
On Thu, Dec 21, 2023 at 07:26:09PM +0300, Odhiambo Washington via Exim-users wrote: > So I added this to the top of the Makefile: > LDFLAGS += -L/usr/local/lib > > But still no joy. Resulting log (below) has no "-L/usr/local/lib"... Looks like this definition was not applied or was overwritten

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

2023-12-21 Thread Odhiambo Washington via Exim-users
On Thu, Dec 21, 2023 at 7:46 PM Jeremy Harris via Exim-users < exim-users@lists.exim.org> wrote: > On 12/21/23 16:26, Odhiambo Washington via Exim-users wrote: > > So I added this to the top of the Makefile: > > LDFLAGS += -L/usr/local/lib > > > > But still no joy. > > Hmm. Seems LDFLAGS is used