cannot find -ldl

Dan Nelson dnelson at
Thu Jan 26 09:18:58 PST 2006

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

AC_SEARCH_LIBS(dlopen, dl)

	Dan Nelson
	dnelson at

More information about the freebsd-questions mailing list