From owner-freebsd-ports@FreeBSD.ORG Mon Jul 7 17:51:48 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB9CD37B401 for ; Mon, 7 Jul 2003 17:51:48 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id DB91043F3F for ; Mon, 7 Jul 2003 17:51:47 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 72085 invoked by uid 1001); 8 Jul 2003 00:51:47 -0000 Date: Mon, 7 Jul 2003 17:51:47 -0700 From: Joshua Oreman To: lewiz Message-ID: <20030708005147.GC40769@webserver.get-linux.org> References: <20030708004340.GB18537@lewiz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030708004340.GB18537@lewiz.org> User-Agent: Mutt/1.4.1i cc: ports@freebsd.org Subject: Re: ld and libraries troubles (newbie). X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 00:51:48 -0000 On Tue, Jul 08, 2003 at 01:43:40AM +0100 or thereabouts, lewiz wrote: > Hi, > > I'm fairly new to porting (as you'll probably figure out with the body > of my question :) and am having a few troubles (I believe to be with > ld/ldconfig and search paths, etc.). > > I'm attempting to create a port for Dasher (a text-input solution), > which requires expat and libintl to configure/compile (in that order). > For some reason it does not find libexpat (ld: cannot find -lexpat), > which is available in /usr/local/lib. I created a symlink to /usr/lib > and it worked, but then failed when make got to libintl.a (in > /usr/local). I've done my best to read the Porter's Handbook > (especially the chapter on Dependencies) but this has been of little > help. Any pointers in the right direction would be greatly appreciated! DON'T depend on symlinking libraries, since when the port installs the end user might not have those symlinks. Add -L/usr/local/lib to the link line in the Makefile. Make a patch to do this. -- Josh > > Thanks very much, > > -lewiz. > > -- > It is much easier to suggest solutions when you know nothing about the > problem. > ------------------------------------------------------------------------ > -| msn:purple@lewiz.net | jab:lewiz@jabber.org | url:http://lewiz.net |-