Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2009 17:28:07 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Richard Mace <macerl@telkomsa.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Help building/running SDL/OpenGL code
Message-ID:  <20091222162807.GB67213@slackbox.xs4all.nl>
In-Reply-To: <200912221736.20023.macerl@telkomsa.net>
References:  <200912221736.20023.macerl@telkomsa.net>

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

--nVMJ2NtxeReIH9PS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 22, 2009 at 05:36:19PM +0200, Richard Mace wrote:
> I developed a small molecular dynamics simulation under Linux some time a=
go.=20
> Since recently moving to FreeBSD I thought that I'd try to get it running=
=20
> here, too.
>=20
> However, although I am able to get the code to build, it dumps core --=20
> apparently before getting to any user code! During the build (linking pha=
se) I=20
> get one error which seems to be a pointer to the source of the problem:
>=20
> =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=20
> 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=
=20
> 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 show =
the=20
> 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.

If you are not running the GENERIC kernel, make sure your kernel contains t=
he
right COMPAT_FREEBSD5, COMPAT_FREEBSD6 and COMPAT_FREEBSD7 options.

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)

--nVMJ2NtxeReIH9PS
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAksw85cACgkQEnfvsMMhpyV6ggCeKA8D82CzWKiwNoHuaMCF2WuR
5u8Anj6WSQPxcN+Uw8+ya02IU7NL0oRd
=KECw
-----END PGP SIGNATURE-----

--nVMJ2NtxeReIH9PS--



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