bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib fails for build on Mac OS X 10.4: get_ppid_of.c:36:22: error:


From: Ken Cunningham
Subject: Re: gnulib fails for build on Mac OS X 10.4: get_ppid_of.c:36:22: error:
Date: Wed, 22 Dec 2021 07:53:14 -0800


> On Dec 22, 2021, at 7:23 AM, Bruno Haible <bruno@clisp.org> wrote:
> 
> Ken Cunningham:
>> So that is why with the usual SDK usage on macOS systems, you don't
>> have to add the weak linking macros yourself, in most cases.
> 
> Your proposed approach may work "in most cases", but not in this one.
> 
> I said in the previous mail that I tried omitting the line
> 
>  extern int proc_pidinfo (int, int, uint64_t, void *, int) 
> WEAK_IMPORT_ATTRIBUTE;
> 
> and that it did not produce the appropriate code. Despite
>  -DMAC_OS_X_VERSION_MAX_ALLOWED=1090 -DMAC_OS_X_VERSION_MIN_REQUIRED=1040
> it produced code that would *not* run on Mac OS X 10.4.
> 
> Bruno
> 

Sure, could be. You can’t just set those macros yourself, however:

>  -DMAC_OS_X_VERSION_MAX_ALLOWED=1090 -DMAC_OS_X_VERSION_MIN_REQUIRED=1040


That will never work properly. It picks up those macros from the SDK itself, 
and that comes with a whole lot of other parts that make it work.

This is not my proposal, though — this is the “Apple Way”. 

Anyway, mighty generous of you to even consider supporting Tiger, if you ask me 
;>

Ken


reply via email to

[Prev in Thread] Current Thread [Next in Thread]