runtime error (libm.so.3)

2006-01-10 Thread Larry


6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Dec 31 03:17:27 EST 2005...i386

When I try to run a certain program that I can compile and link without any
warnings or errors I get the following error message:

/libexec/ld-elf.so.1: Shared object libm.so.3 not found, required by 
libGL.so.1



All of my ports are up-to-date. How can I get rid of this error?

I'm compiling and linking separately like this:

g++ -I/usr/X11R6/include -c `wx-config --cxxflags` winmain.cpp
g++ -o winmain winmain.o /usr/local/lib/compat/libm.so.3 `wx-config 
--libs gl,media,std,core,base`


thanks,
Bob
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: runtime error (libm.so.3)

2006-01-10 Thread Markus Trippelsdorf
On Tue, 10 Jan 2006 14:44:33 -0500, Larry wrote:
 
 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Dec 31 03:17:27 EST 2005...i386
 
 When I try to run a certain program that I can compile and link without any
 warnings or errors I get the following error message:
 
 /libexec/ld-elf.so.1: Shared object libm.so.3 not found, required by 
 libGL.so.1
 

It looks like your X Server was build and linked under 5.x.
Rebuilding xorg should help...
-- 
Markus

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: runtime error (libm.so.3)

2006-01-10 Thread Matt Emmerton

 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Dec 31 03:17:27 EST 2005...i386

 When I try to run a certain program that I can compile and link without
any
 warnings or errors I get the following error message:

 /libexec/ld-elf.so.1: Shared object libm.so.3 not found, required by
 libGL.so.1

 All of my ports are up-to-date. How can I get rid of this error?

 I'm compiling and linking separately like this:

 g++ -I/usr/X11R6/include -c `wx-config --cxxflags` winmain.cpp
 g++ -o winmain winmain.o /usr/local/lib/compat/libm.so.3 `wx-config
 --libs gl,media,std,core,base`

Perhaps you need to refresh your shared library cache -- run ldconfig -R.

Is there a particular reason why you're purposely using a back-level version
of libm?  libm.so.4 is the version that is part of with 6.x.  If you don't
need a specific version, then use the -l option to link, like this:

g++ -o winmain winmain.o -lm `wx-config --libs gl,media,std,core,base`

Regards,
--
Matt Emmerton

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]