Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jan 2002 09:42:10 -0800
From:      Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
To:        Chris Shenton <chris@Shenton.Org>
Cc:        Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>, "Alexander N. Kabaev" <kabaev@bellatlantic.net>, freebsd-security@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG, green@FreeBSD.ORG
Subject:   Re: SSH TCP forwarding: works with v1, not with v2 ssh 
Message-ID:  <200201091742.g09HgKb89091@cwsys.cwsent.com>
In-Reply-To: Your message of "09 Jan 2002 11:43:09 EST." <87y9j7qxuq.fsf@thanatos.shenton.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <87y9j7qxuq.fsf@thanatos.shenton.org>, Chris Shenton writes:
> > In message <3C3A4338.80003@bellatlantic.net>, "Alexander N. Kabaev" 
> > writes:
> > >   Could you please try the following patch from OpenBSD CVS and post 
> > > your results here? Who knows, 
> > > maybe release engineers will consider including it into upcoming 
> > > 4.5-RELEASE if it fixes problem
> > > for you :)
> > > http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/channels.c.diff?r1=
> 1.10
> > > 9.2.1&r2=1.109.2.2 
> > 
> > The patch fixes the problem for me.
> 
> I feel like a newbie, but I can't tell how to rebuild just the openssh
> contributed src, rather than the entire OS.  Doing a basic make in the
> dir fails:
> 
>   cd /usr/src/crypto/openssh/
>   make -k 
>   ===> lib
>   "Makefile", line 21: Malformed conditional ((${KERBEROS:L} == "yes"))
>   "Makefile", line 21: Missing dependency operator
>   "Makefile", line 23: Malformed conditional ((${AFS:L} == "yes"))
>   "Makefile", line 23: Missing dependency operator
>   "Makefile", line 26: if-less endif
>   "Makefile", line 26: Need an operator
>   "Makefile", line 27: if-less endif
>   "Makefile", line 27: Need an operator
>   make: fatal errors encountered -- cannot continue
>   *** Error code 1 (continuing)
> 
>   Compilation finished at Wed Jan  9 11:41:53
> 
> I expect I need to start somewhere above and specify the right target
> but I'm out of my depth here.   I'll rebuild the OS if needed, just
> wanted to save time and get an answer back quickly.

I use the following script to rebuild openssh.  The script must be
called Build-openssh, with links called Install-openssh and
Clean-openssh.  (It can also be used to rebuild IP Filter, Sendmail,
and BIND.)

#!/bin/sh -
case $0 in
*/*-ipf)
	DIRS='/usr/src/sbin/ipf /usr/src/sbin/ipfstat /usr/src/sbin/ipmon /usr/src/sbin/ipnat /usr/src/usr.sbin/ipftest /usr/src/usr.sbin/ipresend /usr/src/usr.sbin/ipsend /usr/src/usr.sbin/iptest /sys/modules/ipfilter'
	# DIRS='/usr/src/sbin/ipf /usr/src/sbin/ipfstat /usr/src/sbin/ipmon /usr/src/sbin/ipnat /usr/src/usr.sbin/ipftest /usr/src/usr.sbin/ipresend /usr/src/usr.sbin/ipsend /usr/src/usr.sbin/iptest'
	;;
*/*-sendmail)
	DIRS='/usr/src/lib/libsmdb /usr/src/lib/libsmutil /usr/src/libexec/mail.local /usr/src/usr.sbin/mailstats /usr/src/usr.sbin/makemap /usr/src/usr.sbin/praliases /usr/src/bin/rmail /usr/src/usr.sbin/sendmail /usr/src/libexec/smrsh /usr/src/usr.bin/vacation'
	;;
*/*-bind)
	DIRS='/usr/src/lib/libisc /usr/src/lib/libbind /usr/src/usr.sbin/named /usr/src/usr.sbin/named.reload /usr/src/usr.sbin/named.restart /usr/src/libexec/named-xfer'
	;;
*/*-openssh)
	DIRS='/usr/src/secure/lib/libssh /usr/src/secure/libexec/sftp-server /usr/src/secure/usr.bin/scp /usr/src/secure/usr.bin/ssh /usr/src/secure/usr.bin/ssh-add /usr/src/secure/usr.bin/ssh-agent /usr/src/secure/usr.bin/ssh-keygen /usr/src/secure/usr.sbin/sshd'
	;;
esac

CMD=`basename $0`

error() {
	echo $@
	echo terminating abnormally
	exit 1
}

echo
for I in $DIRS; do
	case $CMD in
	Build-*)
		echo "*****  Building $I  *****"
		echo
		cd $I || error cannot cd to $I
		make cleandir || error make clean failed
		# we do this twice in case there is any cruft in /usr/src itself
		make cleandir || error make clean failed
		make obj || error make obj failed
		make || error make failed
		;;
	Install-*)
		echo "*****  Installing $I  *****"
		echo
		cd $I || error cannot cd to $I
		unset MAKEINSTALLOPT
		case `uname -n` in
		cwtest|cwx)
			MAKEINSTALLOPT='-i';;
		esac
		make $MAKEINSTALLOPT install || error make install failed
		;;
	Clean-*)
		echo "*****  Cleaning $I  *****"
		echo
		cd $I || error cannot cd to $I
		make cleandir || error make cleandir failed
		;;
	esac
	echo
done

echo `basename $0` finished successfully



Regards,                         Phone:  (250)387-8437
Cy Schubert                        Fax:  (250)387-5766
Team Leader, Sun/Alpha Team      Email:  Cy.Schubert@osg.gov.bc.ca
Open Systems Group, ITSD
Ministry of Management Services
Province of BC
                    FreeBSD UNIX:  cy@FreeBSD.org



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




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