From owner-freebsd-ports@FreeBSD.ORG Thu Jun 22 13:23:15 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CF1016A5BF for ; Thu, 22 Jun 2006 13:23:15 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [80.253.10.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id A71A043D53 for ; Thu, 22 Jun 2006 13:23:14 +0000 (GMT) (envelope-from bsam@ipt.ru) Received: from srv.sem.ipt.ru ([192.168.12.1]) by mail.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1FtP9M-0003X9-RA; Thu, 22 Jun 2006 17:23:12 +0400 Received: from bsam by srv.sem.ipt.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1FtPAW-000BE9-I1; Thu, 22 Jun 2006 17:24:24 +0400 To: Andriy Gapon References: <449A67AD.8000204@icyb.net.ua> From: Boris Samorodov Date: Thu, 22 Jun 2006 17:24:24 +0400 In-Reply-To: <449A67AD.8000204@icyb.net.ua> (Andriy Gapon's message of "Thu, 22 Jun 2006 12:49:33 +0300") Message-ID: <51090743@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-ports@freebsd.org Subject: Re: linux-opera start script X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 13:23:15 -0000 On Thu, 22 Jun 2006 12:49:33 +0300 Andriy Gapon wrote: > I am getting the following message, probably completely harmless, when > I start linux-opera: > $ linux-opera > sh: error while loading shared libraries: > /usr/local/lib/compat/libtermcap.so.2: ELF file ABI version invalid > I see the following lines in linux-opera script: > # Make sure the compat libraries are found > test -d /usr/local/lib/compat/ && > LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib/compat/" > I am not sure why linux-opera would need /usr/local/lib/compat/, but > this is how LD_LIBRARY_PATH gets spammed. Seems I understand what is going on. It is a side effect of installing linux programms with FreeBSD environment. Install.sh script of linux-opera port has function guess_os() with: ----- os=`uname -s` || error 'uname' case $os in FreeBSD|NetBSD) os=AnyBSD;; SunOS*) os=SunOS;; esac ----- Sure it's the FreeBSD. And later at this script has: ----- case "${os}" in AnyBSD|OpenBSD) wrapper_contain="${wrapper_contain} # Make sure the compat libraries are found test -d /usr/local/lib/compat/ && LD_LIBRARY_PATH=\"\${LD_LIBRARY_PATH}:/usr/loc al/lib/compat/\" " ;; ----- All is OK when Opera is installed as a native package/port. But not while installing it as a linux port. Upstream developers shouldn't be bothered by determining the TARGET_OS. ;-) WBR -- Boris B. Samorodov, Research Engineer InPharmTech Co, http://www.ipt.ru Telephone & Internet Service Provider