bug-gnulib
[Top][All Lists]
Advanced

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

Re: compiler error on macOS Siera with address@hidden


From: Eric Blake
Subject: Re: compiler error on macOS Siera with address@hidden
Date: Fri, 23 Sep 2016 12:51:39 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

[adding gnulib]

On 09/23/2016 12:38 PM, Denis Davydov wrote:
> Dear developers,
> 
> m4 fails to compile on macOS Sierra with GCC:
> 
> ./sched.h:42:8: error: redefinition of 'struct sched_param'
>  struct sched_param
>         ^~~~~~~~~~~
> In file included from ./sched.h:27:0,
>                  from ./spawn.h:37,
>                  from execute.c:47:
> /usr/include/sched.h:35:8: note: originally defined here
>  struct sched_param { int sched_priority;  char 
> __opaque[__SCHED_PARAM_SIZE__]; };
>         ^~~~~~~~~~~

Thanks for the report.

Can you look in config.log, and see why configure seems to think that
HAVE_STRUCT_SCHED_PARAM was set to 0 on your platform (since it is
obvious from the error message that your platform DOES have struct
sched_param after all)?  Is this a case of you doing incremental
compilation, where the cache variables are from one run on an earlier
version of macOS, and not updated for the change in headers when you
moved to Sierra?  If so, does a fresh build change things?  Can you work
around the issue by setting appropriate cache variables during the
configure run?

It may be that something in the new macOS Sierra headers is causing
gnulib's configure probe to misbehave at detecting whether sched_param
is defined, and that gnulib needs to be taught how to work with the
updated headers.  Once gnulib is working, then m4 needs to update to a
newer version of gnulib.

Sadly, I don't have access to macOS myself (I'm not a fan of paying for
an operating system when free software does the job just as well), so it
will have to be a patch submitted and tested by someone else.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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