From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 17 14:35:06 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E35F516A41F for ; Tue, 17 Jan 2006 14:35:05 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25EF043D45 for ; Tue, 17 Jan 2006 14:35:05 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 0E00D11A93; Tue, 17 Jan 2006 15:35:03 +0100 (CET) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 72248-08; Tue, 17 Jan 2006 15:34:54 +0100 (CET) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id 746DE11A53; Tue, 17 Jan 2006 15:34:54 +0100 (CET) From: Florent Thoumie To: freebsd-hackers@freebsd.org Date: Tue, 17 Jan 2006 15:34:40 +0100 User-Agent: KMail/1.8.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1605265.z9RpTi3FGz"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200601171534.50483.flz@xbsd.org> X-Virus-Scanned: amavisd-new at xbsd.org Cc: Evandro Sestrem Subject: Re: Lua 5.0 and FreeBSD 4.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2006 14:35:06 -0000 --nextPart1605265.z9RpTi3FGz Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 17 January 2006 16:23, Evandro Sestrem wrote: > Hello, > > I'm trying compile a project using Lua 5.0 (www.lua.org) in FreePascal > (2.0.2 [2005/11/17] for i386) in a FreeBSD 4.1. > > The Lua 5.0 is correctly installed. > > It compiles ok, but when it is linking I got these errors: > > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_sin': > lmathlib.o(.text+0x52): undefined reference to 'sin' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_cos': > lmathlib.o(.text+0x8e): undefined reference to 'cos' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_tan': > lmathlib.o(.text+0xca): undefined reference to 'tan' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_asin': > lmathlib.o(.text+0x106): undefined reference to 'asin' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_acos': > lmathlib.o(.text+0x142): undefined reference to 'acos' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_atan': > lmathlib.o(.text+0x17e): undefined reference to 'atan' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_atan': > lmathlib.o(.text+0x1cb): undefined reference to 'atan2' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_ceil': > lmathlib.o(.text+0x20a): undefined reference to 'ceil' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_floor': > lmathlib.o(.text+0x246): undefined reference to 'floor' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_mod': > lmathlib.o(.text+0x293): undefined reference to 'fmod' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_sqrt': > lmathlib.o(.text+0x2d2): undefined reference to 'sqrt' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_pow': > lmathlib.o(.text+0x31f): undefined reference to 'pow' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_log': > lmathlib.o(.text+0x35e): undefined reference to 'log' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_log10': > lmathlib.o(.text+0x39a): undefined reference to 'log10' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_exp': > lmathlib.o(.text+0x3d6): undefined reference to 'exp' > /usr/local/lib//liblualib.a(lmathlib.o): In function 'math_random': > lmathlib.o(.text+0x6e1): undefined reference to 'floor' > lmathlib.o(.text+0x78d): undefined reference to 'floor' > > > > In what version of FreeBSD (or libc) these functions (sin, cos, tan, ...) > were implemented? man sin says it's libm (-lm). =2D-=20 =46lorent Thoumie flz@FreeBSD.org =46reeBSD Committer --nextPart1605265.z9RpTi3FGz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDzQCKMxEkbVFH3PQRApOyAKCL9FdU3+Ayt0+RT7ueP0HlkrASoACfe2xw 1PnfGrzZFKosbfLsxvFz83w= =Qdmc -----END PGP SIGNATURE----- --nextPart1605265.z9RpTi3FGz--