Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2002 21:26:32 -0600 (CST)
From:      "Scot W. Hetzel" <hetzels@westbend.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        Mark Hesselink <m.hesselink@student.utwente.nl>
Subject:   ports/34149: security/cyrus-sasl: Add missing headers to gssapi.c
Message-ID:  <200201220326.g0M3QWi52976@mail.westbend.net>

next in thread | raw e-mail | index | archive | help

>Number:         34149
>Category:       ports
>Synopsis:       security/cyrus-sasl: Add missing headers to gssapi.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 21 19:30:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Scot W. Hetzel
>Release:        FreeBSD 4.5-RC i386
>Organization:
West Bend Internet
>Environment:
System: FreeBSD wbiW009.westbend.net 4.5-RC FreeBSD 4.5-RC #0: Tue Jan 15 12:14:35 CST 2002 root@wbiW009.westbend.net:/usr/obj/usr/src/sys/GENERIC-SMP i386


>Description:

	When KRB5_HOME is defined, the gssapi plugin fails compilng with
	the following error:

	cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I/usr/include
	-I/usr/include/openssl -I/usr/include -I/usr/include -Wall -W -O
	-march=pentium -pipe -c gssapi.c  -fPIC -DPIC -o .libs/gssapi.lo
	gssapi.c: In function `sasl_server_plug_init':
	gssapi.c:903: warning: implicit declaration of function `access'
	gssapi.c:903: `R_OK' undeclared (first use in this function)
	gssapi.c:903: (Each undeclared identifier is reported only once
	gssapi.c:903: for each function it appears in.)
	gssapi.c:904: `errno' undeclared (first use in this function)
	gssapi.c:909: warning: passing arg 1 of `gsskrb5_register_acceptor_identity'
	discards qualifiers from pointer target type

	This is caused by missing headers (unistd.h & errno.h).

>How-To-Repeat:

	Build cyrus-sasl w/KRB5_HOME defined to location of Kerberos 5.

>Fix:

	New files:
	    files/patch-plugins::gssapi.c


Index: files/patch-plugins::gssapi.c
===================================================================
RCS file: files/patch-plugins::gssapi.c
diff -N files/patch-plugins::gssapi.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-plugins::gssapi.c	22 Jan 2002 03:04:00 -0000
@@ -0,0 +1,15 @@
+--- plugins/gssapi.c.orig	Fri Mar  9 23:56:46 2001
++++ plugins/gssapi.c	Mon Jan 21 21:03:32 2002
+@@ -71,6 +71,12 @@
+ #include <saslutil.h>
+ #include <saslplug.h>
+ 
++#ifdef HAVE_UNISTD_H
++#include <unistd.h>
++#endif
++
++#include <errno.h>
++
+ #ifdef WIN32
+ /* This must be after sasl.h */
+ # include "saslgssapi.h"
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201220326.g0M3QWi52976>