LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 11-12-2009, 09:46 AM   #16
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 291

Rep: Reputation: 75

Quote:
Originally Posted by Martinezio View Post
In Makefile.Generic You need to add -fPIC option into CPPFLAGS and CXXFLAGS vars, and run the make with LDFLAGS="-L/usr/lib64" envar
I forgot to mention that I did a couple extra things as well but just the gcc 4.3 patch alone worked for me. You can make use of the CFLAGS by adding a simple sed statement before or after the patches are applied and an additional patch to introduce LDFLAGS. I didn't think they were relevant.
Code:
# sed -i "s|-O2|$SLKCFLAGS|" pdftk/Makefile.Generic
Code:
# wget http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/app-text/pdftk/files/pdftk-1.41-honor-ldflags.patch
 
Old 11-12-2009, 08:38 PM   #17
hemp4fuel
Member
 
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 192

Rep: Reputation: 45
Quote:
Originally Posted by Martinezio View Post
Disagree - works for me on x86_64 platform with small change

In Makefile.Generic You need to add -fPIC option into CPPFLAGS and CXXFLAGS vars, and run the make with LDFLAGS="-L/usr/lib64" envar

No more "Incorrect ABI version" issues, and pdftk is fully working now!
Thanks for the patches
It still won't build on x86_64 here. I will keep trying.

Last edited by hemp4fuel; 11-12-2009 at 08:41 PM.
 
Old 11-13-2009, 02:32 AM   #18
Martinezio
Member
 
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191

Original Poster
Rep: Reputation: 32
hemp4fuel: Hmm... You cannot build, or build is successful, but You have "Incorrect ABI version" issue while running pdftk tool?

Paste Your error messages, so We be able to help You a bit
 
Old 11-16-2009, 07:31 AM   #19
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
Thanks for looking after pdftk in my absense, since I've been the original maintainer. I've tried to get a few to inherit ownership in the past with no success.
Turns out I'm completely out of spare time at the moment between family and work, and thus would greatly appreciate if anyone volunteered to assume ownership over my orphan slackbuilds..

Thanks in advance!
 
Old 11-16-2009, 08:54 AM   #20
Martinezio
Member
 
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191

Original Poster
Rep: Reputation: 32
Well, I'm also haven't spare time to manage of this SlackBuild, but I've been able to merge all the changes mentioned in this thread, and made a single patch file.
I also add some of my modification to support custom install prefixes, and path for packaging

Enjoy!
Attached Files
File Type: txt pdftk-1.41-for_slackware64.diff.txt (9.8 KB, 13 views)
 
Old 11-16-2009, 06:58 PM   #21
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 235

Rep: Reputation: 30
Quote:
Originally Posted by Martinezio View Post
Well, I'm also haven't spare time to manage of this SlackBuild, but I've been able to merge all the changes mentioned in this thread, and made a single patch file.
I also add some of my modification to support custom install prefixes, and path for packaging

Enjoy!
I wonder if Slackbuilds could be created out of patched source files. In the general slackbuild procedure, there is always a link for downloading the source and in our case, the source is going to be the patched version. So ...
 
Old 11-17-2009, 02:41 AM   #22
Martinezio
Member
 
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191

Original Poster
Rep: Reputation: 32
Hmm... I think, that the very best way is to get the original source and apply patch by SlackBuild script.
You cannot rely on applying any changes by author of pdftk. This tool isn't mainained yet, AFAIK.
 
Old 11-19-2009, 09:21 AM   #23
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
Building with patch from Martinezio now - if all works and pdftk remains fully functional I'll send an update to SBo asap to get it official. Thanks for the patience.

-y1
 
Old 11-19-2009, 09:42 AM   #24
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
Works - update submitted - thanks again to Martinezio!
 
Old 11-19-2009, 08:36 PM   #25
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 235

Rep: Reputation: 30
Quote:
Originally Posted by Yalla-One View Post
Works - update submitted - thanks again to Martinezio!
That's great.
 
Old 11-19-2009, 10:47 PM   #26
Thursapr
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 44

Rep: Reputation: 18
Still don't see pdftk SlackBuild for slackware 13.
 
Old 11-20-2009, 12:57 AM   #27
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 235

Rep: Reputation: 30
Quote:
Originally Posted by Thursapr View Post
Still don't see pdftk SlackBuild for slackware 13.
He said he submitted the update ... I guess it has to be approved before you can see it
 
Old 11-20-2009, 04:17 AM   #28
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
Quote:
Originally Posted by Thursapr View Post
Still don't see pdftk SlackBuild for slackware 13.
It normally takes a while from a build is submitted until it's approved. Check out the slackbuilds.org documentation and faq for more information.

Meanwhile, if you cannot wait, you can get the SlackBuild and patch from here:
http://hiawata.com/linux/pdftk/

I'd wait for the officially sanctioned version by the SBo team though - the guys there do a terrific job and validate everything in every build carefully for errors etc.

-y1
 
Old 11-20-2009, 05:45 AM   #29
Thursapr
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 44

Rep: Reputation: 18
Quote:
Originally Posted by Yalla-One View Post
Meanwhile, if you cannot wait, you can get the SlackBuild and patch from here:
http://hiawata.com/linux/pdftk/
Could i use these files for my 32-bit machine?
 
Old 11-20-2009, 06:59 AM   #30
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
It should work, but you need to start it with
PHP Code:
ARCH=i486 ./pdftk.SlackBuild 
in order to make it compile a 32bit binary. Have not had a chance to test the patch on 32bit build, but can't see why it shouldn't work
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 06:50 PM
Slackware64-current on a second HD. glore2002 Slackware 7 08-23-2009 11:38 AM
Slackware64-Current / slackpkg slackass Slackware 31 06-06-2009 10:51 PM
[SOLVED] what's that directory (slackware64-current) sycamorex Slackware 3 05-30-2009 09:03 AM
Slackware64 -current and KDE mlangdn Slackware 7 05-29-2009 08:57 AM


All times are GMT -5. The time now is 05:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration