Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jun 2016 18:33:29 -0400 (EDT)
From:      doug <doug@fledge.watson.org>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Undefined symbol in gtk3-3.18.8_3 was pkg error - solved
Message-ID:  <alpine.BSF.2.20.1606171827440.78022@fledge.watson.org>
In-Reply-To: <alpine.BSF.2.20.1606171523040.78022@fledge.watson.org>
References:  <alpine.BSF.2.00.1606171146440.99097@bucksport.safeport.com> <alpine.BSF.2.20.1606171523040.78022@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1606171827440.78022>