LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-02-2021, 01:54 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
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#
What can I do?
 
Old 04-02-2021, 02:18 PM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,086

Rep: Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262
Isn't glade included in -current?
You can probably download a package from your favorite mirror.
 
Old 04-02-2021, 02:31 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
-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.
 
Old 04-02-2021, 02:48 PM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
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?
 
Old 04-02-2021, 02:51 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by bassmadrigal View Post
-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.
 
Old 04-02-2021, 03:46 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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 post completely 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.
 
1 members found this post helpful.
Old 04-02-2021, 04:15 PM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
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$
What went wrong?

EDIT: I attached the INSTALL file.
Attached Files
File Type: txt INSTALL.txt (1.9 KB, 8 views)

Last edited by stf92; 04-02-2021 at 04:24 PM.
 
Old 04-02-2021, 06:09 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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:

Code:
python setup.py install --root=$PKG
to

Code:
python3 setup.py install --root=$PKG
and rerun the SlackBuild.
 
Old 04-02-2021, 06:38 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I did what you said but the result was the same as before:
Code:
ERROR: Not all dependencies installed! You can find them in INSTALL
Namespace GtkSource not available
 
Old 04-02-2021, 06:56 PM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Then I would make sure you read the first post of the thread I linked to earlier and then, if needed, take the discussion to that thread.
 
Old 04-03-2021, 12:42 PM   #11
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 398

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Quote:
Namespace GtkSource not available
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.
 
Old 04-03-2021, 01:40 PM   #12
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by BrunoLafleur View Post
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"?
 
Old 04-03-2021, 02:53 PM   #13
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 398

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Quote:
Originally Posted by stf92 View Post
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"?
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] Building "pygobject3-python3" package from SlackBuilds fails. SandroMacabre Slackware 8 06-16-2020 12:12 PM
Building package got from Slackbuilds.org fails tiuz Slackware 7 06-23-2014 09:45 AM
Glade 2.5.0 and Perl-Glade-Two - a little help please Lake-end Programming 1 03-07-2005 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration