From owner-freebsd-ports@FreeBSD.ORG Wed Feb 25 10:33:07 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5AA9106566B for ; Wed, 25 Feb 2009 10:33:07 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id 928238FC16 for ; Wed, 25 Feb 2009 10:33:07 +0000 (UTC) (envelope-from mad@madpilot.net) Received: by megatron.madpilot.net (Postfix, from userid 1000) id B5103130C40; Wed, 25 Feb 2009 11:33:05 +0100 (CET) Date: Wed, 25 Feb 2009 11:33:05 +0100 From: Guido Falsi To: Dirk Meyer Message-ID: <20090225103305.GA79251@megatron.madpilot.net> References: <20090218141028.GB48065@megatron.madpilot.net> <499C703A.7020606@madpilot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 7.1-STABLE User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-ports@freebsd.org Subject: Re: ports using sdp when mpeg4ip is installed X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2009 10:33:08 -0000 On Wed, Feb 25, 2009 at 07:57:24AM +0100, Dirk Meyer wrote: > Guido Falsi schrieb:, > > > It will not solve the problem with libsdp.so though. > [...] > > After fixing the include(by hardcoding the path for now) I got this > > error. As you can see libtool prefers libsdp.so found in localbase. > > > > I'm not sure what a solution to this could be. in fact having two > > libraries with the same name looks like a problem anyway. > > You can trick cc/ld with the "rpath" option to change preference > on load time so your so is load first, check with ldd. But the problem is with libtool at compile time. libtool looks at the comand line and substitutes -lsdp with /usr/local/lib/libsdp.so explicitly (I will never really understand why the autotools use such black magic). Since the software uses it's own autotool script I'm hacking it's ltmain.sh to teach it to behave regardin libsdp.so. This should definetly fix the problem. It's getting time because ltmain.sh looks like obfuscated code to me and I also am very busy these weeks so i can devote only little time to the task(and another port I maintain also asks for attention...) -- Guido Falsi