Hi,
I found out that for using memset() library is not referred from
"/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/string.h"
, it referred from
"/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/secure/_string.h",
in that file didn't defined the memset_s()
Hello Tom,
>That's correct for recent versions of macOS. I see you are
>building against a recent SDK:
>
>/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/string.h
>
>but I wonder if maybe the actual OS version is back-rev?
Currently Im using "MacOSX14.4.sdk" , path is
"/Libra
> On 28 May 2024, at 22:51, Tom Lane wrote:
>
> Pradeep Kumar writes:
>> Yes it was defined in "pg_config.h"
>> /* Define to 1 if you have the `memset_s' function. */
>> #define HAVE_MEMSET_S 1
>
> That's correct for recent versions of macOS. I see you are
> building against a recent SDK:
>
>
Pradeep Kumar writes:
> Yes it was defined in "pg_config.h"
> /* Define to 1 if you have the `memset_s' function. */
> #define HAVE_MEMSET_S 1
That's correct for recent versions of macOS. I see you are
building against a recent SDK:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/in
Hi Long,
>In fact, whether the HAVE_MEMSET_S macro is defined determines whether the
implementation
>of the explicit_bzero() function calls memset_s() or memset(). This macro
is undefined by default
>in pg_config.h, so check to see if your build environment has a
HAVE_MEMSET_S macro defined.
Yes
Hi,
>This codepath would only be reached if the buildsystem determined that
memset_s
>was available so something is fairly wrong here. Did you change any
builfiles
>after running configure? Re-install or upgrade XCode after running
configure?
I didn't touch any of the buildfiles , even didn't t
> On 28 May 2024, at 07:37, Pradeep Kumar wrote:
This requires more information to be shared in order to figure out what could
be happening.
> ```
> explicit_bzero.c:22:9: error: call to undeclared function 'memset_s'; ISO C99
> and later do not support implicit function declarations
> [-Wimp