LinuxQuestions.org
Visit Jeremy's Blog.
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 11-16-2015, 04:54 AM   #1
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Rep: Reputation: 33
Difficulty re-building qgis after -current64 update


QGIS failed to run after the latest "near-beta" updates on -current64 due to a library incompatibility. No great surprise there - I assumed that a re-build using the slackbuild would fix it. I used the awesome sqg queue file generator which resulted in a queue of 13 packages. All of them build fine except gdal and packages that require gdal (qgis itself and postgis). The gdal build fails after a good deal of compilation with the following error messages:

../GDALmake.opt:565: recipe for target 'gdalserver.lo' failed
make[1]: *** [gdalserver.lo] Error 1
make[1]: Leaving directory '/tmp/SBo/gdal-1.11.2/apps'
GNUmakefile:69: recipe for target 'apps-target' failed
make: *** [apps-target] Error 2

Not sure how to try and fix this. Any ideas welcome.
 
Old 11-16-2015, 05:19 AM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I would first try contacting the upstream developers to see if they have any noted problems with the latest gcc, glibc, make, and other compile-time packages.

Usually when I've had those recipe errors it's a problem with something related to GCC or glibc. And usually only a patch is the only help. Start with upstream and even check other distributions like Arch and Gentoo yo see if they have patches.
 
Old 11-16-2015, 05:31 AM   #3
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
That definitely looks like a gdal build problem. It would be helpful if you could find the actual error message instead of just where it crapped out. The number of packages failing to build with -current since the 29 October update is into the hundreds. I started a build of the whole repo yesterday; it'll be on gis/ maybe Wednesday, and finish possibly Thursday or Friday. I've also got a day job, and this is radio show week, so it'll maybe be as late as the weekend -- sorry. Your existing packages should still run ok afaik.
 
Old 11-16-2015, 08:47 AM   #4
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Original Poster
Rep: Reputation: 33
gdal issue solved and all other packages now build correctly including qgis itself.

The issue seems to be that as I was using ponce's unofficial -current repository as the source of packages for sbopkg, I got gdal version 1.11.2 and this version would not build with errors as reported in my original post. However when I checked on slackbuilds.org I found that they were providing gdal version 1.11.3 as the Slackware 14.1 package. I downloaded this and it built with no problems, after which postgis and qgis were also built fine.

Thanks to those who offered help. Hope this solution helps others.
 
Old 11-16-2015, 09:08 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
hi bogzab,

I think you most probably have an old version of my repository as I pushed the new gdal build script just hours after it has been merged on SBo on sep 26th: to verify which version of my repo you got, just check the output of
Code:
cd /var/lib/sbopkg/SBo-git/
git log | head -4
as you can see here it has been updated other 7 times since.

if you have problem downloading the new version use this procedure
Code:
rm -fR /var/lib/sbopkg/SBo-git
sbopkg -r
 
2 members found this post helpful.
Old 11-16-2015, 09:17 AM   #6
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Excellent, thanks for solving this on your own!

The gdal branch was removed from ponce's repo when I pushed the 1.11.3 update. You can keep your copy of ponce's repo up to date like this:

Code:
git checkout -f master
git fetch --all
git remote prune origin
git merge --ff-only origin/master
git branch -D current
git checkout -b current -t origin/current
Edit: Matteo's still faster than me :O and his advice is better too, if you're using sbopkg

Last edited by 55020; 11-16-2015 at 09:19 AM.
 
Old 11-16-2015, 11:05 AM   #7
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 14.0, Slackware 14.1, Slackware-current
Posts: 306

Original Poster
Rep: Reputation: 33
Many thanks, ponce, for the additional advice.

For some reason (maybe the "this can confuse git a little" issue which you mention here ) my re-syncing in sbopkg was clearly not working. I followed your advice and deleted the local copy completely and the re-sync then worked fine and I have an SBo-current repository which contains gdal version 1.11.3.
 
  


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
[SOLVED] -current64 aclocal segfault KaMii Slackware 8 11-07-2015 12:46 AM
QGIS and geos DonaldUK Slackware 10 07-22-2010 02:41 PM
Autokey and current64 charlie_lab Slackware 4 03-20-2010 03:56 PM
Any advice for building QGIS for Slackware 12.1? Lufbery Slackware 13 08-10-2008 07:43 PM
difficulty building from source [make] gvp87 Linux - Software 1 09-30-2007 09:15 PM

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

All times are GMT -5. The time now is 06:57 AM.

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