Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2006 11:18:54 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Paul Schmehl <pauls@utdallas.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cannot find -ldl
Message-ID:  <20060126171851.GC52542@dan.emsphone.com>
In-Reply-To: <3EA9A5749CCE92F90AA269F4@utd59514.utdallas.edu>
References:  <3EA9A5749CCE92F90AA269F4@utd59514.utdallas.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 26), Paul Schmehl said:
> I'm fiddling with an app that was probably written for/on Linux.  It 
> configures fine, but when I make, I get the error "cannot find -ldl".  Is 
> there a FreeBSD equivalent for libldl?  A workaround?  A library that I'm 
> missing?

It's not needed on FreeBSD.  The dlopen family of functions is in libc. 
The configure script should probably have something like this in it so
it only uses libdl if it can't find dlopen with its current set of
libs::

AC_SEARCH_LIBS(dlopen, dl)

-- 
	Dan Nelson
	dnelson@allantgroup.com



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