At least on GNU/Linux Mint the build of Emacs from master is broken:
[...]
CC lastfile.o
image.c: In function ‘svg_load_image’:
image.c:12358:12: warning: implicit declaration of function
‘rsvg_handle_get_pixbuf_and_error’; did you mean
‘rsvg_handle_get_pixbuf_sub’? [-Wimplicit-function-declaration]
12358 | pixbuf = rsvg_handle_get_pixbuf_and_error (rsvg_handle, &err);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| rsvg_handle_get_pixbuf_sub
image.c:12358:10: warning: assignment to ‘GdkPixbuf *’ {aka ‘struct
_GdkPixbuf *’} from ‘int’ makes pointer from integer without a cast
[-Wint-conversion]
12358 | pixbuf = rsvg_handle_get_pixbuf_and_error (rsvg_handle, &err);
| ^
CCLD temacs
GEN ../etc/DOC
/usr/bin/ld: image.o: in function `svg_load_image':
image.c:(.text+0x7d88): undefined reference to
`rsvg_handle_get_pixbuf_and_error'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:745: temacs] Errore 1
make[2]: uscita dalla directory «/tmp/emacs-master/src»
make[1]: *** [Makefile:554: src] Errore 2
make[1]: uscita dalla directory «/tmp/emacs-master»
make[1]: ingresso nella directory «/tmp/emacs-master»
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
*** to further investigate the problem
***
make[1]: *** [Makefile:418: advice-on-failure] Errore 2
make[1]: uscita dalla directory «/tmp/emacs-master»
make: *** [Makefile:374: all] Errore 2
Error: Failure running MAKE
I always do a clean build from
https://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-master.tar.gz.
Ciao,
Angelo.