From owner-freebsd-current@FreeBSD.ORG Thu Apr 8 00:50:20 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97C8516A4CE for ; Thu, 8 Apr 2004 00:50:20 -0700 (PDT) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EB2243D69 for ; Thu, 8 Apr 2004 00:50:15 -0700 (PDT) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) i387o8Wc082724; Thu, 8 Apr 2004 08:50:08 +0100 (BST) (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost)i387o7u3082714; Thu, 8 Apr 2004 08:50:07 +0100 (BST) (envelope-from mark@grondar.org) X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1])i387ie0w047939; Thu, 8 Apr 2004 08:44:40 +0100 (BST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200404080744.i387ie0w047939@grimreaper.grondar.org> To: Kaarthik Sivakumar In-Reply-To: Your message of "Wed, 07 Apr 2004 21:17:24 EDT." <86vfkb2rq3.fsf@comcast.net> Date: Thu, 08 Apr 2004 08:44:40 +0100 Sender: mark@grondar.org X-Spam-Score: 4 (****) FROM_NO_LOWER,MSGID_FROM_MTA_SHORT X-Scanned-By: MIMEDefang 2.39 X-Mailman-Approved-At: Thu, 08 Apr 2004 04:44:34 -0700 cc: current@FreeBSD.ORG Subject: Re: libmp and libcrypto X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 07:50:20 -0000 Kaarthik Sivakumar writes: > I am trying to compile a program that requires libmp for bignum and > other large numbers. The configure test for libmp fails though. The > output from config.log is at the end of the mail. It seems like > linking with libmp requires linking with libcrypto also, libmp has > undefined reference to BN_mul, etc. Is this how it is intended? I have > been led to believe that neither Solaris' libmp or libgmp require it > like this and usually it is the other way around, ie libcrypto would > require libmp. So can anyone confirm that libcrypto is indeed needed > for libmp? Confirmed. Our libmp is a wrapper round the BIGNUM functions in libcrypto. > libmp also defines a function called min() that takes one argument. > The prototype for this function is in mp.h and this function takes one > argument. This causes redefinition errors when compiling, since most > programs seem to define a min() macro that takes 2 args and returns > the minimum value. Would it possible to work around this in some way? > Even better would be if the libmp functions had a mp_ prefix, like > Solaris does. Is that something being considered? The mp.h header documents an ancient and sacred interface to the Berkeley BIGNUM library. It ain't changing in a hurry. :-) M -- Mark Murray iumop ap!sdn w,I idlaH