From owner-freebsd-questions@FreeBSD.ORG Sat Apr 14 00:03:58 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78DA016A415 for ; Sat, 14 Apr 2007 00:03:58 +0000 (UTC) (envelope-from security@jim-liesl.org) Received: from qsmtp1.mc.surewest.net (qsmtp.mc.surewest.net [66.60.130.145]) by mx1.freebsd.org (Postfix) with SMTP id 86B2313C4BD for ; Sat, 14 Apr 2007 00:02:24 +0000 (UTC) (envelope-from security@jim-liesl.org) Received: (qmail 30277 invoked from network); 13 Apr 2007 16:35:43 -0700 Received: by simscan 1.1.0 ppid: 30258, pid: 30259, t: 4.5829s scanners: regex: 1.1.0 attach: 1.1.0 clamav: 0.84/m:42/d:2665 spam: 3.0.3 Received: from unknown (HELO daemon.jim-liesl.org) (66.60.173.44) by qsmtp1 with SMTP; 13 Apr 2007 16:35:39 -0700 Received: from daemon.jim-liesl.org (localhost [127.0.0.1]) by daemon.jim-liesl.org (Postfix) with ESMTP id C79BE5D70; Fri, 13 Apr 2007 16:35:38 -0700 (PDT) Received: from [127.0.0.1] (daemon.static.surewest.net [192.168.1.15]) by daemon.jim-liesl.org (Postfix) with ESMTP id 710145D6F; Fri, 13 Apr 2007 16:35:38 -0700 (PDT) Message-ID: <462013C9.2080909@jim-liesl.org> Date: Fri, 13 Apr 2007 16:35:37 -0700 From: security User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-ports@freebsd.org, freebsd-questions@freebsd.org X-Enigmail-Version: 0.94.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on qsmtp1.surewest.net X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.3 Cc: Subject: linker problems building clamav 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: Sat, 14 Apr 2007 00:03:58 -0000 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 I've gotten myself wedged with multiple versions of shared objects. I've got different versions of libssl and libcrypto in /lib and /usr/local/lib. I've rebuilt openssl and libssh2 in ports and told ldconfig to rebuild it's cache how do gracefully get out of this? thanks jim Here's the error: cc -O2 -fno-strict-aliasing -pipe -o .libs/clamd output.o cfgparser.o getopt.o misc.o network.o options.o clamd.o tcpserver.o localserver.o session.o thrmgr.o server-th.o scanner.o others.o clamuko.o dazukoio_compat12.o dazukoio.o -L/usr/local/lib ../libclamav/.libs/libclamav.so /usr/local/lib/libiconv.so -lbz2 /usr/local/lib/libgmp.so /usr/local/lib/libcurl.so -lssh2 -lz -lssl -lcrypto -lthr -Wl,--rpath -Wl,/usr/local/lib /usr/bin/ld: warning: libssl.so.4, needed by /usr/local/lib/libssh2.so, may conflict with libssl.so.5 /usr/bin/ld: warning: libcrypto.so.4, needed by /usr/local/lib/libssh2.so, may conflict with libcrypto.so.5 network.o(.text+0x2b): In function `r_gethostbyname': : undefined reference to `gethostbyname_r' *** Error code 1 ldconfig -r | grep libcrypto 13:-lcrypto.3 => /lib/libcrypto.so.3 49:-lcrypto.4 => /lib/libcrypto.so.4 156:-lcrypto.1 => /usr/lib/compat/libcrypto.so.1 157:-lcrypto.2 => /usr/lib/compat/libcrypto.so.2 266:-lcrypto.5 => /usr/local/lib/libcrypto.so.5 676:-lcrypto.3 => /usr/local/lib/compat/libcrypto.so.3 ldconfig -r | grep libssl 105:-lssl.4 => /usr/lib/libssl.so.4 127:-lssl.3 => /usr/lib/libssl.so.3 172:-lssl.1 => /usr/lib/compat/libssl.so.1 173:-lssl.2 => /usr/lib/compat/libssl.so.2 474:-lssl3.1 => /usr/local/lib/libssl3.so.1 540:-lssl.5 => /usr/local/lib/libssl.so.5 722:-lssl.3 => /usr/local/lib/compat/libssl.so.3