From owner-freebsd-questions@FreeBSD.ORG Fri Aug 13 04:30:12 2010 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B79081065673 for ; Fri, 13 Aug 2010 04:30:12 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 50A458FC1B for ; Fri, 13 Aug 2010 04:30:12 +0000 (UTC) Received: by wyj26 with SMTP id 26so2789807wyj.13 for ; Thu, 12 Aug 2010 21:30:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to:date :message-id:subject:from:to:cc:content-type; bh=t8lWLaCWgn4bo4hBWAP4NImHJOggaO4ejQaxggy9Gd0=; b=QyedNWGDYwWUs+vWH0UyluYI1706PTOSnpo6tp29+OhMR/6xhO3ACJsQfmAQq0WNa8 b0ubPFAhPfX+gzZmoet1qoXHEIzLeKbesEtoG9vDye4f0xmvlWHc08IjQ4Spqk97cyDW q3dAsfJDfUzeYSFrbUw0yCfI9u0SrHLuJvr34= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=pkOx2UVq+G70knWhRHQU5Q0RrhEK1nzsrD4e99KoNSqG61E1eMhN544ONMJwImLNd8 QZkwP9+i64asbHyknUBmXyWx4OdqSD1RsMxXQKCvLRG2PuRNh6ruka55LluIAUbumm8q R1pctVB81gfTEgReqjX42bW9l/PyKIfTvGuNI= MIME-Version: 1.0 Received: by 10.216.237.100 with SMTP id x78mr716048weq.114.1281673810956; Thu, 12 Aug 2010 21:30:10 -0700 (PDT) Received: by 10.216.183.212 with HTTP; Thu, 12 Aug 2010 21:30:10 -0700 (PDT) Date: Fri, 13 Aug 2010 04:30:10 +0000 Message-ID: From: "b. f." To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Yuri Subject: Re: Is there a way to rebuild 32-bit libraries under amd64? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2010 04:30:12 -0000 >I have 8.0-STABLE amd64 machine, and I need to run some 32-bit FreeBSD >process which runs fine on 8.0-STABLE i386. > >So I copied all shared libs needed by it from i386 into there respective >locations on amd64, but under lib32/ folder. > libexecinfo.so.1 => /usr/local/lib32/libexecinfo.so.1 (0x289ca000) > libffi.so.5 => /usr/local/lib32/libffi.so.5 (0x289d5000) > libstdc++.so.6 => /usr/local/lib32/libstdc++.so.6 (0x289da000) > libm.so.5 => /usr/lib32/libm.so.5 (0x28ac4000) > libgcc_s.so.1 => /usr/local/gcc/4.5.0-32bit/lib/libgcc_s.so.1 >(0x28add000) > libthr.so.3 => /usr/lib32/libthr.so.3 (0x28ae9000) > libc.so.7 => /usr/lib32/libc.so.7 (0x28afe000) > >But the process crashes. After debugging I found that regexec returns >result different from what it returns on i386 with the same input. > >So my question is: is there a way to rebuild for example >/usr/lib32/libc.so.7 and /usr/lib32/libthr.so.3 on amd64? Or what may >cause such incompatibility? Did you install the 32-bit compatibility libraries and utilities on amd64, by selecting the lib32 option with sysinstall(8), or by running ../lib32/install.sh from the FreeBSD media, or by rebuilding and reinstalling world without a WITHOUT_LIB32 defined in src.conf(5) or make.conf(5)? Then did you make sure that rtld(1) has the proper hints to find any needed 32-bit libraries that are not in the lib32 part of the base system, by defining the right values for ldconfig32_paths and/or ldconfig_local32_dirs in rc.conf(5)? b.