Configuring OpenSSH to work in BSD/OS 4.3.X
This script works for BSD/OS
CC=/usr/bin/gcc CFLAGS="-g -O3 -Wall -mcpu=i686" ./configure --prefix=/usr/contrib --sysconfdir=/usr/contrib/etc --localstatedir=/var --infodir=/usr/share/info\
--mandir=/usr/share/man --with-low-memory --with-elf --with-ncurses\
--with-ssl=/usr/contrib\
--with-ssl-dir=/usr/contrib\
--with-openssl=/usr/contrib --with-bsd-auth
I further 16 May 2006 found a patch on the BSD/OS CD-ROM:
Index: openbsd-compat/mktemp.c
===================================================================
RCS file: /master/core_contrib/openssh/openbsd-compat/mktemp.c,v
retrieving revision 1.5
diff -c -r1.5 mktemp.c
** openbsd-compat/mktemp.c 16 Sep 2003 17:30:32 -0000 1.5
--- openbsd-compat/mktemp.c 17 Sep 2003 22:18:50 -0000
**************
** 55,60 ****
--- 55,61 ----
return (_gettemp(path, &fd, 0, slen) ? fd : -1);
}
+ #ifndef __bsdi__
int
mkstemp(path)
char path;
**************
** 63,68 ****
--- 64,70 ----
return (_gettemp(path, &fd, 0, 0) ? fd : -1);
}
+ #endif
char
mkdtemp(path)
Index: configure
===================================================================
RCS file: /master/core_contrib/openssh/configure,v
retrieving revision 1.9
diff -c -r1.9 configure
** configure 16 Sep 2003 17:30:18 -0000 1.9
--- configure 17 Sep 2003 22:38:56 -0000
**************
** 14586,14592 ****
cat conftest.$ac_ext >&5
echo "$as_me:14587: result: no" >&5
echo "${ECHO_T}no" >&6
! K5LIBS="-lkrb5 -lk5crypto -lcom_err"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
--- 14586,14592 ----
cat conftest.$ac_ext >&5
echo "$as_me:14587: result: no" >&5
echo "${ECHO_T}no" >&6
! K5LIBS="-lkrb5 -lk5crypto -lcom_err -
lprofile"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
CC=/usr/bin/gcc CFLAGS="-g -O3 -Wall -mcpu=i686" ./configure --prefix=/usr/contrib --sysconfdir=/usr/contrib/etc --localstatedir=/var --infodir=/usr/share/info\
--mandir=/usr/share/man --with-low-memory --with-elf --with-ncurses\
--with-ssl=/usr/contrib\
--with-ssl-dir=/usr/contrib\
--with-openssl=/usr/contrib --with-bsd-auth
I further 16 May 2006 found a patch on the BSD/OS CD-ROM:
Index: openbsd-compat/mktemp.c
===================================================================
RCS file: /master/core_contrib/openssh/openbsd-compat/mktemp.c,v
retrieving revision 1.5
diff -c -r1.5 mktemp.c
** openbsd-compat/mktemp.c 16 Sep 2003 17:30:32 -0000 1.5
--- openbsd-compat/mktemp.c 17 Sep 2003 22:18:50 -0000
**************
** 55,60 ****
--- 55,61 ----
return (_gettemp(path, &fd, 0, slen) ? fd : -1);
}
+ #ifndef __bsdi__
int
mkstemp(path)
char path;
**************
** 63,68 ****
--- 64,70 ----
return (_gettemp(path, &fd, 0, 0) ? fd : -1);
}
+ #endif
char
mkdtemp(path)
Index: configure
===================================================================
RCS file: /master/core_contrib/openssh/configure,v
retrieving revision 1.9
diff -c -r1.9 configure
** configure 16 Sep 2003 17:30:18 -0000 1.9
--- configure 17 Sep 2003 22:38:56 -0000
**************
** 14586,14592 ****
cat conftest.$ac_ext >&5
echo "$as_me:14587: result: no" >&5
echo "${ECHO_T}no" >&6
! K5LIBS="-lkrb5 -lk5crypto -lcom_err"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
--- 14586,14592 ----
cat conftest.$ac_ext >&5
echo "$as_me:14587: result: no" >&5
echo "${ECHO_T}no" >&6
! K5LIBS="-lkrb5 -lk5crypto -lcom_err -
lprofile"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
Comments
Display comments as Linear | Threaded