From owner-freebsd-questions@FreeBSD.ORG Wed Jul 2 21:34:55 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02A75405 for ; Wed, 2 Jul 2014 21:34:55 +0000 (UTC) Received: from avasout08.plus.net (avasout08.plus.net [212.159.14.20]) by mx1.freebsd.org (Postfix) with ESMTP id 8A0EF2486 for ; Wed, 2 Jul 2014 21:34:53 +0000 (UTC) Received: from curlew.milibyte.co.uk ([84.92.153.232]) by avasout08 with smtp id MZXi1o004516WCc01ZXjWb; Wed, 02 Jul 2014 22:31:43 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=fOK33Pqe c=1 sm=1 tr=0 a=lfSX4pPLp9EkufIcToJk/A==:117 a=lfSX4pPLp9EkufIcToJk/A==:17 a=D7rCoLxHAAAA:8 a=0Bzu9jTXAAAA:8 a=NmrU6LgK5G8A:10 a=Lbb8GXiJKu4A:10 a=ZTb9aqGL9YkA:10 a=8nJEP1OIZ-IA:10 a=xi5EAx_yaZ1XaVn2gxwA:9 a=wPNLvfGTeEIA:10 Received: from curlew.lan ([192.168.1.13]) by curlew.milibyte.co.uk with esmtp (Exim 4.82) (envelope-from ) id 1X2S7x-000Kpj-4J; Wed, 02 Jul 2014 22:31:42 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Wed, 02 Jul 2014 22:31:39 +0100 Message-ID: <1640865.pedBFo5HTy@curlew.lan> User-Agent: KMail/4.12.5 (FreeBSD/9.1-RELEASE-p14; KDE/4.12.5; amd64; ; ) In-Reply-To: <20140702213152.52897e3b@leo.lan> References: <20140627161801.GA38362@admin.sibptus.tomsk.ru> <2862326.RiQ9aP1WQA@curlew.lan> <20140702213152.52897e3b@leo.lan> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.1.13 X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on curlew.lan X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Subject: Re: /usr/local/lib/compat/pkg/ cleanup ? Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="iso-8859-1" X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on curlew.milibyte.co.uk) Cc: Maciej Suszko X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2014 21:34:55 -0000 On Wednesday 02 July 2014 21:31:52 Maciej Suszko wrote: > Accroding to rtld(1): > > (...) On 64-bit architectures, the linker for 32-bit objects > recognizes all the environment variables listed below, but is being > prefixed with LD_32_ > > It's been quite a long time since I last used i386 binaries (except > those ran via linuxulator), but your /usr/local/bin32/wmc is > compiled against 32-bit libintl.so.9 and libiconv.so.3 (located > in /usr/local/lib32) and ldd probably see some architecture > mismatch, showing "not found (0)". You can always try to use > truss(1) and check what is going on, where all libraries are > searched. Yes, that's it. Putting /usr/local/lib32:/usr/lib32 into LD_32_LIBRARY_PATH got rid of almost all the "not found" lines with just one exception: curlew:/tmp% ldd /usr/local/lib32/libgnutls.so.26 /usr/local/lib32/libgnutls.so.26: libnettle.so.4 => not found (0) libgmp.so.10 => not found (0) libhogweed.so.2 => not found (0) libz.so.6 => /usr/lib32/libz.so.6 (0x28255000) libintl.so.9 => /usr/local/lib32/libintl.so.9 (0x28269000) libtasn1.so.7 => not found (0) libp11-kit.so.0 => not found (0) libthr.so.3 => /usr/lib32/libthr.so.3 (0x28272000) libc.so.7 => /usr/lib32/libc.so.7 (0x2806c000) libiconv.so.3 => /usr/local/lib32/libiconv.so.3 (0x28292000) And it looks like libnettle.so.4, libgmp.so.10, libhogweed.so.2, libtasn1.so.7 and libp11-kit.so.0 really are missing dependencies. Files exist but only 64 bit versions: curlew:/tmp% ls -l `locate libnettle.so.4 libgmp.so.10 libhogweed.so.2 libtasn1.so.7 libp11-kit.so.0` lrwxr-xr-x 1 root wheel 16 27 Apr 13:50 /usr/local/lib/libgmp.so.10@ -> libgmp.so.10.1.3 -rwxr-xr-x 1 root wheel 542099 27 Apr 13:50 /usr/local/lib/libgmp.so.10.1.3* lrwxr-xr-x 1 root wheel 17 27 Apr 13:59 /usr/local/lib/libhogweed.so.2@ -> libhogweed.so.2.5 -r--r--r-- 1 root wheel 3218117 27 Apr 13:59 /usr/local/lib/libhogweed.so.2.5 lrwxr-xr-x 1 root wheel 16 27 Apr 13:59 /usr/local/lib/libnettle.so.4@ -> libnettle.so.4.7 -r--r--r-- 1 root wheel 1898843 27 Apr 13:59 /usr/local/lib/libnettle.so.4.7 lrwxr-xr-x 1 root wheel 19 27 Apr 14:00 /usr/local/lib/libp11- kit.so.0@ -> libp11-kit.so.0.0.0 -rwxr-xr-x 1 root wheel 264919 27 Apr 14:00 /usr/local/lib/libp11- kit.so.0.0.0* -rwxr-xr-x 1 root wheel 83770 27 Apr 13:59 /usr/local/lib/libtasn1.so.7* Pkg info shows that i386-wine-devel requires these libraries but doesn't provide them so I would have expected the extra dependencies to have been pulled in when I ran portmaster to rebuild i386-wine- devel but this did not happen. -- Mike Clarke