Call for testing: OpenSSH-6.0

Damien Miller djm at mindrot.org
Fri Mar 9 10:46:36 EST 2012


On Fri, 9 Mar 2012, Damien Miller wrote:

> On Mon, 20 Feb 2012, Dag-Erling Sm?rgrav wrote:
> 
> > openssh-SNAP-20120221 fails to build on FreeBSD 9 and 10: the configure
> > script incorrectly concludes that FreeBSD doesn't have openpty(3), and
> > bsd-openpty.c doesn't build on FreeBSD.  See http://www.des.no/openssh/
> 
> So, config.log says:
> 
> > configure:9158: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wuninitialized 
> > -Wsign-compare -Wformat-security -Wno-pointer-sign -fno-strict-aliasing >
> > -D_FORTIFY_SOURCE=2 -fno-builtin-memset -fstack-protector-all >
> > -fstack-protector-all conftest.c -lz  >&5
> > /tmp//ccnfm8sv.o: In function `main':
> > /home/des/src/openssh/conftest.c:137: undefined reference to `openpty'
> 
> Does FreeBSD stick openpty in -lutil or somesuch?

According to the manpages it does. Could you please try this?

Index: configure.ac
===================================================================
RCS file: /var/cvs/openssh/configure.ac,v
retrieving revision 1.487
diff -u -p -r1.487 configure.ac
--- configure.ac	23 Feb 2012 23:40:43 -0000	1.487
+++ configure.ac	8 Mar 2012 23:45:57 -0000
@@ -1127,7 +1127,11 @@ dnl    Checks for libutil functions
 AC_CHECK_HEADERS([libutil.h])
 AC_SEARCH_LIBS([login], [util bsd], [AC_DEFINE([HAVE_LOGIN], [1],
 	[Define if your libraries define login()])])
-AC_CHECK_FUNCS([fmt_scaled logout updwtmp logwtmp])
+AC_SEARCH_LIBS([logout], [util])
+AC_SEARCH_LIBS([updwtmp], [util])
+AC_SEARCH_LIBS([logwtmp], [util])
+AC_SEARCH_LIBS([fmt_scaled], [util])
+AC_SEARCH_LIBS([openpty], [util])
 
 AC_FUNC_STRFTIME
 
@@ -1507,7 +1511,6 @@ AC_CHECK_FUNCS([ \
 	nsleep \
 	ogetaddrinfo \
 	openlog_r \
-	openpty \
 	poll \
 	prctl \
 	pstat \


More information about the openssh-unix-dev mailing list