Re: Need clarification on compilation errors in PG 16.2

From: Pradeep Kumar <spradeepkumar29(at)gmail(dot)com>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Need clarification on compilation errors in PG 16.2
Date: 2024-05-28 06:46:20
Message-ID: CAJ4xhPnnVwYvM=VXJce2DWLTCujcnMVC1LV9FkftObF3f4TiYg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 touch the PG's source
code and didn't reinstall or upgrade Xcode. Just configure the PG and gave
'make' and I got this error.

>memset_s and memset have the same prototype, and are functionally
equivalent,
>but memset_s have certain properties which are required in this codepath.

Ok

Thanks and regards

On Tue, May 28, 2024 at 11:52 AM Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:

> > On 28 May 2024, at 07:37, Pradeep Kumar <spradeepkumar29(at)gmail(dot)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 function declarations
> [-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 on this?
>
> 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
>
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pradeep Kumar 2024-05-28 07:10:47 Re: Need clarification on compilation errors in PG 16.2
Previous Message Daniel Gustafsson 2024-05-28 06:22:33 Re: Need clarification on compilation errors in PG 16.2