From nsayer@3do.com  Tue Dec  3 22:52:47 1996
Received: from outland (outland.3do.com [208.192.70.2])
          by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id WAA12658
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 3 Dec 1996 22:52:43 -0800 (PST)
Received: from badger.3do.com (badger.3do.com [198.211.30.7]) by outland (SMI-8.6/8.6.12) with SMTP id WAA27294 for <FreeBSD-gnats-submit@freebsd.org>; Tue, 3 Dec 1996 22:51:38 -0800
Received: from jail.3do.com by badger.3do.com (4.1/SMI-4.1)
	id AA27625; Tue, 3 Dec 96 22:52:05 PST
Received: by jail.3do.com 
        (8.8.2//ident-1.0) id WAA06421; Tue, 3 Dec 1996 22:52:04 -0800 (PST) 
Message-Id: <199612040652.WAA06421@jail.3do.com>
Date: Tue, 3 Dec 1996 22:52:04 -0800 (PST)
From: nsayer@quack.kfu.com
Reply-To: nsayer@quack.kfu.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: libmp compiled incorrectly
X-Send-Pr-Version: 3.2

>Number:         2148
>Category:       gnu
>Synopsis:       libmp compiled incorrectly
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec  3 23:00:02 PST 1996
>Closed-Date:    Sat Dec 7 05:04:26 PST 1996
>Last-Modified:  Sat Dec  7 05:05:29 PST 1996
>Originator:     Nick Sayer
>Release:        FreeBSD 2.2-ALPHA i386
>Organization:
just me
>Environment:

>Description:

as distributed, libmp does not include _mult. This is because
it's not being compiled with the berklification flags.

>How-To-Repeat:

make world

>Fix:

Apply this to /usr/src/gnu/lib/libmp/

*** Makefile.orig	Tue Dec  3 22:46:41 1996
--- Makefile	Tue Dec  3 22:45:51 1996
***************
*** 9,15 ****
  	${GMPDIR}/mpbsd
  
  CFLAGS+=	-I${GMPDIR} -I${GMPDIR}/mpn/generic -I${GMPDIR}/mpn/x86 \
! 		-I${GMPDIR}/mpz -DBROKEN_ALIGN
  
  MPN_SRC_C=	inlines.c cmp.c divmod_1.c divrem.c divrem_1.c dump.c \
  		mod_1.c mul.c mul_n.c random2.c sqrtrem.c get_str.c set_str.c \
--- 9,15 ----
  	${GMPDIR}/mpbsd
  
  CFLAGS+=	-I${GMPDIR} -I${GMPDIR}/mpn/generic -I${GMPDIR}/mpn/x86 \
! 		-I${GMPDIR}/mpz -DBROKEN_ALIGN -DBERKELEY_MP
  
  MPN_SRC_C=	inlines.c cmp.c divmod_1.c divrem.c divrem_1.c dump.c \
  		mod_1.c mul.c mul_n.c random2.c sqrtrem.c get_str.c set_str.c \
***************
*** 21,27 ****
  MPN_SRCS=	${MPN_SRC_C} ${MPN_SRC_ASM}
  
  MPBSD_LINKS=	mpz/add.c mpz/cmp.c mpz/gcd.c mpz/mul.c mpz/pow_ui.c \
! 		mpz/powm.c mpz/sqrtrem.c mpz/sub.c
  MPBSD_SRCS=	itom.c mdiv.c mfree.c min.c mout.c move.c mtox.c sdiv.c xtom.c \
  		realloc.c $(MPBSD_LINKS)
  
--- 21,27 ----
  MPN_SRCS=	${MPN_SRC_C} ${MPN_SRC_ASM}
  
  MPBSD_LINKS=	mpz/add.c mpz/cmp.c mpz/gcd.c mpz/mul.c mpz/pow_ui.c \
! 		mpz/powm.c mpz/sqrtrem.c mpz/sub.c mpz/realloc.c
  MPBSD_SRCS=	itom.c mdiv.c mfree.c min.c mout.c move.c mtox.c sdiv.c xtom.c \
  		realloc.c $(MPBSD_LINKS)
  

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: markm 
State-Changed-When: Sat Dec 7 05:04:26 PST 1996 
State-Changed-Why:  
Fix applied. Thanks! 
>Unformatted:
