From owner-freebsd-java Thu Feb 6 5:20: 3 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30ABE37B401 for ; Thu, 6 Feb 2003 05:20:02 -0800 (PST) Received: from relay1.cris.net (relay1.cris.net [212.110.128.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87B7843F3F for ; Thu, 6 Feb 2003 05:19:58 -0800 (PST) (envelope-from ml@phantom.cris.net) Received: from phantom.cris.net (root@phantom.cris.net [212.110.130.74]) by relay1.cris.net (8.12.6/8.12.6) with ESMTP id h16FNxvb083114; Thu, 6 Feb 2003 15:24:00 GMT Received: (from ml@localhost) by phantom.cris.net (8.12.6/8.12.2) id h16DPvUd097456; Thu, 6 Feb 2003 15:25:57 +0200 (EET) (envelope-from ml) Date: Thu, 6 Feb 2003 15:25:56 +0200 From: Alexey Zelkin To: costin Cc: freebsd-java@FreeBSD.ORG Subject: Re: somehow off topic: resin compile Message-ID: <20030206152556.A97412@phantom.cris.net> References: <77258701523.20030206142659@edison.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <77258701523.20030206142659@edison.ro>; from gicabulica@edison.ro on Thu, Feb 06, 2003 at 02:26:59PM +0200 X-Operating-System: FreeBSD 4.7-STABLE i386 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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