Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 1996 22:52:04 -0800 (PST)
From:      nsayer@quack.kfu.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   gnu/2148: libmp compiled incorrectly
Message-ID:  <199612040652.WAA06421@jail.3do.com>
Resent-Message-ID: <199612040700.XAA13059@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2148
>Category:       gnu
>Synopsis:       libmp compiled incorrectly
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec  3 23:00:02 PST 1996
>Last-Modified:
>Originator:     Nick Sayer
>Organization:
just me
>Release:        FreeBSD 2.2-ALPHA i386
>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)
  

>Audit-Trail:
>Unformatted:



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