From owner-freebsd-questions@FreeBSD.ORG Thu Jan 26 20:22:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46EEF16A420 for ; Thu, 26 Jan 2006 20:22:32 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id F339243D46 for ; Thu, 26 Jan 2006 20:22:31 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) by smtp1.utdallas.edu (Postfix) with ESMTP id 5809E3892F8; Thu, 26 Jan 2006 14:22:27 -0600 (CST) Date: Thu, 26 Jan 2006 14:22:27 -0600 From: Paul Schmehl To: Dan Nelson Message-ID: In-Reply-To: <20060126201248.GE52542@dan.emsphone.com> References: <3EA9A5749CCE92F90AA269F4@utd59514.utdallas.edu> <20060126171851.GC52542@dan.emsphone.com> <0B30516EA3A817015C05C9D2@utd59514.utdallas.edu> <20060126201248.GE52542@dan.emsphone.com> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-questions@freebsd.org Subject: Re: cannot find -ldl X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2006 20:22:32 -0000 --On Thursday, January 26, 2006 14:12:49 -0600 Dan Nelson wrote: >> > >> > 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, you're referring to configure.in, right? There's no AC_SEARCH >> in that at all. Do I just need to add a line? If so, does it matter >> where I add it? > > Ya, configure.{in,ac}. It doesn't matter much where it goes; at the > bottom is probably safest. You will also need to remove any hardcoded > "-ldl" strings from Makefile.{in,am}. Configure will add "-ldl" to > $LIBS if it turns out to be required. > I followed your instructions, but make still fails: gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o readpass.o -L. -Lopenbsd-compat/ -L/usr/ssl -lssh -lopenbsd-compat -lcrypto -lutil -lz -lcrypt -ldl /usr/bin/ld: cannot find -ldl *** Error code 1 Stop in /usr/home/pauls/Downloads/sara-6.0.7d/src/sssh. *** Error code 1 I put AC_SEARCH_LIBS(dlopen,dl) at the end of configure.in, just before AC_OUTPUT(Makefile). There was no mention of ldl in Makefile.in. Any suggestions? Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu/ir/security/