Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 2003 18:10:03 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Joe Sotham <joe@dubium.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can't find -ldl ...
Message-ID:  <20030920231003.GB25633@dan.emsphone.com>
In-Reply-To: <49250.192.168.0.1.1064091762.squirrel@mail.dubium.com>
References:  <49250.192.168.0.1.1064091762.squirrel@mail.dubium.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 20), Joe Sotham said:
> I am trying to build resin on a FreeBSD 5.1-p2 release. This does not
> appear to be a resin problem ...
> 
> I've modified the environment to search additional lib locations:
>    LDFLAGS=-L/usr/compat/linux/lib -L/usr/local/lib
> 
> Yet the following compile fails because a library can't be found:
> 
>  gcc -L/usr/compat/linux/lib -L/usr/local/lib -o resin resin.o
>    ../common/common.o std.o memory.o ssl_stub.o -lc_r -lssl
>    -lcrypto -ldl
> 
>  /usr/libexec/elf/ld: cannot find -ldl

It's a resin problem.  FreeBSD does not have libdl.  The dlopen()
family of functions are included in libc.  Remove -ldl from the
Makefile and report this bug to the Resin coders.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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