Re: Need clarification on compilation errors in PG 16.2
От | Daniel Gustafsson |
---|---|
Тема | Re: Need clarification on compilation errors in PG 16.2 |
Дата | |
Msg-id | 2EF8C923-CAB0-4905-931F-FBF783B7D9AB@yesql.se обсуждение исходный текст |
Ответ на | Need clarification on compilation errors in PG 16.2 (Pradeep Kumar <spradeepkumar29@gmail.com>) |
Ответы |
Re: Need clarification on compilation errors in PG 16.2
|
Список | pgsql-hackers |
> On 28 May 2024, at 07:37, Pradeep Kumar <spradeepkumar29@gmail.com> 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 functiondeclarations [-Wimplicit-function-declaration] > (void) memset_s(buf, len, 0, len); > ^ 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? > then I changed the function memset_s(buf, len, 0, len) to memset(buf, 0, len) and it's working. need a clarification onthis? memset_s and memset have the same prototype, and are functionally equivalent, but memset_s have certain properties which are required in this codepath. -- Daniel Gustafsson
В списке pgsql-hackers по дате отправления: