From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 4 02:55:47 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 034041065672 for ; Sun, 4 Oct 2009 02:55:47 +0000 (UTC) (envelope-from prvs=1528b9544c=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 8F0898FC0A for ; Sun, 4 Oct 2009 02:55:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=multiplay.co.uk; s=Multiplay; t=1254624311; x=1255229111; q=dns/txt; h=Received: Message-ID:From:To:Subject:Date:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=fyDtY432WY+nJHAPdhezMdA5GaA3o2x+sr 2TgRFl1sM=; b=Php5pQi0+mQqKJfipNzmeXSc1gyAfhaeb++ORzJ4IfS/jXlEhD GRidHwtBTC9yCRPLIEoQN5AjN9a1uRuc4gcuF3LMPAxiaeKX0bYfhOy2OjNtOOnG NUN2Sdxa39fBML5E88hZhtTH0BzcFe2dDXMtNoe9YDtJUAD8BX0bdidLE= X-MDAV-Processed: mail1.multiplay.co.uk, Sun, 04 Oct 2009 03:45:11 +0100 Received: from r2d2 by mail1.multiplay.co.uk (MDaemon PRO v10.0.4) with ESMTP id md50008321175.msg for ; Sun, 04 Oct 2009 03:45:11 +0100 X-Spam-Processed: mail1.multiplay.co.uk, Sun, 04 Oct 2009 03:45:11 +0100 (not processed: message from trusted or authenticated source) X-Authenticated-Sender: Killing@multiplay.co.uk X-MDRemoteIP: 213.123.247.160 X-Return-Path: prvs=1528b9544c=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org Message-ID: <01693A2B7EE64DA78F373BC113A9CF92@multiplay.co.uk> From: "Steven Hartland" To: Date: Sun, 4 Oct 2009 03:45:07 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Subject: How to prevent 64bit library paths being searched for 32bit binaries on amd64? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2009 02:55:47 -0000 I've just been trying to get a 32bit binary to work on amd64 7.0-RELEASE, the binary had some qt4 dependencies so I set about copying these into /usr/local/lib32 but it seems that for some reason /usr/local/lib is searched first which obviously causes problems when here is a 64bit library of the same name. /etc/rc.d/ldconfig start shows:- ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg /usr/local/lib/mysql /usr/local/lib/pth 32-bit compatibility ldconfig path: /usr/lib32 /usr/local/lib32 /usr/local/lib32/mysql /usr/local/lib32/qt4 LD_LIBARY_PATH isn't set So the question is why is /usr/local/lib searched for a 32bit binary? Is it possible the binary itself is setting it and if so how to I override it? Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.