Re: [exim] Building 4.94-2 from source on RHEL 6.10

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jason W.
Ημερομηνία:  
Υ/ο: exim users
Αντικείμενο: Re: [exim] Building 4.94-2 from source on RHEL 6.10
On Mon, May 10, 2021 at 2:45 PM Jeremy Harris via Exim-users <
exim-users@???> wrote:

> On 10/05/2021 18:14, Heiko Schlittermann via Exim-users wrote:
> > Richard Gilbert via Exim-users <exim-users@???> (Mo 10 Mai 2021
> 18:31:17 CEST):
> >> I have been installing Exim from source since I started using it in
> >> 1996 after hearing Philip Hazel talking about Exim at a meeting in
> >> Aberdeen. 4.94-2 is the first one where I have had to tell it to use
> >> gcc and to specify CFLAGS += -std=gnu99.
> >
> > Yes, the -std=gnu99 (c99 should suffice) is necessary now, as it seems,
> > that we use things like
> >
> >          for (int i=…; …; …)

>
> Yes, C99 is now a requirement (over twenty years after it came out...).
> Specifically for the above, I decided that the convenience of limiting
> the scope of such variables was useful.



FWIW in case it helps future searchers, I also built 4.94 on RHEL6 by
updating the 4.92 EPEL6 rpm spec file to point to the 4.94 .tar.xz, and
spent a bit fixing the fallout. Mostly ended up removing some of the RHEL
patches that no longer applied since I didn't need the default config, etc.
to match the RHEL file paths.

I did, however, have to add -D _BSD_SOURCE to CFLAGS - not sure if this is
because I am using a lookup that Richard may not be using. I initially went
down the road of -D _POSIX_C_SOURCE = 200112L but that had no effect. The
original spec file was compiling various things as so files. I reverted to
statically linking them into the exim binary.

I am also using Heiko's taintwarning patch to run the new version while I
figure out how to untaint my config :-) So far, no problems that I have
seen.

# uname -a
Linux myserver 2.6.32-696.20.1.el6.x86_64 #1 SMP Fri Jan 26 17:51:45 UTC
2018 x86_64 x86_64 x86_64 GNU/Linux
# exim -bV
Exim version 4.94.2 #2 built 05-May-2021 23:46:33
Copyright (c) University of Cambridge, 1995 - 2018
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 -
2018
Berkeley DB: Berkeley DB 4.7.25: (March 22, 2017)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc OpenSSL
Content_Scanning DANE DKIM DNSSEC Event OCSP PIPE_CONNECT PRDR
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm
dbmjz dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 nisplus passwd
pgsql sqlite
Authenticators: cram_md5 cyrus_sasl dovecot external plaintext spa tls
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Malware: f-protd f-prot6d drweb fsecure sophie clamd avast sock cmdline
Fixed never_users: 0
Configure owner: 0:0
Size of off_t: 8
Configuration file is /etc/exim/exim.conf

HTH!