LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-14-2021, 08:33 PM   #1
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
FYI - Inkscape-1.0.2 does not compile on -current due to Glib2-2.68 change


I found the following bug reports:

Inkscape: Fail to build against glib:2.68.0
https://gitlab.com/inkscape/inkscape/-/issues/2289

gmacros: Guard C++ code with extern "C++"
https://gitlab.gnome.org/GNOME/glib/..._requests/1935

The summary is that any program that includes the glib headers in an extern "C" block needs to be fixed not to do that. Such programs fail to compile with glib2-2.68, but binaries compiled with an older glib2 still run.

Inkscape fixed the problem in its master branch. That compiles and runs.

This is not a Slackware problem, just a FYI.
Ed
 
Old 04-14-2021, 08:41 PM   #2
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 977

Rep: Reputation: 239Reputation: 239Reputation: 239
Since when is this compilation broken? Just now?? Last weekend I re-compiled inkscape without a problem on current:
Quote:
bash-5.1$ ls -l /var/log/packages/glib2-2.68.1-x86_64-1
-rw-r--r-- 1 root root 45316 Apr 10 23:37 /var/log/packages/glib2-2.68.1-x86_64-1
bash-5.1$ ls -l /var/log/packages/inkscape-1.0.2-x86_64-1ponce
-rw-r--r-- 1 root root 194044 Apr 11 02:09 /var/log/packages/inkscape-1.0.2-x86_64-1ponce
 
Old 04-14-2021, 08:52 PM   #3
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Original Poster
Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
Just now, but I am using the source from the Inkscape website and my build script. Ponce may have fixed the problem on SBo.

ETA: The difference may be due to gcc 10.3.
Ed

Last edited by EdGr; 04-14-2021 at 09:00 PM.
 
Old 04-14-2021, 09:02 PM   #4
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 977

Rep: Reputation: 239Reputation: 239Reputation: 239
Yip, just checked; ponce's SBo script includes a glib2-2.68 patch
 
Old 04-14-2021, 09:11 PM   #5
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Original Poster
Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
That's cool. In my opinion, the Glib2 developers are creating work for others because Glib2 was supposed to be a C library.
Ed
 
Old 04-14-2021, 09:47 PM   #6
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 460

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
The version at Ponce's GitHub is building fine here.
 
Old 04-16-2021, 03:39 PM   #7
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Rep: Reputation: 26
I compiled using this patch from LFS
http://www.linuxfromscratch.org/patc...b_2.68-1.patch
 
Old 04-16-2021, 03:45 PM   #8
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Original Poster
Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
Quote:
Originally Posted by Candelabrus View Post
I compiled using this patch from LFS
http://www.linuxfromscratch.org/patc...b_2.68-1.patch
Yes, that is exactly the same fix that is in the master branch.
Ed
 
Old 04-17-2021, 07:21 PM   #9
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 977

Rep: Reputation: 239Reputation: 239Reputation: 239
Quote:
Originally Posted by EdGr View Post
...

ETA: The difference may be due to gcc 10.3.
Ed
Just updated to this version of gcc; inkscape from ponce's repository (soon to become 15.0 master on SBo) compiled without a hitch.
 
Old 04-17-2021, 09:37 PM   #10
Bonzoo
Member
 
Registered: Sep 2018
Location: Costa Rica
Distribution: Antix21a2,Parrot rolling,MXfce19.4,Sparky Openbox
Posts: 233

Rep: Reputation: 48
Why ? Just convert a .deb
 
Old 04-17-2021, 10:38 PM   #11
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Original Poster
Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
Quote:
Originally Posted by Bonzoo View Post
Why ? Just convert a .deb
That does not work in general.
Ed
 
Old 04-19-2021, 10:34 AM   #12
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
Quote:
Originally Posted by Bonzoo View Post
Why ? Just convert a .deb
Converting a deb means you get a package designed and built against a different system than your own. Many times this works fine, but not always. You might also be missing optional dependencies that can be enabled on your own build (or sometimes it can have dependencies you don't have installed, leading to a broken package and needing to hunt down dependencies).

I never convert a deb unless it's my only choice, which pretty much only happens if they don't provide source (and example is my discord SlackBuild... they don't provide the source, so I just converted the deb to a Slackware package).
 
  


Reply



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
colord-1.4.3 requires glib2-2.5.6 or greater but slackware 14.2 only ships with glib2-2.46.2 nimbusdin Slackware 8 08-19-2018 03:43 PM
Googlecl stops work due change OAutGooglecl stops work due change OAuth 1.0 to OAuh 1.0 to OAuth 2.0 neymac Slackware 5 11-21-2015 03:26 PM
[SOLVED] Upgrade glib2 in current? marrowsuck Slackware 7 05-22-2013 03:27 AM
[SOLVED] SBo-Webkit does not compile on current; inkscape need gcc-4.8 patched source brobr Slackware 4 04-03-2013 08:38 AM
[SOLVED] Inkscape compile error at current Slack brodo Slackware 2 04-03-2012 07:21 PM

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

All times are GMT -5. The time now is 10:49 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