Date: Thu, 6 Feb 2003 15:25:56 +0200 From: Alexey Zelkin <phantom@FreeBSD.org.ua> To: costin <gicabulica@edison.ro> Cc: freebsd-java@FreeBSD.ORG Subject: Re: somehow off topic: resin compile Message-ID: <20030206152556.A97412@phantom.cris.net> In-Reply-To: <77258701523.20030206142659@edison.ro>; from gicabulica@edison.ro on Thu, Feb 06, 2003 at 02:26:59PM %2B0200 References: <77258701523.20030206142659@edison.ro>
next in thread | previous in thread | raw e-mail | index | archive | help
Just remove '-ldl' libraries list. Linux's libdl contains dl* family functions stubs (like dlopen, dladdr, dlsym). In FreeBSD they are reside in libc. On Thu, Feb 06, 2003 at 02:26:59PM +0200, costin wrote: > hello! > > This is somehow offtopic but I can get Resin to compile on my > FreeBSD-Java box. > I`ve downloaded the last resin server (both standalone and ee) and > after the compile when I do make I get the following error: > > ############## > > gcc -o resin resin.o ../common/common.o std.o memory.o ssl.o -lc_r /usr/lib/libssl.a /usr/lib/libcrypto.a -ldl > /usr/libexec/elf/ld: cannot find -ldl > *** Error code 1 > > Stop in /usr/local/resin/src/c/plugin/resin. > *** Error code 1 > > Stop in /usr/local/resin/src/c/plugin. > *** Error code 1 > > Stop in /usr/local/resin. > > ############## > > > It seems that the linker is looking for some kind of archive dl, here > is a snip from ld manual: > > -larchive > --library=archive > Add archive file archive to the list of files to link. > This option may be used any number of times. ld will > search its path-list for occurrences of "libarchive.a" > for every archive specified. > > so ld is looking for a dl.a library which I can`t find. What exactly > do I need for it to work? > > -- > > Thanks, > costin > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030206152556.A97412>