bug-autoconf
[Top][All Lists]
Advanced

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

[sr #110530] Missing #include <string.h> in AC_FUNC_MEMCMP


From: Ryan Schmidt
Subject: [sr #110530] Missing #include <string.h> in AC_FUNC_MEMCMP
Date: Mon, 30 Aug 2021 07:25:04 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15

Follow-up Comment #3, sr #110530 (project autoconf):

Hi Zack, thanks for the response.

1. Unfortunately you don't have a choice about the matter. Autoconf will
experience the effects of -Werror=implicit-function-declaration when using
clang from Xcode 12 or later because that is its default behavior. Apple had
to make this change in order to support Apple Silicon processors so disabling
this is not an option. I manually add -Werror=implicit-function-declaration to
CFLAGS when building all software on my system because I have not upgraded to
Xcode 12 yet but I want to experience and participate in fixing the problems
that result from this.

In any case, using -Werror=implicit-function-declaration is not causing the
problem that HAVE_STRING_H is not defined; it's only making it obvious that
this problem exists so now we can fix it.

2. I now think this is a bug in how dfu-programmer is using autoconf and have
reported it to them:

https://github.com/dfu-programmer/dfu-programmer/issues/61

Something about the way that they are checking for libusb seems to be causing
subsequent invocations of AC_HEADER_STDC and AC_FUNC_MEMCMP not to work
correctly. A simple fix was to move the invocations of AC_HEADER_STDC and
AC_FUNC_MEMCMP above the libusb checks.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110530>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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