x11/fbpanel: pkg fallout at 10.x

Boris Samorodov bsam at passap.ru
Fri Dec 20 13:55:03 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

20.12.2013 10:58, Baptiste Daroussin пишет:
> On Fri, Dec 20, 2013 at 10:42:38AM +0400, Boris Samorodov wrote:
>> Hi All!
>>
>> The last week I started to get pkg-fallout@ emails about x11/fbpanel
>> error:
>> -----
>> cc panel.o misc.o plugin.o gtkbar.o bg.o gtkbgbox.o ev.o run.o xconf.o
>> gconf.o gconf_panel.o gconf_plugins.o -o fbpanel  -L/usr/local/lib
>> -lglib-2.0 -lintl   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0
>> -latk-1.0 -lcairo -pthread -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0
>> -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lfontconfig
>> -L/usr/local/lib -lfreetype   -Wl,--export-dynamic -lgmodule-2.0
>> -pthread -L/usr/local/lib -lglib-2.0 -lintl   -L/usr/local/lib
>> -lglib-2.0 -lintl   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0
>> -latk-1.0 -lcairo -pthread -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0
>> -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lfontconfig
>> -L/usr/local/lib -lfreetype
>> /usr/bin/ld: �: invalid DSO for symbol `XChangeGC' definition
>> //usr/local/lib/libX11.so.6: could not read symbols: Bad value
>> cc: error: linker command failed with exit code 1 (use -v to see invocation)
>> gmake[2]: *** [fbpanel] Error 1
>> -----
>>
>> Full log is here:
>> http://beefy2.isc.freebsd.org/bulk/10amd64-default/2013-12-19_20h45m51s/logs/fbpanel-6.1_4.log
>>
>> However I can not reproduce it myself:
>> http://gw.wart.ru/bulk/10-i386-testing/2013-12-19_21h02m40s/logs/fluxbox-1.3.5.log
>> http://gw.wart.ru/bulk/10-amd64-testing/2013-12-19_21h01m49s/logs/fluxbox-1.3.5.log
>>
>> Any help is appreciated. Thanks.
>>
> 
> That is probably a gtk2 upgrade fallout.
> 
> gtk2 pkgconfig file is not adding -lX11 to LDFLAGS anymore.
> 
> In general: on FreeBSD 10+, the ld(1) behaviour has been changed so that it does
> not recursively get the DT_NEEDED from libraries it linked binaries to.
> 
> Meaning in that case something exposes a X function to fbpanel, but does not
> tell it is needs to link to X11
> 
>> /usr/bin/ld: �: invalid DSO for symbol `XChangeGC' definition
>> //usr/local/lib/libX11.so.6: could not read symbols: Bad value
> 
> LDFLAGS+= -lX11 should solve this.

I've seen some similar commit at the portstree. The problem is: I can't
reproduce the errors (hence can't test a fix).

The strange thing is that my test and pkg-fallout@ use different
environments:

=== pkg-fallout ===
- ---Begin OPTIONS List---
===> The following configuration options are available for fbpanel-6.1_4:
     DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
- ---End OPTIONS List---

- --CONFIGURE_ARGS--
- --prefix=/usr/local
- --End CONFIGURE_ARGS--
=======


=== my poudriere test ===
- ---Begin OPTIONS List---
===> The following configuration options are available for fluxbox-1.3.5:
     DEBUG=off: Install debug symbols
     DOCHTML=off: Install html documentation
     DOCS=on: Build and/or install documentation
     GNOME=off: GNOME desktop environment support
     IMLIB2=off: Imlib 2 image library support
     NLS=on: Native Language Support
     PDFDOCS=off: Build and install PDF documentation
     REMEMBER=on: Enable remember feature
     SLIT=on: Enable slit feature
     SYSTRAY=on: Enable systray feature
     TOOLBAR=on: Enable toolbar feature
     XINERAMA=off: X11 Xinerama extension support
     XRENDER=on: Enable xrender support
===> Use 'make config' to modify these settings
- ---End OPTIONS List---

- --CONFIGURE_ARGS--
- --disable-imlib2 --enable-xinerama --enable-nls --enable-remember
- --enable-slit --enable-systray --enable-toolbar --enable-xrender
- --enable-gnome --x-libraries=/usr/local/lib
- --x-includes=/usr/local/include --prefix=/usr/local
${_LATE_CONFIGURE_ARGS}
- --End CONFIGURE_ARGS--
======


Seems that pkg-fallout does not know anything about port options and
their default values. My poudriere test uses default options. While
pkg-fallout just use the DOCS option.

- -- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCgAGBQJStEwsAAoJEJYOILA6P20oWUkP/R9oAGPCupUMLLPUwxlPPXLq
awBJO2iLNfYUlyW37wj8hAidMyCQpit0T4jcuj+f897Y/I7P2He33s7Z3d/gvzF+
M9E8XXHIRFbJYmeT9HDuPCVaOGBEVrHAHfQ4PBZw0zkhnhyjElMZsv0f8RlnQHFt
EU+PsCUl33LabTpD7by3eVpM/whULSjedpmQEuqDsDn7pCBEGPH5f3Oige1h2VSH
5/Xy/3Iw/M5u5kn8Y83l0j3GmfJVQjNhfwrrqMPJFA5n4d29sMMdcaisiN5QYuNs
kA9EPYt6IdOEv3NqW1G4lyIP5Pk6ijBgYcL0EVf7wy4bOaJ6Mk5W2XSKhV17qiPP
P5Yrsao9qocErT02IPe/O4aW7hDVUeUzr50/rhRP/FzDeE0s7OLOrF/1uf1RST19
BMil5IO1LFeWsbfols/b12lOK+d/8T2am3uaEzKWm/JPH7dlyFQjh5kUsOmwgLY3
ty0QvgqvMHKUwE2tXlQJzhh1aAkerPENTX0sxfO/SChohMPJVE61nxNbZTaQL0Hn
orm81c6quWWNpp+7CMGbe0PdSWxKXSkvQrKhJO6pY9B7QIKSwEvGZfVhJ3VEhmub
LLICpttC2vSjEh6T8T3MS60/xB6Syrp7phdW9qvWnSZImo+RLulxu4OfQdCkJHAY
UjpA3YRXX6XT9RUn2nMI
=WWeA
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list