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

Previous Next

Package: emacs;

Reported by: Jim Dupont <jmikedupont2 <at> gmail.com>

Date: Fri, 27 Oct 2023 14:42:01 UTC

Severity: normal

Tags: moreinfo

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jim Dupont <jmikedupont2 <at> gmail.com>
Cc: 66774 <at> debbugs.gnu.org
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)
Date: Fri, 27 Oct 2023 20:47:58 +0300
> From: Jim Dupont <jmikedupont2 <at> gmail.com>
> Date: Fri, 27 Oct 2023 13:29:57 -0400
> Cc: 66774 <at> debbugs.gnu.org
> 
> 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
> ```

Fixed.




This bug report was last modified 1 year and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.