Bug 180262 - security/sudo 1.8.7 /usr/local/libexec/sudo/sudoers.so: Undefined symbol "_" on Ctrl+c
Summary: security/sudo 1.8.7 /usr/local/libexec/sudo/sudoers.so: Undefined symbol "_" ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wesley Shields
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-04 16:20 UTC by Andrei Brezan
Modified: 2013-07-05 19:50 UTC (History)
0 users

See Also:


Attachments
patch-plugins__sudoers__audit.c (288 bytes, text/x-csrc; charset=US-ASCII)
2013-07-05 12:33 UTC, Christophe Juniet
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Brezan 2013-07-04 16:20:00 UTC
 % sudo ls
Password:
/usr/local/libexec/sudo/sudoers.so: Undefined symbol "_"
 % sudo -V
Sudo version 1.8.7
Sudoers policy plugin version 1.8.7
Sudoers file grammar version 43
Sudoers I/O plugin version 1.8.7

Did not happen with the previous version 1.8.6p8.

How-To-Repeat: Issue sudo, don't type any password, try to cancel (ctrl+c)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-07-05 09:27:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wxs

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Christophe Juniet 2013-07-05 12:33:35 UTC
The problem seems to be a missing #include "gettext.h" in audit.c line
39 when using BSM audit.
Please find a patch in attachment ready to be placed in
ports/security/sudo/files.
Comment 3 Wesley Shields freebsd_committer freebsd_triage 2013-07-05 19:46:43 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-07-05 19:46:44 UTC
Author: wxs
Date: Fri Jul  5 18:46:33 2013
New Revision: 322347
URL: http://svnweb.freebsd.org/changeset/ports/322347

Log:
  Fix missing include.
  
  This was causing the "Undefined symbol '_'" message when hitting ^C or
  entering an incorect command.
  
  PR:		ports/180262
  Submitted by:	Christophe Juniet <c.juniet@gmail.com>

Added:
  head/security/sudo/files/patch-plugins__sudoers__audit.c   (contents, props changed)
Modified:
  head/security/sudo/Makefile

Modified: head/security/sudo/Makefile
==============================================================================
--- head/security/sudo/Makefile	Fri Jul  5 18:44:06 2013	(r322346)
+++ head/security/sudo/Makefile	Fri Jul  5 18:46:33 2013	(r322347)
@@ -3,6 +3,7 @@
 
 PORTNAME=	sudo
 DISTVERSION=	1.8.7
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	${MASTER_SITE_SUDO}
 

Added: head/security/sudo/files/patch-plugins__sudoers__audit.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/sudo/files/patch-plugins__sudoers__audit.c	Fri Jul  5 18:46:33 2013	(r322347)
@@ -0,0 +1,10 @@
+--- ./plugins/sudoers/audit.c.orig	2013-06-04 11:48:28.000000000 +0200
++++ ./plugins/sudoers/audit.c	2013-07-05 13:10:01.000000000 +0200
+@@ -39,6 +39,7 @@
+ 
+ #ifdef HAVE_BSM_AUDIT
+ # include "bsm_audit.h"
++# include "gettext.h"
+ #endif
+ #ifdef HAVE_LINUX_AUDIT
+ # include "linux_audit.h"
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"