From owner-freebsd-questions@FreeBSD.ORG Tue Dec 22 17:31:34 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 BB1D41065692 for ; Tue, 22 Dec 2009 17:31:34 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by mx1.freebsd.org (Postfix) with ESMTP id 67FB38FC1E for ; Tue, 22 Dec 2009 17:31:34 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr13.xs4all.nl (8.13.8/8.13.8) with ESMTP id nBMHVVIB017521; Tue, 22 Dec 2009 18:31:31 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 9B7E0BAAA; Tue, 22 Dec 2009 18:31:31 +0100 (CET) Date: Tue, 22 Dec 2009 18:31:31 +0100 From: Roland Smith To: Richard Mace Message-ID: <20091222173131.GA1645@slackbox.xs4all.nl> References: <200912221736.20023.macerl@telkomsa.net> <20091222162807.GB67213@slackbox.xs4all.nl> <200912221906.47622.macerl@telkomsa.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline In-Reply-To: <200912221906.47622.macerl@telkomsa.net> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner 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:31:34 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 22, 2009 at 07:06:47PM +0200, Richard Mace wrote: > 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 ti= me > > > 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 t= he > > > problem: > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > 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 > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > Note the last two lines. (I have included the two previous lines to s= how > > > the dependent libraries, if that helps.) > >=20 > > 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. > >=20 > > If you are not running the GENERIC kernel, make sure your kernel contai= ns > > the right COMPAT_FREEBSD5, COMPAT_FREEBSD6 and COMPAT_FREEBSD7 options. > >=20 > > Roland > >=20 >=20 > Thanks, Roland. Apparently /usr/ports/misc/compat5x is installed: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > toutatis# make install clean > =3D=3D=3D> Installing for compat5x-i386-5.4.0.8_11 > =3D=3D=3D> compat5x-i386-5.4.0.8_11 depends on file:=20 > /usr/local/share/compat/locale/UTF-8/LC_CTYPE - found > =3D=3D=3D> Generating temporary packing list > =3D=3D=3D> Checking if misc/compat5x already installed > =3D=3D=3D> compat5x-i386-5.4.0.8_11 is already installed > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > And... >=20 > ls -al /usr/local/lib/compat/libm.* > -r--r--r-- 1 root wheel 120004 Dec 13 06:18 /usr/local/lib/compat/libm= =2Eso. >=20 > I am using the stock 8.0-RELEASE kernel on a 3-week old install. >=20 > Any other ideas on where the conflict/problem may lie? What version of the nvidia driver are you using? Have a look at the x11-drivers/xf86-video-nouveau port. Maybe that works fo= r you? (BTW, problems like these are why I avoid proprietary drivers like the plag= ue) Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --wac7ysb48OaltWcw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAksxAnMACgkQEnfvsMMhpyVQDACgrXT5ypGTk+WkoviVZV8ERQmb 4i8AniZtlKwJU5/X71llqMz7pV6nPvK+ =uZIF -----END PGP SIGNATURE----- --wac7ysb48OaltWcw--