[PATCH] Fix the undefined sudo_debug_exit_ssize_t_v1 symbol error in sudoers plugin (versions > 1.8.15)

Guido Trentalancia <[email protected]>
Newsgroups gmane.comp.tools.sudo.devel
Message-ID <[email protected]>
In versions greater than 1.8.15, the shared object sudoers.so (plugin)
should link sudo_debug.c in order to avoid the following missing symbol
error on calls to debug_return_ssize_t()->sudo_debug_exit_ssize_t():

sudo: symbol lookup error: /usr/libexec/sudo/sudoers.so: undefined symbol: sudo_debug_exit_ssize_t_v1

Signed-off-by: Guido Trentalancia <[email protected]>
---
 plugins/sudoers/Makefile.in |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff -pru sudo-1.8.17/plugins/sudoers/Makefile.in sudo-1.8.17-plugin_should_link_sudo_debug/plugins/sudoers/Makefile.in
--- sudo-1.8.17/plugins/sudoers/Makefile.in	2016-06-18 04:44:21.000000000 +0200
+++ sudo-1.8.17-plugin_should_link_sudo_debug/plugins/sudoers/Makefile.in	2016-07-08 12:14:20.687910468 +0200
@@ -154,7 +154,7 @@ SUDOERS_OBJS = $(AUTH_OBJS) boottime.lo
 	       gc.lo goodpath.lo group_plugin.lo interfaces.lo iolog.lo \
 	       iolog_path.lo locale.lo logging.lo logwrap.lo parse.lo \
 	       policy.lo prompt.lo set_perms.lo sudo_nss.lo sudoers.lo \
-	       timestamp.lo @SUDOERS_OBJS@
+	       sudo_debug.lo timestamp.lo @SUDOERS_OBJS@
 
 VISUDO_OBJS = editor.o find_path.o goodpath.o locale.o sudo_printf.o visudo.o \
 	      visudo_json.o
@@ -991,6 +991,13 @@ sudo_auth.lo: $(authdir)/sudo_auth.c $(d
               $(srcdir)/sudoers_debug.h $(top_builddir)/config.h \
               $(top_builddir)/pathnames.h
 	$(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(authdir)/sudo_auth.c
+sudo_debug.lo: $(top_builddir)/lib/util/sudo_debug.c $(incdir)/compat/stdbool.h \
+               $(incdir)/sudo_compat.h $(incdir)/sudo_conf.h \
+               $(incdir)/sudo_debug.h $(incdir)/sudo_fatal.h \
+               $(incdir)/sudo_gettext.h $(incdir)/sudo_plugin.h \
+               $(incdir)/sudo_queue.h $(incdir)/sudo_util.h \
+               $(top_builddir)/config.h
+	$(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(top_builddir)/lib/util/sudo_debug.c
 sudo_nss.lo: $(srcdir)/sudo_nss.c $(devdir)/def_data.h \
              $(incdir)/compat/stdbool.h $(incdir)/sudo_compat.h \
              $(incdir)/sudo_conf.h $(incdir)/sudo_debug.h \
____________________________________________________________
sudo-workers mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-workers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.