From: | Pradeep Kumar <spradeepkumar29(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Need clarification on compilation errors in PG 16.2 |
Date: | 2024-05-28 05:37:08 |
Message-ID: | CAJ4xhPmqZuYb2ydsKqkfm7wSnmVMD2cqQ+y51qhTWkb-SfVG-w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi ,
While we try to install PG 16.2 from the source code in macbook we getting
this following errors
```
*explicit_bzero.c:22:9: error: call to undeclared function 'memset_s'; ISO
C99 and later do not support implicit function declarations
[-Wimplicit-function-declaration] (void) memset_s(buf, len, 0,
len); ^explicit_bzero.c:22:9: note: did you mean
'memset'?/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include/string.h:74:7:
note: 'memset' declared herevoid memset(void __b, int __c, size_t
__len); ^1 error generated.make[2]: *** [explicit_bzero.o] Error
1make[2]: *** Waiting for unfinished jobs....make[1]: ***
[all-port-recurse] Error 2make: *** [all-src-recurse] Error 2*
```
then I changed the function memset_s(buf, len, 0, len) to memset(buf, 0,
len) and it's working. need a clarification on this?
Thanks and regards
Pradeep
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Pyhalov | 2024-05-28 05:45:04 | Re: Partial aggregates pushdown |
Previous Message | Bruce Momjian | 2024-05-28 04:20:21 | Re: First draft of PG 17 release notes |