Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jun 2006 17:24:24 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: linux-opera start script
Message-ID:  <51090743@srv.sem.ipt.ru>
In-Reply-To: <449A67AD.8000204@icyb.net.ua> (Andriy Gapon's message of "Thu, 22 Jun 2006 12:49:33 %2B0300")
References:  <449A67AD.8000204@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51090743>