Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2007 13:56:07 +0100 (CET)
From:      Ed Schouten <ed@fxq.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/110386: [net/openldap*] Use <termios.h> when available
Message-ID:  <20070316125607.C93D61CD5C@palm.hoeg.nl>
Resent-Message-ID: <200703161300.l2GD0QLd039513@freefall.freebsd.org>

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

>Number:         110386
>Category:       ports
>Synopsis:       [net/openldap*] Use <termios.h> when available
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 16 13:00:26 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ed Schouten
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD palm.hoeg.nl 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Feb 11 22:32:09 CET 2007 root@palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386
>Description:
OpenLDAP's configure scripts see if <termios.h> and <sgtty.h> are
available. For some reason, no checks for HAVE_TERMIOS_H are done in the
sourcecode, HAVE_POSIX_TERMIOS is done instead. This causes OpenLDAP to
use <sgtty.h>, which breaks when a kernel without COMPAT_43TTY is used.
>How-To-Repeat:
>Fix:
Place the following file in net/openldap23-server/files/ and
net/openldap24-server/files/:

--- include/ac/termios.h	Tue Jan  2 22:43:47 2007
+++ include/ac/termios.h	Fri Mar 16 13:48:00 2007
@@ -17,7 +17,7 @@
 #ifndef _AC_TERMIOS_H
 #define _AC_TERMIOS_H
 
-#ifdef HAVE_POSIX_TERMIOS
+#ifdef HAVE_TERMIOS_H
 #include <termios.h>
 
 #ifdef GCWINSZ_IN_SYS_IOCTL
--- libraries/liblutil/getpass.c	Tue Jan  2 22:43:52 2007
+++ libraries/liblutil/getpass.c	Fri Mar 16 13:47:52 2007
@@ -60,7 +60,7 @@
 char *
 lutil_getpass( const char *prompt )
 {
-#if !defined(HAVE_POSIX_TERMIOS) && !defined(HAVE_SGTTY_H)
+#if !defined(HAVE_TERMIOS_H) && !defined(HAVE_SGTTY_H)
 	static char buf[256];
 	int i, c;
 
>Release-Note:
>Audit-Trail:
>Unformatted:



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