From owner-freebsd-emulation@FreeBSD.ORG Tue Feb 28 18:42:35 2012 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93D25106564A for ; Tue, 28 Feb 2012 18:42:35 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4CF4A8FC0C for ; Tue, 28 Feb 2012 18:42:34 +0000 (UTC) Received: by ggnk4 with SMTP id k4so1907657ggn.13 for ; Tue, 28 Feb 2012 10:42:34 -0800 (PST) Received-SPF: pass (google.com: domain of artemb@gmail.com designates 10.236.181.193 as permitted sender) client-ip=10.236.181.193; Authentication-Results: mr.google.com; spf=pass (google.com: domain of artemb@gmail.com designates 10.236.181.193 as permitted sender) smtp.mail=artemb@gmail.com; dkim=pass header.i=artemb@gmail.com Received: from mr.google.com ([10.236.181.193]) by 10.236.181.193 with SMTP id l41mr30049609yhm.38.1330454554471 (num_hops = 1); Tue, 28 Feb 2012 10:42:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=boUOYA5f/X03+n/y3DZm5rXTd6rPVLbqmr7kOnEqowE=; b=bNBtK6YpWKKNNXxP4+bomkVxVTc2DTqEqg/k2l7Wm1VM2cyh+mj3n6V0igCMEk/EJD rPvKPj4SRRux6nyvQgsJ8b4eCokw+DaQ8NSxnwGHSkhBo9UZyszNX4a/kR9DEdPx/Dxo bZ24ZMrIvnebfiYNt3DO0lS1uYEsnkAKBF5tQ= MIME-Version: 1.0 Received: by 10.236.181.193 with SMTP id l41mr22662970yhm.38.1330453236364; Tue, 28 Feb 2012 10:20:36 -0800 (PST) Sender: artemb@gmail.com Received: by 10.146.159.40 with HTTP; Tue, 28 Feb 2012 10:20:36 -0800 (PST) In-Reply-To: <4F4CA10E.3070508@rawbw.com> References: <4F4CA10E.3070508@rawbw.com> Date: Tue, 28 Feb 2012 10:20:36 -0800 X-Google-Sender-Auth: c9EHz9GSu67y2w-1ILs2PFv1ym8 Message-ID: From: Artem Belevich To: Yuri Content-Type: text/plain; charset=ISO-8859-1 Cc: emulation@freebsd.org Subject: Re: Why ldd(1) launches linux apps? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2012 18:42:35 -0000 lss just sets TRACE_LOADED_OBJECTS environment variable and then execs the binary. FreeBSD's dynamic linker then checks for that variable and, if set, just prints out loaded objects and then exists. When you run ldd on a linux binary, it's *Linux* dynamic linker that gets launched and it may have different way of triggering the trace. That said, ldd seems to work fine on linux binaries on FreeBSD-7, but does indeed launch linux binary in 8-STABLE, so something has changed. If you do 'env LD_TRACE_LOADED_OBJECTS=1 /compat/linux/bin/cp' on 8-STABLE it still works fine. --Artem On Tue, Feb 28, 2012 at 1:40 AM, Yuri wrote: > I noticed the strange thing. > ldd(1) launches all linux apps I tried (skype, acroread9). And it doesn't > launch BSD apps. > > Is this a knows issue? > > Yuri > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org"