Subject: bug#30106: Loading file /sources/emacs/lisp/emacs-lisp/ert.elc failed to provide feature `mod-test'

From: Jean Louis <[email-masked]>
Date: Mon, 15 Jan 2018 01:12:28 +0300

On Sun, Jan 14, 2018 at 09:44:40PM +0200, Eli Zaretskii wrote:
> > Date: Sun, 14 Jan 2018 20:47:48 +0300
> > From: Jean Louis <[email-masked]>
> > Cc: [email-masked]
> > 
> > ./configure --prefix=/package/text/emacs-27.0.50/ --with-mailutils --without-imagemagick --without-pop --with-x-toolkit=lucid --with-modules
> 
> Does src/config.h have this line:
> 
>   #define HAVE_MODULES 1

Output of grep MODULES src/config.h:

#define EMACS_CONFIG_FEATURES "XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES LCMS2"
#define HAVE_MODULES 1
#define MODULES_SUFFIX ".so"

> And does src/Makefile have this line:
> 
>   MODULES_OBJ = dynlib.o emacs-module.o

Output of grep MODULES Makefile:

LIBMODULES = -ldl
MODULES_OBJ = dynlib.o emacs-module.o
	eval.o floatfns.o fns.o font.o print.o lread.o $(MODULES_OBJ) \
   $(NOTIFY_LIBS) $(LIB_MATH) $(LIBZ) $(LIBMODULES) $(LIBSYSTEMD_LIBS) \

Jean