From owner-freebsd-questions@freebsd.org Fri Jun 17 22:33:30 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BAA05A78864 for ; Fri, 17 Jun 2016 22:33:30 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from cyrus.watson.org (cyrus.watson.org [198.74.231.69]) by mx1.freebsd.org (Postfix) with ESMTP id 74747243D for ; Fri, 17 Jun 2016 22:33:30 +0000 (UTC) (envelope-from doug@fledge.watson.org) Received: from fledge.watson.org (fledge.watson.org [198.74.231.63]) by cyrus.watson.org (Postfix) with ESMTPS id 9072E46B2E for ; Fri, 17 Jun 2016 18:33:29 -0400 (EDT) Received: from fledge.watson.org (doug@localhost.watson.org [127.0.0.1]) by fledge.watson.org (8.15.2/8.15.2) with ESMTP id u5HMXTDR092487 for ; Fri, 17 Jun 2016 18:33:29 -0400 (EDT) (envelope-from doug@fledge.watson.org) Received: from localhost (doug@localhost) by fledge.watson.org (8.15.2/8.15.2/Submit) with ESMTP id u5HMXTxp092484 for ; Fri, 17 Jun 2016 18:33:29 -0400 (EDT) (envelope-from doug@fledge.watson.org) Date: Fri, 17 Jun 2016 18:33:29 -0400 (EDT) From: doug Reply-To: doug@safeport.com To: freebsd-questions@FreeBSD.ORG Subject: Re: Undefined symbol in gtk3-3.18.8_3 was pkg error - solved In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (fledge.watson.org [127.0.0.1]); Fri, 17 Jun 2016 18:33:29 -0400 (EDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2016 22:33:30 -0000 On Fri, 17 Jun 2016, doug wrote: > A spectacularly bad subject corrected. > > On Fri, 17 Jun 2016, doug@safeport.com wrote: > >> I tried to install a package that ended up uninstalling xfce and all >> packages using gtk3 and/or webkit. I just hit the 'y' to fast so that was >> my error. >> >> To correct this I deleted the package and then did an autoremove so the >> xfce install would bring back any updates. So was my thinking anyway. gtk3 >> and webkit came back as: >> >> gtk-xfce-engine-3.2.0 >> gtk2-2.24.29_2 >> gtk3-3.18.8_3 >> webkit2-gtk3-2.8.5_3 >> >> Installing firefox got firefox-47.0_1,1. Runing firefox or any package with >> a gtk3 dependency gets >> >> /usr/local/lib/libgtk-3.so.0: Undefined symbol >> "g_param_spec_get_name_quark" >> >> libgtk-3.so.0 is a symlink to libgtk-3.so.0.1800.8. A diff shows this >> module is identical to one on another system that works. On that system we >> >> gtk-xfce-engine-3.2.0 >> gtk2-2.24.29_2 >> gtk3-3.18.8_3 >> webkit2-gtk3-2.8.5_2 >> >> lastly the symbol g_param_spec_get_name_quark is in the module and using >> libgtk-3.so.0.1800.8 from the working system makes no difference. >> >> I do not know how to procede. >> > > My facts were okay but this has nothing to do with pkg per se except > dependency errors in some ports maybe. Using ld to generate a map of > libgtk-3.so.0.1800.8 gets > > ld: warning: cannot find entry symbol _start; not setting start address > //lib/libc.so.7: undefined reference to `__progname' > //usr/local/lib/libgdk-3.so.0: undefined reference to `XRRFreeMonitors' > libgtk-3.so.0.1800.8: undefined reference to > `pango_attr_foreground_alpha_new' > //usr/local/lib/libgdk-3.so.0: undefined reference to `XRRGetMonitors' > libgtk-3.so.0.1800.8: undefined reference to `g_param_spec_get_name_quark' > libgtk-3.so.0.1800.8: undefined reference to > `pango_fc_font_map_config_changed' > libgtk-3.so.0.1800.8: undefined reference to `pango_renderer_set_alpha' > libgtk-3.so.0.1800.8: undefined reference to `pango_renderer_get_alpha' > libgtk-3.so.0.1800.8: undefined reference to `pango_attr_font_features_new' > libgtk-3.so.0.1800.8: undefined reference to > `pango_attr_background_alpha_new' > //usr/local/lib/libglib-2.0.so.0: undefined reference to `environ' > > So in my working system the reference to g_param_spec_get_name_quark is > resolved dynamically or it is not used the firefox et all. > > It is still true I do not know what do do about this. Any thoughts welcomed Gotta love the internet. Okay, older versions of packages are in /var/cache/pkg. So for firefox the answer was remove the current version and do a 'pkg add' on and older version. In my case firefox-43.0.4_1,1 works with the version of gtk3 and firefox-47.0_1,1 does not.