Re: some problem explicit_bzero with building PostgreSQL on linux

From: Dimitry Markman <dmarkman(at)mathworks(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Bhavya Dabas <bdabas(at)mathworks(dot)com>
Subject: Re: some problem explicit_bzero with building PostgreSQL on linux
Date: 2023-03-07 16:06:00
Message-ID: MN2PR05MB63975EE919A525ECA310D39AC4B79@MN2PR05MB6397.namprd05.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Tom, thanks a lot
Adding explicit_bzero.o did the job
Thanks a lot

dm

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Date: Tuesday, March 7, 2023 at 9:14 AM
To: Dimitry Markman <dmarkman(at)mathworks(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Bhavya Dabas <bdabas(at)mathworks(dot)com>
Subject: Re: some problem explicit_bzero with building PostgreSQL on linux
Dimitry Markman <dmarkman(at)mathworks(dot)com> writes:
> how we can guaranty that if HAVE_EXPLICIT_BZERO is not defined then
> explicit_bzero function implemented in port/explicit_bzero.c will be used (just like in Darwin or windows)

Did you remember to add explicit_bzero.o to LIBOBJS in
the configured Makefile.global?

If it still doesn't work, then evidently your toolchain is selecting
the system's built-in definition of explicit_bzero over the one in
src/port/. This is not terribly surprising given that there has to be
some amount of compiler magic involved in that function. You may have
to resort to actually building Postgres on a platform without
explicit_bzero.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Borisov 2023-03-07 16:26:19 Re: POC: Lock updated tuples in tuple_update() and tuple_delete()
Previous Message Drouvot, Bertrand 2023-03-07 15:52:37 Re: Track IO times in pg_stat_io