amd64/171250: ldd32 cannot find some i386 libraries

Konstantin Belousov kostikbel at
Sun Sep 2 16:00:31 UTC 2012

The following reply was made to PR amd64/171250; it has been noted by GNATS.

From: Konstantin Belousov <kostikbel at>
To: David Naylor <naylor.b.david at>
Cc: freebsd-gnats-submit at
Subject: Re: amd64/171250: ldd32 cannot find some i386 libraries
Date: Sun, 2 Sep 2012 18:57:55 +0300

 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 On Sun, Sep 02, 2012 at 12:42:43PM +0000, David Naylor wrote:
 > ldd32 does not find libraries, yet ldconfig lists them as known. =20
 > # ldconfig -32 -r | grep directories
 >         search directories: /usr/lib32:/usr/local/lib32:/usr/local/lib32/=
 You should also look at the DT_RPATH and DT_RUNPATH tags in your binary.
 I suspect that there is some path hardcoded which points to the
 native 64bit libraries dir.
 > # ldconfig -32 -r | grep 'lssl.6\|iconv.3'
 >         94:-lssl.6 =3D> /usr/lib32/
 >         124:-liconv.3 =3D> /usr/local/lib32/
 > # ldd32 /usr/local/lib32/
 > /usr/local/lib32/
 > =3D> not found (0)
 If DT_R*PATH specified native directory, dynamic linker found the which is for the wrong architecture, and claimed the
 dependency not satisfied.
 > =3D> /usr/lib32/ (0x281f4000)
 > =3D> /usr/lib32/ (0x28351000)
 > =3D> /usr/lib32/ (0x28376000)
 > =3D> not found (0)
 > =3D> /usr/lib32/ (0x28390000)
 > =3D> /usr/lib32/ (0x283a4000)
 > =3D> /usr/lib32/ (0x2806c000)
 > >How-To-Repeat:
 > Install wine-fbsd64 from and follow instruc=
 tions above. =20
 > >Fix:
 > Explicitly include all library paths in LD_32_LIBRARY_PATH:
 > # env LD_32_LIBRARY_PATH=3D/usr/local/lib32:/usr/lib32 ldd32 /usr/local/l=
 > /usr/local/lib32/
 > =3D> /usr/lib32/ (0x281f4000)
 If my theory holds, ths explicit use of LD_32_LIBRARY_PATH helps because
 the env var path has precedence over the path from tag.
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 Version: GnuPG v1.4.12 (FreeBSD)

More information about the freebsd-amd64 mailing list