Autor: Mark Edwards Data: A: John Jetmore CC: exim-users Assumpte: Re: [Exim] Build problem on OSX 10.1.4
On Jan 20, 2004, at 11:29 AM, John Jetmore wrote:
> On Tue, 20 Jan 2004, Mark Edwards wrote:
>
>> I get the following error when trying to make exim-4.30 on OSX 10.1.4.
>> exim-4.24 builds fine, but not 4.30:
>>
>> [dina:~/Documents/work/exim-4.30] engineer% make
>>
>>>>> Creating links to source files...
>>>>> New Makefile installed
>>>>> Use "make makefile" if you need to force rebuilding of the makefile
>>
>> /bin/sh ../scripts/Configure-os.h
>> /bin/sh ../scripts/Configure-os.c
>> cc -O -no-cpp-precomp -DBIND_8_COMPAT -o buildconfig buildconfig.c
>> -lresolv
>> /usr/bin/ld: can't locate file for: -lresolv
>> make[1]: *** [buildconfig] Error 1
>> make: *** [go] Error 2
>
> I made the following changes to allow building on 10.2.8, sounds like
> you
> definitely need the LIBS change. Need for the socklen change may
> become
> apparent after making the LIBS change.
>
> OS/os.h-Darwin:
> + #define socklen_t int
>
> OS/Makefile-Darwin:
> - LIBS=-lresolv
> + LIBS=
>
> --John
That did the trick. I had to make both changes, incidentally.
It seems like this is worth fixing in the source. Not supporting
10.1.x is one thing, but lots of machines are still running 10.2.x.