Re: [exim] Major confusing with manual compile of Exim

Top Page
Delete this message
Reply to this message
Author: Odhiambo Washington
Date:  
To: Exim-users
Subject: Re: [exim] Major confusing with manual compile of Exim
On Mon, 4 Nov 2019 at 20:27, Bill Cole via Exim-users <exim-users@???>
wrote:

> On 4 Nov 2019, at 10:13, Odhiambo Washington via Exim-users wrote:
>
> > On Mon, 4 Nov 2019 at 14:21, Jeremy Harris via Exim-users <
> > exim-users@???> wrote:
> >
> >> On 04/11/2019 10:43, Odhiambo Washington via Exim-users wrote:
> >>> root@gw:/usr/local/SRC/Exim/exim-4.92 # pwd
> >>> /usr/local/SRC/Exim/exim-4.92
> >>>
> >>> root@gw:/usr/local/SRC/Exim/exim-4.92 # make
> >>> /bin/sh scripts/source_checks
> >>> `Makefile' is up to date.
> >>>
> >>>>>> version 4.92 #22
> >>
> >>> gcc buildconfig.c
> >>> make[1]: exec(gcc) failed (No such file or directory)
> >>> *** Error code 1
> >>
> >>> Why??
> >>
> >> You don't have gcc installed, or not in your $PATH ?
> >>
> >
> > True, I do not have gcc installed anywhere.
>
> And yet, make is trying to use it. This is because OS/Makefile-Default
> says "CC=gcc" and OS/Makefile-FreeBSD doesn't correct it.
>
> > FreeBSD uses clang and that is
> > referenced from /etc/make.conf:
> > CC=clang
> > CXX=clang++
> > CPP=clang-cpp
>
> The Makefile for the FreeBSD port uses the value of $CC to fix
> OS/Makefile-Default. Arguably OS/Makefile-FreeBSD should say "CC=cc"
> since /usr/bin/cc is just another name for /usr/bin/clang.
>
> > However, if the path was an issue, then make would grok both inside
> > exim-4.92.2 and exim-4.93RC I believe.
> >
> > Anyway, it's just that I wanted to test out 4.93RC1, but this is
> > making it
> > a show-stopper and I at at the end of my wits.
>
>

Thank you for the above explanation. It has really helped me understand why
the ports build so easily while I have
to struggle with CC.


> Have you considered using the port's Makefile and patches as a starting
> point?
>


I thought about that, but to be honest, understanding the ports Makefile is
something way beyond me.
I tried grepping for CC in there, but of course I got lost!


--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)