Subject: bug#66774: master branch profiler.c: In function ‘syms_of_profiler_for_pdumper’: profiler.c:636:7: error: ‘memory’ undeclared (first use in this function)

From: Jim Dupont <[email-masked]>
Date: Fri, 27 Oct 2023 13:41:22 -0400

I just manually defined the flag in the file profiler.c that was needed

On Fri, Oct 27, 2023, 13:39 Eli Zaretskii <[email-masked]> wrote:

> > From: Jim Dupont <[email-masked]>
> > Date: Fri, 27 Oct 2023 13:29:57 -0400
> > Cc: [email-masked]
> >
> > so turning that flag on resulted in the compile working but linking had
> this
>
> What do you mean by "turning that flag on"? what did you do, exactly?
>
> > ```/usr/bin/ld: profiler.o: in function `Fprofiler_memory_log':
>
> > /mnt/data1/2023/10/23/emacs/src/profiler.c:514: undefined reference to
> `export_log'
> > /usr/bin/ld: profiler.o: in function `malloc_probe':
>
> > /mnt/data1/2023/10/23/emacs/src/profiler.c:524: undefined reference to
> `add_sample'
> > collect2: error: ld returned 1 exit status
> > ```
> > here are my last 2 config logs let me know if you need anything else.
> >
> https://github.com/jmikedupont2/emacs/blob/bugreport/profile/var/log/build/config.log
> > and
> >
> https://github.com/jmikedupont2/emacs/blob/bugreport/profile/var/log/build/config.log~
>
> Please post the logs here, I cannot use GitHub.
>