From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 01:09:04 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A72516A41F for ; Wed, 11 Jan 2006 01:09:04 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from skippyii.compar.com (ftp.compar.com [216.208.38.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAC5043D49 for ; Wed, 11 Jan 2006 01:09:03 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from hermes (CPE00062566c7bb-CM0011e6ede298.cpe.net.cable.rogers.com [70.28.254.189]) by skippyii.compar.com (8.13.1/8.13.1) with ESMTP id k0B1BNAu038254; Tue, 10 Jan 2006 20:11:24 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <012b01c6164b$bd947820$1200a8c0@gsicomp.on.ca> From: "Matt Emmerton" To: "Larry" , References: <43C40EA1.2020500@charter.net> Date: Tue, 10 Jan 2006 20:09:56 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Cc: Subject: Re: runtime error (libm.so.3) 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: Wed, 11 Jan 2006 01:09:04 -0000 > 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