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

Top Pagina
Delete this message
Reply to this message
Auteur: Odhiambo Washington
Datum:  
Aan: Ian B
CC: exim users
Onderwerp: [exim] Re: FreeBSD trouble with compiling in either tdb or gdbm
I have LOOKUP_INCLUDE= -I/usr/local/include

On Thu, Dec 21, 2023 at 4:54 PM Ian B <ibrierley@???> 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-users@???> wrote:
>
>> 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/
>>
>


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