From owner-freebsd-questions@FreeBSD.ORG Wed Mar 2 20:00:27 2005 Return-Path: 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 5EF3116A4CE for ; Wed, 2 Mar 2005 20:00:27 +0000 (GMT) Received: from limicola.its.uu.se (limicola.its.UU.SE [130.238.7.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E64F43D41 for ; Wed, 2 Mar 2005 20:00:26 +0000 (GMT) (envelope-from ante@Update.UU.SE) Received: by limicola.its.uu.se (Postfix, from userid 205) id EBAF74AE1; Wed, 2 Mar 2005 21:00:24 +0100 (MEZ) Received: from limicola.its.uu.se(127.0.0.1) by limicola.its.uu.se via virus-scan id s63497; Wed, 2 Mar 05 21:00:21 +0100 Received: from Psilocybe.Update.UU.SE (Psilocybe.Update.UU.SE [130.238.19.25]) by limicola.its.uu.se (Postfix) with ESMTP id 1067148E8; Wed, 2 Mar 2005 21:00:20 +0100 (MEZ) Received: by Psilocybe.Update.UU.SE (Postfix, from userid 30086) id 908D238012; Wed, 2 Mar 2005 21:00:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by Psilocybe.Update.UU.SE (Postfix) with ESMTP id 8445F5C002; Wed, 2 Mar 2005 21:00:20 +0100 (CET) Date: Wed, 2 Mar 2005 21:00:20 +0100 (CET) From: Andreas Davour To: Dan Nelson In-Reply-To: <20050302191318.GA77052@dan.emsphone.com> Message-ID: References: <20050302191318.GA77052@dan.emsphone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-questions@freebsd.org Subject: Re: Where do the linker look for shared libraries? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 20:00:27 -0000 On Wed, 2 Mar 2005, Dan Nelson wrote: > In the last episode (Mar 02), Andreas Davour said: >> I've tried to compile and link a small game written with the Allegro >> API. For some odd reason the linker just don't understand how to >> resolve the symbols in the library. It just can't accept that the >> library is in a ".so" file and not an ".a" archive, and even when I >> point it out explicitly it still don't get it. >> >> This is my commandline: >> >> gcc main.o rotoAction.o rotoCog.o -o RotoCube.exe -lstdc++ -L/usr/local/lib/ -lalleg >> >> and the errors I get looks like this: >> >> /usr/local/lib//liballeg.so: undefined reference to `_poly_zbuf_atex_trans8' >> /usr/local/lib//liballeg.so: undefined reference to `_poly_scanline_atex_mask_lit32' > > This is the linker saying "there are symbols in liballeg.so that I > cannot find anywhere". Maybe you need to specify another library along > with liballeg? Are you using the allegro port? I have grep'ed for those symbols and they come from liballeg.so, no place else. That's one of the very confusing things with those errors. I'm using the allegro port. BTW, there is a linux-allegro port as well. Why is this needed if Allegro is a platform independant API? /Andreas -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?