It was broken by latest changes to w32image.c.
* src/emacs.c (main): Call 'syms_of_w32image' and
'globals_of_w32image' only if native image APIs are enabled.
(Bug#71412)
(cherry picked from commit
b4b4c0fec4c52a8f9b067d1cca53fa8ddbf03799)
syms_of_fringe ();
syms_of_image ();
#ifdef HAVE_NTGUI
+# if HAVE_NATIVE_IMAGE_API
syms_of_w32image ();
+# endif
#endif /* HAVE_NTGUI */
#endif /* HAVE_WINDOW_SYSTEM */
#ifdef HAVE_X_WINDOWS
globals_of_w32font ();
globals_of_w32fns ();
globals_of_w32menu ();
+# if HAVE_NATIVE_IMAGE_API
globals_of_w32image ();
+# endif
#endif /* HAVE_NTGUI */
#if defined WINDOWSNT || defined HAVE_NTGUI