Compilation error libpcre.so.0: ELF file OS ABI invalid

Dan Nelson dnelson at allantgroup.com
Fri Sep 28 08:37:15 PDT 2007


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 at allantgroup.com


More information about the freebsd-questions mailing list