I downloaded the Openssh-2.3.0p1 file and ran configure only to have it fail reporting the lack of libz. I found that configure was failing beacuse the test program did not include the libtinfo and libm which are needed to resolve references in libprot. I made changes to the configure script to add those libraries for SCO Openserver and then tried to compile the programs only to run into another problem with the shadow stuff. It turns out that even though Openserver has a shadow file, the protected password database stuff seems to work fine in the current code but if you do not define DISABLE-SHADOW, conflicts arise... So I made another change to configure to DISABLE_SHADOW if HAVE_SCO_PROTECTED_PW is defined. I have tested this on Openserver 5.0.5 and 5.0.6. Here is the universal patch fo configure to allow it to work with openserver. --- configure Sun Nov 5 21:25:18 2000 +++ /configure Thu Nov 9 14:18:21 2000 @@ -1685,7 +1685,7 @@ LDFLAGS="$LDFLAGS -L/usr/local/lib" MANTYPE='$(CATMAN)' mansubdir=cat - LIBS="$LIBS -lgen -lsocket -los -lprot -lx" + LIBS="$LIBS -lgen -lsocket -los -lprot -lx -ltinfo -lm" no_dev_ptmx=1 RANLIB=true cat >> confdefs.h <<\EOF @@ -1703,11 +1703,12 @@ LDFLAGS="$LDFLAGS -L/usr/local/lib" MANTYPE='$(CATMAN)' mansubdir=cat - LIBS="$LIBS -lgen -lsocket -lprot -lx" + LIBS="$LIBS -lgen -lsocket -lprot -lx -ltinfo -lm" no_dev_ptmx=1 rsh_path="/usr/bin/rcmd" cat >> confdefs.h <<\EOF #define HAVE_SCO_PROTECTED_PW 1 +#define DISABLE_SHADOW 1 EOF ;; -- Phillip P. Porch <root at sco.theporch.com> NIC:PP1573 finger for http://www.theporch.com UTM - 16 514546E 3994565N GnuPG key
Can we get this patch again configure.in instead? Thanks. On Thu, 9 Nov 2000, Phillip Porch wrote:> I downloaded the Openssh-2.3.0p1 file and ran configure only to have it > fail reporting the lack of libz. I found that configure was failing > beacuse the test program did not include the libtinfo and libm which are > needed to resolve references in libprot. I made changes to the configure > script to add those libraries for SCO Openserver and then tried to compile > the programs only to run into another problem with the shadow stuff. It > turns out that even though Openserver has a shadow file, the protected > password database stuff seems to work fine in the current code but if you > do not define DISABLE-SHADOW, conflicts arise... So I made another change > to configure to DISABLE_SHADOW if HAVE_SCO_PROTECTED_PW is defined. I have > tested this on Openserver 5.0.5 and 5.0.6. Here is the universal patch fo > configure to allow it to work with openserver. > > --- configure Sun Nov 5 21:25:18 2000 > +++ /configure Thu Nov 9 14:18:21 2000 > @@ -1685,7 +1685,7 @@ > LDFLAGS="$LDFLAGS -L/usr/local/lib" > MANTYPE='$(CATMAN)' > mansubdir=cat > - LIBS="$LIBS -lgen -lsocket -los -lprot -lx" > + LIBS="$LIBS -lgen -lsocket -los -lprot -lx -ltinfo -lm" > no_dev_ptmx=1 > RANLIB=true > cat >> confdefs.h <<\EOF > @@ -1703,11 +1703,12 @@ > LDFLAGS="$LDFLAGS -L/usr/local/lib" > MANTYPE='$(CATMAN)' > mansubdir=cat > - LIBS="$LIBS -lgen -lsocket -lprot -lx" > + LIBS="$LIBS -lgen -lsocket -lprot -lx -ltinfo -lm" > no_dev_ptmx=1 > rsh_path="/usr/bin/rcmd" > cat >> confdefs.h <<\EOF > #define HAVE_SCO_PROTECTED_PW 1 > +#define DISABLE_SHADOW 1 > EOF > > ;; > > -- > Phillip P. Porch <root at sco.theporch.com> NIC:PP1573 finger for > http://www.theporch.com UTM - 16 514546E 3994565N GnuPG key > >
On Thu, 9 Nov 2000, Ben Lindstrom wrote:> Subject: Re: SCO Openserver Patch > > > Can we get this patch again configure.in instead? > > Thanks. >OK here it is: --- configure.in Sun Nov 5 03:08:45 2000 +++ /configure.in Thu Nov 9 21:26:14 2000 @@ -204,22 +204,24 @@ LDFLAGS="$LDFLAGS -L/usr/local/lib" MANTYPE='$(CATMAN)' mansubdir=cat - LIBS="$LIBS -lgen -lsocket -los -lprot -lx" + LIBS="$LIBS -lgen -lsocket -los -lprot -lx -ltinfo -lm" no_dev_ptmx=1 RANLIB=true AC_DEFINE(BROKEN_SYS_TERMIO_H) rsh_path="/usr/bin/rcmd" AC_DEFINE(HAVE_SCO_PROTECTED_PW) + AC_DEFINE(DISABLE_SHADOW) ;; *-*-sco3.2v5*) CFLAGS="$CFLAGS -I/usr/local/include" LDFLAGS="$LDFLAGS -L/usr/local/lib" MANTYPE='$(CATMAN)' mansubdir=cat - LIBS="$LIBS -lgen -lsocket -lprot -lx" + LIBS="$LIBS -lgen -lsocket -lprot -lx -ltinfo -lm" no_dev_ptmx=1 rsh_path="/usr/bin/rcmd" AC_DEFINE(HAVE_SCO_PROTECTED_PW) + AC_DEFINE(DISABLE_SHADOW) ;; *-dec-osf*) # This is untested -- Phillip P. Porch <root at sco.theporch.com> NIC:PP1573 finger for http://www.theporch.com UTM - 16 514546E 3994565N GnuPG key