From owner-freebsd-emulation@freebsd.org Sun Jun 10 20:31:58 2018 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3C9051000D67 for ; Sun, 10 Jun 2018 20:31:58 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C10A676958 for ; Sun, 10 Jun 2018 20:31:57 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 7FC1D1000D60; Sun, 10 Jun 2018 20:31:57 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5AEC81000D5A for ; Sun, 10 Jun 2018 20:31:57 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D292976952 for ; Sun, 10 Jun 2018 20:31:56 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: by mail-pf0-x236.google.com with SMTP id r11-v6so9153307pfl.6 for ; Sun, 10 Jun 2018 13:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=G9QyK6G6N6oRcKng0xZIa/xvy73xK80s+QKVmXPijDM=; b=EasGn8jjeeygL1OdaCIY/BGQ3OflZOS9w2rN2LvtJTjDApsPfRrMtZ1LNSGSlhRddM bWxw/9Sn7dhO9+wvKkbrYmCArlPHmHYh4LFnnYgk2o+al4hfsSoDIZ+RXUTZCkIJY8tI riGvEs88nEa3ntFsakbsXv8O35ELom6DPtEm73uWbcZFMCpk05J2gTnoWUJ5sPQanCA+ 5lbKZecHb4u3YEgFeabav3BQRazcH8zk9IP0bgdUJmYZyIld4MBD1IXKPifgOOW6ulL7 D11TYhQZaNOFf2WM4Je1XiQTp6iEryTCULDShrlHmnwgo+dskv5rkZML4TzBUlgnHCPo ueoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language; bh=G9QyK6G6N6oRcKng0xZIa/xvy73xK80s+QKVmXPijDM=; b=SSMHGDoIMrI6VRDbt0Da6OkAEi3fqN/h3t2AGQFdpxdvu63IkBv/yYhQC4ikSxw4Zj H1Tv/AR9idUIr6M1AMw2AuUssJtsSPOmweaCcnzvuUPP4sc6c6yPlYdDPKjgi5lS96kG Z2eeyWmIyOKdoXIAy8kQP7x6BK+XKhQ8+E4f8tAskWIfq7jqMXHL45FFR7hdd+GNSK3l HP9MAETwkBpvPIRrGmahmDoCUN7ZPlTBVR1su5DwL7Xr3qzLnJabiUvOd55LMlEhjPLf 9upob7X+ZHGMHTETvwGv/1uDFoY9kTjOUNELVTrW1HMBU7CFUDAVf0lgAniPnc8cYbfm z7xw== X-Gm-Message-State: APt69E1AvfNHHIHm1ifDg/3Ty/Ys41Sjbu5BJfiomxXkk1OFwPGqIV3q 6X4x4nB8Zxw4/yubh7LHx/4KjdXW X-Google-Smtp-Source: ADUXVKKMMMOmAbZTtmgR0T+3TqMqgpkCrajAR++mXEcijzezeNCqVnMq/XgdJMehD0To4HJtaZOwhg== X-Received: by 2002:a62:190d:: with SMTP id 13-v6mr14684602pfz.103.1528662715785; Sun, 10 Jun 2018 13:31:55 -0700 (PDT) Received: from [192.168.1.10] (c-73-170-47-221.hsd1.ca.comcast.net. [73.170.47.221]) by smtp.gmail.com with ESMTPSA id r8-v6sm46591862pgv.41.2018.06.10.13.31.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 13:31:55 -0700 (PDT) Sender: Theron Tarigo Subject: Re: Something messed up in linux emulation To: Kevin Oberman Cc: "freebsd-emulation@freebsd.org" References: <77ad12b3-d378-cc70-2819-ccf32dc65bb1@gmail.com> From: Theron Message-ID: Date: Sun, 10 Jun 2018 16:31:54 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.26 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: Sun, 10 Jun 2018 20:31:58 -0000 > I think you miss my point. I know how to install linux-c7-libpng. My > concern is why this whole set of ports was not already installed. Sorry to have been unclear.  I meant to suggest that linux-c7-libpng was already "installed" i.e. registered as such, but that its files were missing due to some other problem. > I kept adding one port after another, but I have no idea where that > ends. The ports  system should install all dependencies automatically. > Since only a single linux emulation port is a dependency, I guessed > that linux-c7-gtk2 is the culprit, bu reinstalling it generated that > odd message: > Installing linux-c7-gtk2-2.24.31... > /compat/linux/usr/bin/gtk-query-immodules-2.0-32: error while loading > shared libraries: libpng15.so.15: cannot open shared object file: No such > file or directory > > Looking at linux-c7-gtk2, I see "USE_LINUX=      atk gdkpixbuf2 pango > xorglibs". I have already re-installed atk and pango, but the others > are not installed. Since pkg shows that these are not installed, I > would have expected that building linux-c7-gtk2 to have installed > them. /usr/ports/Mk/Uses/linux.mk states "# > USE_LINUX     List of Linux packages to depend on." So I am baffled as > to why these ports are not being installed. (I have tried both > portmaster(8) and a simple make(1).) Clearly something is broken here > and it looks a lot like the ports system, mabey linux.mk > . > Deleting /compat/linux/usr/lib/libpng15.so.15* (but leaving linux-c7-libpng "installed", although damaged) and then installing linux-c7-gtk2 seems to reproduce the behavior you are seeing.  If I remove linux-c7-libpng completely, by 'pkg remove' or 'make deinstall', then a 'make install' for linux-c7-gtk2 installs the libpng as expected. On your system, is the Linux libpng port not installed at all, or is there some possibility the installation is damaged? The linux gtk2 has a USE_LINUX for gdkpixbuf2, which in turn has a USE_LINUX for png.  While ideally installing a port would check for all needed files, this doesn't seem to work, at least for the Linux ports.