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

next in thread | previous in thread | raw e-mail | index | archive | help
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



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