Mailing List Archive

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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
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 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@lists.exim.org
> ## 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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
I have LOOKUP_INCLUDE= -I/usr/local/include

On Thu, Dec 21, 2023 at 4:54?PM Ian B <ibrierley@gmail.com> 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@lists.exim.org> 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@lists.exim.org
>> ## 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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
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


--
## 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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
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 "-I /usr/local/include/" to CFLAGS. A += at the top of the Makefile
> is fine.
>

I added that, but it doesn't change anything, I am afraid.
Here is what I have.

```
CFLAGS +=-I/usr/local/include
CFLAGS += -std=c99
CFLAGS += -g -O0
CC=ccache clang -g -O0
CXX=clang++
CPP=clang-cpp

########
BIN_DIRECTORY=/usr/local/sbin
CONFIGURE_FILE=/usr/local/etc/exim/configure
EXIM_USER=mailnull
SPOOL_DIRECTORY=/var/spool/exim
USE_OPENSSL=yes
TLS_LIBS=-lssl -lcrypto
TLS_LIBS=-L/usr/local/openssl/lib -lssl -lcrypto
ROUTER_ACCEPT=yes
ROUTER_DNSLOOKUP=yes
ROUTER_IPLITERAL=yes
ROUTER_MANUALROUTE=yes
ROUTER_QUERYPROGRAM=yes
ROUTER_REDIRECT=yes
ROUTER_IPLOOKUP=yes
TRANSPORT_APPENDFILE=yes
TRANSPORT_AUTOREPLY=yes
TRANSPORT_PIPE=yes
TRANSPORT_SMTP=yes
TRANSPORT_LMTP=yes
SUPPORT_MAILDIR=yes
SUPPORT_MAILSTORE=yes
SUPPORT_MBX=yes
CFLAGS+= -I/usr/local/include/hiredis
LDFLAG+= -lhiredis
LOOKUP_DBM=yes
LOOKUP_LSEARCH=yes
LOOKUP_DNSDB=yes
LOOKUP_CDB=yes
LOOKUP_DSEARCH=yes
LOOKUP_LMDB=yes
LOOKUP_MYSQL=yes
LOOKUP_PASSWD=yes
LOOKUP_PGSQL=yes
LOOKUP_REDIS=yes
LOOKUP_SQLITE=yes
LOOKUP_WILDLSEARCH=yes
LOOKUP_NWILDLSEARCH=yes
PCRE2_CONFIG=yes
SUPPORT_DANE=yes
LOOKUP_INCLUDE+=-I/usr/local/include
LOOKUP_LIBS=-L/usr/local/lib/mysql -lmysqlclient -L/usr/local/lib -llber
-lsqlite3 -L/usr/local/include/hiredis -lhiredis -llmdb
WITH_CONTENT_SCAN=yes
DISABLE_MAL_FFROTD=yes
DISABLE_MAL_FFROT6D=yes
DISABLE_MAL_DRWEB=yes
DISABLE_MAL_FSECURE=yes
DISABLE_MAL_SOPHIE=yes
DISABLE_MAL_AVAST=yes
DISABLE_MAL_AVE=yes
DISABLE_MAL_KAV=yes
DISABLE_MAL_MKS=yes
SUPPORT_SRS=yes
EXPERIMENTAL_DCC=yes
SUPPORT_DMARC=yes
CFLAGS += -I/usr/local/include
LDFLAGS += -lopendmarc
DMARC_TLD_FILE=/etc/exim/opendmarc.tlds
EXPERIMENTAL_ARC=yes
EXPERIMENTAL_DSN_INFO=yes
EXPERIMENTAL_QUEUEFILE=yes
EXPERIMENTAL_XCLIENT=yes
USE_TDB = yes
DBMLIB = -ltdb
#USE_GDBM = yes
#DBMLIB = -lgdbm
FIXED_NEVER_USERS=root
AUTH_CRAM_MD5=yes
AUTH_DOVECOT=yes
AUTH_EXTERNAL=yes
AUTH_PLAINTEXT=yes
AUTH_TLS=yes
HEADERS_CHARSET="ISO-8859-1"
HAVE_ICONV=yes
CFLAGS=-O -I/usr/local/include
EXTRALIBS_EXIM=-L/usr/local/lib -liconv
LOG_FILE_PATH=syslog:/var/log/exim/%s.%D.log
SYSLOG_LOG_PID=yes
EXICYCLOG_MAX=10
COMPRESS_COMMAND=/usr/bin/gzip
COMPRESS_SUFFIX=gz
ZCAT_COMMAND=/usr/bin/zcat
EXIM_PERL=perl.o
EXPAND_DLFUNC=yes
SUPPORT_SOCKS=yes
SUPPORT_PROXY=yes
SUPPORT_I18N=yes
LDFLAGS += -lidn
SUPPORT_I18N_2008=yes
LDFLAGS += -lidn -lidn2
SUPPORT_SPF=yes
CFLAGS += -I/usr/local/include
LDFLAGS += -lspf2
USE_TCP_WRAPPERS=yes
CFLAGS=-O -I/usr/local/include
EXTRALIBS_EXIM=-L/usr/local/lib -lwrap
SYSTEM_ALIASES_FILE=/etc/aliases
USE_READLINE=yes
HAVE_IPV6=yes
EXIM_TMPDIR="/tmp"
MAX_NAMED_LIST=32
``


--
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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
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 failing cc command line.
--
Cheers,
Jeremy


--
## 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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
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.
>
> Try "make distclean && make". If that does not work,
> do "make distclean && make FULLECHO='' and check that failing cc command
> line.
>

make distclean && make FULLECHO=

```
ccache clang -g -O0 -o macro_predef
ccache clang -g -O0 -o macro_predef macro_predef.o macro-globals.o
macro-readconf.o macro-expand.o macro-route.o macro-transport.o
macro-drtables.o macro-acl.o macro-tls.o macro-appendfile.o
macro-autoreply.o macro-lmtp.o macro-pipe.o macro-queuefile.o macro-smtp.o
macro-accept.o macro-dnslookup.o macro-ipliteral.o macro-iplookup.o
macro-manualroute.o macro-queryprogram.o macro-redirect.o
macro-auth-spa.o macro-cram_md5.o macro-cyrus_sasl.o macro-dovecot.o
macro-gsasl_exim.o macro-heimdal_gssapi.o macro-plaintext.o macro-spa.o
macro-authtls.o macro-external.o macro-dkim.o macro-malware.o
macro-signing.o
./macro_predef > macro.c
>>> exicyclog script built
>>> exinext script built
>>> exiwhat script built
>>> exigrep script built
>>> eximstats script built
>>> exipick script built
>>> exiqgrep script built
>>> exiqsumm script built
>>> transport-filter.pl script built
>>> convert4r3 script built
>>> convert4r4 script built
>>> exim_checkaccess script built

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

```


--
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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
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
--
Cheers,
Jeremy


--
## 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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
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 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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
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 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 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@lists.exim.org
> ## 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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
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 (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
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.

> 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
--
Eugene Berdnikov

--
## 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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: FreeBSD trouble with compiling in either tdb or gdbm [ In reply to ]
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 for something subtly distinct to LFLAGS.
> Try the latter.
>

With LFLAGS it has successfully compiled.

Thank you.


--
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@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/