From owner-freebsd-questions@FreeBSD.ORG Tue Dec 22 17:07:14 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 006CA106568F for ; Tue, 22 Dec 2009 17:07:14 +0000 (UTC) (envelope-from macerl@telkomsa.net) Received: from rrba-ip-smtp-1-4.saix.net (rrba-ip-smtp-1-4.saix.net [196.25.240.238]) by mx1.freebsd.org (Postfix) with ESMTP id 90B8E8FC19 for ; Tue, 22 Dec 2009 17:07:13 +0000 (UTC) Received: from toutatis.localnet (dsl-242-93-13.telkomadsl.co.za [41.242.93.13]) by rrba-ip-smtp-1-4.saix.net (Postfix) with ESMTP id 07BD221EF; Tue, 22 Dec 2009 19:07:11 +0200 (SAST) From: Richard Mace To: Roland Smith Date: Tue, 22 Dec 2009 19:06:47 +0200 User-Agent: KMail/1.12.4 (FreeBSD/8.0-RELEASE; KDE/4.3.4; i386; ; ) References: <200912221736.20023.macerl@telkomsa.net> <20091222162807.GB67213@slackbox.xs4all.nl> In-Reply-To: <20091222162807.GB67213@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200912221906.47622.macerl@telkomsa.net> Cc: freebsd-questions@freebsd.org Subject: Re: Help building/running SDL/OpenGL code X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 17:07:14 -0000 On Tuesday 22 December 2009 18:28:07 you wrote: > On Tue, Dec 22, 2009 at 05:36:19PM +0200, Richard Mace wrote: > > I developed a small molecular dynamics simulation under Linux some time > > ago. Since recently moving to FreeBSD I thought that I'd try to get it > > running here, too. > > > > However, although I am able to get the code to build, it dumps core -- > > apparently before getting to any user code! During the build (linking > > phase) I get one error which seems to be a pointer to the source of the > > problem: > > > > ============================================= > > gcc -Wall -L/usr/local/lib -o lennardjones main.o anim-thread.o ode.o > > gasdynamics.o eyedynamics.o -lSDL -lSDL_gfx -lm -lGLU > > /usr/bin/ld: warning: libm.so.3, needed by /usr/local/lib/libGL.so.1, may > > conflict with libm.so.5 > > ============================================= > > Note the last two lines. (I have included the two previous lines to show > > the dependent libraries, if that helps.) > > Looks like the libGL supplied by nvidia was built for FreeBSD 5. Try > installing the /usr/ports/misc/compat5x port. That includes libm.so.3, and > might help. > > If you are not running the GENERIC kernel, make sure your kernel contains > the right COMPAT_FREEBSD5, COMPAT_FREEBSD6 and COMPAT_FREEBSD7 options. > > Roland > Thanks, Roland. Apparently /usr/ports/misc/compat5x is installed: ============================================ toutatis# make install clean ===> Installing for compat5x-i386-5.4.0.8_11 ===> compat5x-i386-5.4.0.8_11 depends on file: /usr/local/share/compat/locale/UTF-8/LC_CTYPE - found ===> Generating temporary packing list ===> Checking if misc/compat5x already installed ===> compat5x-i386-5.4.0.8_11 is already installed ============================================= And... ls -al /usr/local/lib/compat/libm.* -r--r--r-- 1 root wheel 120004 Dec 13 06:18 /usr/local/lib/compat/libm.so. I am using the stock 8.0-RELEASE kernel on a 3-week old install. Any other ideas on where the conflict/problem may lie? -Richard