Building the glade Slackbuilds package gets error.
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Building the glade Slackbuilds package gets error.
Slackware 14.2-current (jul 2020).
Hi: I'm trying to compile the slackbuilds package for pychess. One of its dependencies is glade. So I began building the glade slackbuilds package but got this:
Code:
../gladeui/glade-widget.h:342:13: warning: Deprecated pre-processor symbol, replace with
342 | G_CONST_RETURN gchar *glade_widget_get_name (GladeWidget *widget);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../gladeui/glade-widget.h:352:13: warning: Deprecated pre-processor symbol, replace with
352 | G_CONST_RETURN gchar *glade_widget_get_internal (GladeWidget *widget);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../gladeui/glade-widget.h:385:13: warning: Deprecated pre-processor symbol, replace with
385 | G_CONST_RETURN gchar *glade_widget_support_warning (GladeWidget *widget);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from glade-project.h:5,
from glade-signal-model.c:24:
../gladeui/glade-command.h:73:13: warning: Deprecated pre-processor symbol, replace with
73 | G_CONST_RETURN gchar *glade_command_description (GladeCommand *command);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
glade-signal-model.c:68:1: error: conflicting types for 'g_ptr_array_find'
68 | g_ptr_array_find (GPtrArray *array, gpointer data)
| ^~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib.h:31,
from /usr/include/glib-2.0/gobject/gbinding.h:28,
from /usr/include/glib-2.0/glib-object.h:22,
from glade-signal-model.h:23,
from glade-signal-model.c:23:
/usr/include/glib-2.0/glib/garray.h:217:12: note: previous declaration of 'g_ptr_array_find' was here
217 | gboolean g_ptr_array_find (GPtrArray *haystack,
| ^~~~~~~~~~~~~~~~
make[3]: *** [Makefile:1181: libgladeui_2_la-glade-signal-model.lo] Error 1
make[3]: Leaving directory '/tmp/SBo/glade-3.18.3/gladeui'
make[2]: *** [Makefile:697: all] Error 2
make[2]: Leaving directory '/tmp/SBo/glade-3.18.3/gladeui'
make[1]: *** [Makefile:494: all-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/glade-3.18.3'
make: *** [Makefile:423: all] Error 2
root@darkstar:/backup_almacen/soft/pychess/glade#
-current includes glade 3.38.2 and you're trying to build 3.18.3. It might be too old of a version to work with the libraries included with -current.
However, as cwizardone stated, glade is already likely included in your system and you can just skip that dependency in your build order. SBo packages are only tested against 14.2, so they may have dependencies listed that have since been added during the development of -current.
Yes it is. Now pychess depends on gtksourceview3 which in turn depends on glade. When building gtksourceview3 there was a message complaining about glade (maybe be the version number). So I downloaded the Slackbuilds package for glade and began to compile getting said error.
"You can probably download a package from your favorite mirror": you mean a binary?
-current includes glade 3.38.2 and you're trying to build 3.18.3. It might be too old of a version to work with the libraries included with -current.
However, as cwizardone stated, glade is already likely included in your system and you can just skip that dependency in your build order. SBo packages are only tested against 14.2, so they may have dependencies listed that have since been added during the development of -current.
I did see glade is included in my system but... read post #4 please.
SBo does no testing for their packages on -current. With there being almost 5 years of updates in -current, it's possible that a lot of packages won't build as is.
Due to this, ponce has decided to fork the SBo repo and try to make modifications to get packages to build on -current. However, he doesn't remove any packages from the REQUIRES line if they've been added to -current, because it would increase his work exponentially when SBo has its public updates.
Make sure you read the first postcompletely before you start using his repo. If you find packages that can't build, search the thread and if there aren't any posts on it, you can post your errors and some might be able to help.
That being said, gtksourceview3 has also been added to -current, so you don't need that either.
Please check out CHANGES_AND_HINTS.TXT to see what packages have been added to -current. Then make sure you don't try and build those when you're building packages from SBo or ponce's repo.
I ran the Slackbuilds script without caring for the dependencies and it build the package OK. Now I ran pychess (one of the binaries) and got this:
Code:
bill@darkstar:/backup_almacen/soft/pychess$ pychess
ERROR: Not all dependencies installed! You can find them in INSTALL
Namespace GtkSource not available
bill@darkstar:/backup_almacen/soft/pychess$
If I had to guess, I'd say it's probably because it was run with python2 instead of python3. From my understanding, python2 has had a lot of the dependencies that existed on 14.2 that were rebuilt to just python3 in -current. You might be able to simply edit the SlackBuild and change:
is for gtksourceview3. Have you installed a Python 3 version for pychess ?
There is some version incompatibility. But you should not have two version of gtksourceview3 (current and SBo). So you should check for tests when you install pychess.
is for gtksourceview3. Have you installed a Python 3 version for pychess ?
There is some version incompatibility. But you should not have two version of gtksourceview3 (current and SBo). So you should check for tests when you install pychess.
Code:
python 2.7.18 (default, Apr 20 2020, 19:19:54)
[GCC 9.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
So it seems the python version installed is 2. "So you should check for tests when you install pychess": what is to "check for tests"?
python 2.7.18 (default, Apr 20 2020, 19:19:54)
[GCC 9.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
So it seems the python version installed is 2. "So you should check for tests when you install pychess": what is to "check for tests"?
There is also python3 with a lot more modules than for python2 with is now somewhat deprecated.
python is a link to python2.7
So if you type :
python3 you will have :
Python 3.9.2 (default, Feb 19 2021, 13:07:40)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
or 3.8 if you have an older current Slackware.
So if you change python to python3 in the Slackbuild and rerun the script you will have pychess with python3 as said above.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.