Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 1996 22:50:29 +0200
From:      Mark Murray <mark@grondar.za>
To:        "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" (Andrey A. Chernov) <ache@nagual.ru>
Cc:        current@freebsd.org
Subject:   Re: Something really weird with new libgmp import! 
Message-ID:  <199610212050.WAA15473@grumble.grondar.za>

next in thread | raw e-mail | index | archive | help
"=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" wrote:
> > I can't duplicate this. I works just fine for me. How did you get this?
> > What keys, etc did you use?
> 
> No keys, just any plain "ssh <host>" command do it.

I am using it _at_the_moment_ to Freefall and Internat.

> BTW, to duplicate it you need to enable system libgmp into ssh,
> it use its own copy by default which works. Replace patch-ag with
> attached variant.

I did a bit more to make libgmp work (Perhaps we should do the same
with libz?) - right now it gets a mixture of its own and ours. We should
also avoid configuring zlib and gmp (just to be clean).

M
--
Mark Murray
46 Harvey Rd, Claremont, Cape Town 7700, South Africa
+27 21 61-3768 GMT+0200
Finger mark@grondar.za for PGP key

This patch relative to your (already patched) port sources:
-------------------------8<-----------------------------------
--- Makefile.in.orig	Mon Oct 21 22:40:17 1996
+++ Makefile.in	Mon Oct 21 22:44:10 1996
@@ -160,10 +160,10 @@
 
 GMPDIR 		= gmp-2.0.2
 # We have older libgmp in the system, so use distributed one
-GMPINCDIR	= $(GMPDIR)
-GMPLIBDIR	= $(GMPDIR)
+GMPINCDIR	= /usr/include
+GMPLIBDIR	= /usr/lib
 GMPDEP		= $(GMPINCDIR)/gmp.h $(GMPLIBDIR)/libgmp.a
-GMPLIBS		= -L$(GMPLIBDIR) -lgmp
+GMPLIBS		= -lgmp
 
 ZLIBDIR		= zlib-1.0.3
 # We have newer libz in the system, so use it instead
@@ -298,10 +298,10 @@
 	./gen_minfd $(USER_SHELLS) > minfd.h~
 	mv -f minfd.h~ minfd.h
 
-GMP_COPY_SOURCES = mpz_gcd.c mpz_powm.c mpz_pow_ui.c mpz_add.c mpz_sub.c \
-		mpz_mul.c mpz_cmp.c mpz_sqrtrem.c
-$(GMPDIR)/libgmp.a:
-	cd $(GMPDIR); $(MAKE)
+#GMP_COPY_SOURCES = mpz_gcd.c mpz_powm.c mpz_pow_ui.c mpz_add.c mpz_sub.c \
+#		mpz_mul.c mpz_cmp.c mpz_sqrtrem.c
+#$(GMPDIR)/libgmp.a:
+#	cd $(GMPDIR); $(MAKE)
 
 $(ZLIBDIR)/libz.a:
 	-if test '!' -d $(ZLIBDIR); then \
@@ -468,14 +468,14 @@
 
 clean:
 	-rm -f *.o minfd.h gmon.out *core $(PROGRAMS) gen_minfd rfc-pg
-	cd $(GMPDIR); $(MAKE) clean
+#	cd $(GMPDIR); $(MAKE) clean
 #	cd $(RSAREFSRCDIR); rm -f *.o *.a
 	cd $(ZLIBDIR); $(MAKE) clean
 
 distclean: clean
 	-rm -f Makefile config.status config.cache config.log config.h
 	-rm -f ssh.1 sshd.8 make-ssh-known-hosts.1
-	cd $(GMPDIR); $(MAKE) distclean
+#	cd $(GMPDIR); $(MAKE) distclean
 	cd $(ZLIBDIR); $(MAKE) distclean
 
 dist:
@@ -484,7 +484,7 @@
 	cp $(DISTFILES) $(DISTNAME)
 	-rm $(DISTNAME)/config.h
 	tar cf - $(GMPDIR) | (cd $(DISTNAME); tar xf -)
-	cd $(DISTNAME)/$(GMPDIR); $(MAKE) clean
+#	cd $(DISTNAME)/$(GMPDIR); $(MAKE) clean
 #	tar cf - $(RSAREFDIR) | (cd $(DISTNAME); tar xf -)
 #	cd $(DISTNAME)/$(RSAREFSRCDIR); rm -f *.o *.a
 	tar cf - $(ZLIBDIR) | (cd $(DISTNAME); tar xf -)
@@ -500,7 +500,7 @@
 	 (echo "s/\.$$old_version\"/.$$new_version\"/g"; echo w; echo q) | ed version.h >/dev/null
 
 depend:
-	$(MAKEDEP) -I$(srcdir) -I. -I$(GMPDIR) -I$(ZLIBDIR) $(DEFS) $(SRCS)
+	$(MAKEDEP) -I$(srcdir) -I. -I$(ZLIBDIR) $(DEFS) $(SRCS)
 
 tags:
 	find config.h $(srcdir) -name '*.[chly]' -print | xargs etags -a
-------------------------8<-----------------------------------



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