From owner-freebsd-questions@FreeBSD.ORG Fri Sep 28 15:37:15 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 947AD16A419 for ; Fri, 28 Sep 2007 15:37:15 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 5719B13C458 for ; Fri, 28 Sep 2007 15:37:14 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.14.1) id l8SFbDPK029590; Fri, 28 Sep 2007 10:37:13 -0500 (CDT) (envelope-from dan) Date: Fri, 28 Sep 2007 10:37:13 -0500 From: Dan Nelson To: vittorio Message-ID: <20070928153713.GA62033@dan.emsphone.com> References: <200709280837.16084.vdemart1@tin.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200709280837.16084.vdemart1@tin.it> X-OS: FreeBSD 7.0-CURRENT User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-questions@freebsd.org Subject: Re: Compilation error libpcre.so.0: ELF file OS ABI invalid 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: Fri, 28 Sep 2007 15:37:15 -0000 In the last episode (Sep 28), vittorio said: > Context: Intel Core Duo, FreeBSD 6.2-p7, latest portsnap, gcc-4.2.2. > Updating the statistical program R, some packages fail to compile (I use > tarballs) because this cryptic error pops up > > * Installing *source* package 'MCMCpack' ... > checking for C++ compiler default output file name... a.out > checking whether the C++ compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C++ compiler... grep: error while loading shared libraries: /usr/local/lib/libpcre.so.0: ELF file OS ABI invalid > yes > checking whether c++ accepts -g... grep: error while loading shared libraries: /usr/local/lib/libpcre.so.0: ELF file OS ABI invalid > yes > > It seems that during the compilation a-linux-connected-lib is being looked > for, doesn't it? > > Anyway, what should I do? I'd check $PATH and maybe $LD_PRELOAD for things pointing into /compat/linux . Moving /usr/compat/linux/lib/libpcre.so.0 out of the way might change the error message and help you track down the cause. Running "ktrace -d" or "truss -f" on your port build might help too. Another possibility is that the freebsd-port version of /usr/local/lib/libpcre.so.0 has gotten damaged somehow. FreeBSD's grep doesn't link with pcre so it's sort of unlikely that that would be the cause, though. -- Dan Nelson dnelson@allantgroup.com