From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0140E1381F3 for ; Wed, 9 Oct 2013 21:52:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8DB98E09EA; Wed, 9 Oct 2013 21:52:26 +0000 (UTC) Received: from mail-we0-f170.google.com (mail-we0-f170.google.com [74.125.82.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 728F7E09B6 for ; Wed, 9 Oct 2013 21:52:25 +0000 (UTC) Received: by mail-we0-f170.google.com with SMTP id u57so1585888wes.1 for ; Wed, 09 Oct 2013 14:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=0UlOOUQ5jc0mduLuajmLWD5VBvJbpO6e74SR3xdMCLY=; b=qDTrAJkPcx1hJbD+n7NQcrciJDtcd4WXGg6r9SEFfqVu7AR1SJhbZESuidZs+o2SoR XcU40RMNqPtJca8QkVOzDQx5a6ytEnG7lVujbUCIntYpviYmikLL8YkQNPpPg2dUdsqJ h+7r7S0vx+GONTSPYnUSP4cwUbpyHC8CYiwNGeRcHB9j0OfYA5L2IKd+AqSLVaEQxvva pQTWHG9Ec/B9dt4tFm0Rgc6xj0k5skFKG0MDdD9UexSyVXb3AJbUvrCebPbt+Z9tXsAs N5TstRYi8IKS3+a7lGdWkLMNxWDYtryUBbVmL8lwzPokTFzOsMgbKCN9Fw8xqXyKR/hp cqkQ== X-Received: by 10.194.222.2 with SMTP id qi2mr9015119wjc.14.1381355544175; Wed, 09 Oct 2013 14:52:24 -0700 (PDT) Received: from [172.20.0.41] (196-210-126-91.dynamic.isadsl.co.za. [196.210.126.91]) by mx.google.com with ESMTPSA id dl10sm19487246wib.1.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 09 Oct 2013 14:52:23 -0700 (PDT) Message-ID: <5255D013.8070108@gmail.com> Date: Wed, 09 Oct 2013 23:52:19 +0200 From: Alan McKinnon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Error with version of libraries with scilab References: <20131009214128.GA17114@jrm> In-Reply-To: <20131009214128.GA17114@jrm> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Archives-Salt: dbf3090f-62ea-4ea5-bbc9-a089982a8523 X-Archives-Hash: 6bcfca77d25ab5d09a9b7061b1d57157 On 09/10/2013 23:41, José Romildo Malaquias wrote: > Hello. > > I have installed the *binary distribution of scilab* available form its > download page. > > About two months ago, I was using it without problems. > > Now it does not work anymore. Running the binary gives the following > error message: > > $ /alt/scilab-5.4.1/bin/scilab > scilab-bin: /alt/scilab-5.4.1/lib/thirdparty/libz.so.1: version `ZLIB_1.2.3.4' not found (required by /usr/lib64/libpng16.so.16) > > I need helping understanding this message and fixing this issue on my > ~amd64 system. > > Romildo > libpng16 is a library you already have on your system (not bundled with scilab). And strangely, this *system* library is complaining that it can't find the correct version of libz. These libs have names (sonames) so you can tell different versions apart and use the right one. But the system libpng has no business trying to use a third party app under any circumstances. And in fact in regular use it doesn't, see mine: $ ldd /usr/lib64/libpng16.so.16 linux-vdso.so.1 (0x00007fff7d79a000) libz.so.1 => /lib64/libz.so.1 (0x00007ff9ad6ab000) libm.so.6 => /lib64/libm.so.6 (0x00007ff9ad3b5000) libc.so.6 => /lib64/libc.so.6 (0x00007ff9ad00a000) /lib64/ld-linux-x86-64.so.2 (0x00007ff9adb3c000) See? system libpng uses system libz. How does this happen? Easy. The authors of scilab are probably fiddling with LD_LIBRARY_PATH, which just happens to be one of the more dangerous things you can do in Unix. Go find the startup script for scilab and edit the mods to LD_LIBRARY_PATH to put the scilab directory at the end (not the beginning where it is now) -- Alan McKinnon alan.mckinnon@gmail.com