Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 2003 17:51:47 -0700
From:      Joshua Oreman <oremanj@webserver.get-linux.org>
To:        lewiz <purple@lewiz.info>
Cc:        ports@freebsd.org
Subject:   Re: ld and libraries troubles (newbie).
Message-ID:  <20030708005147.GC40769@webserver.get-linux.org>
In-Reply-To: <20030708004340.GB18537@lewiz.org>
References:  <20030708004340.GB18537@lewiz.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 |-




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030708005147.GC40769>