On Mon, Dec 30, 2024, 23:07 Andrew Shelley <ashel...@btinternet.com> wrote:

> In file included from src/target/espressif/esp32_apptrace.c:25:
>
> *./src/helper/list.h:49:9: **error: **'LIST_HEAD' macro redefined
> [-Werror,-Wmacro-redefined]*
>
>    49 | #define LIST_HEAD(name) \
>
>       | *        ^*
>
> */Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/queue.h:465:9:
> note: *previous definition is here
>
>   465 | #define LIST_HEAD(name, type)
>       \
>
>       | *        ^*
>
> 1 error generated.
>
> make[2]: *** [src/target/espressif/esp32_apptrace.lo] Error 1
>
> make[2]: *** Waiting for unfinished jobs....
>
> make[1]: *** [all-recursive] Error 1
>
> make: *** [all] Error 2
>
>
> Same macro name used in the OpenOCD list helper and one of the XCode
> headers.
>

Thanks for reporting it.

The file src/helper/list.h is almost a copy from Linux and I would like to
avoid diverging too much. But renaming this macro only should not be a big
problem.
At first I want to have a look at the MacOS <sys/queue.h> and the
equivalent in other xBSD, if any.

Antonio

>


Reply via email to