Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Jul 2014 22:31:39 +0100
From:      Mike Clarke <jmc-freebsd2@milibyte.co.uk>
To:        freebsd-questions@freebsd.org
Cc:        Maciej Suszko <maciej@suszko.eu>
Subject:   Re: /usr/local/lib/compat/pkg/ cleanup ?
Message-ID:  <1640865.pedBFo5HTy@curlew.lan>
In-Reply-To: <20140702213152.52897e3b@leo.lan>
References:  <20140627161801.GA38362@admin.sibptus.tomsk.ru> <2862326.RiQ9aP1WQA@curlew.lan> <20140702213152.52897e3b@leo.lan>

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



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