Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
11-12-2009, 09:46 AM
|
#16
|
|
Member
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 277
Rep:
|
Quote:
Originally Posted by Martinezio
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
|
|
|
|
11-12-2009, 08:38 PM
|
#17
|
|
Member
Registered: Jun 2003
Location: Topeka, KS
Distribution: Slackware
Posts: 181
Rep:
|
Quote:
Originally Posted by Martinezio
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.
|
|
|
|
11-13-2009, 02:32 AM
|
#18
|
|
Member
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191
Original Poster
Rep:
|
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 
|
|
|
|
11-16-2009, 07:31 AM
|
#19
|
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 633
Rep:
|
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!
|
|
|
|
11-16-2009, 08:54 AM
|
#20
|
|
Member
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191
Original Poster
Rep:
|
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!
|
|
|
|
11-16-2009, 06:58 PM
|
#21
|
|
Member
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 234
Rep:
|
Quote:
Originally Posted by Martinezio
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 ...
|
|
|
|
11-17-2009, 02:41 AM
|
#22
|
|
Member
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191
Original Poster
Rep:
|
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.
|
|
|
|
11-19-2009, 09:21 AM
|
#23
|
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 633
Rep:
|
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
|
|
|
|
11-19-2009, 09:42 AM
|
#24
|
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 633
Rep:
|
Works - update submitted - thanks again to Martinezio!
|
|
|
|
11-19-2009, 08:36 PM
|
#25
|
|
Member
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 234
Rep:
|
Quote:
Originally Posted by Yalla-One
Works - update submitted - thanks again to Martinezio!
|
That's great.
|
|
|
|
11-19-2009, 10:47 PM
|
#26
|
|
Member
Registered: Apr 2009
Distribution: Slackware
Posts: 44
Rep:
|
Still don't see pdftk SlackBuild for slackware 13.
|
|
|
|
11-20-2009, 12:57 AM
|
#27
|
|
Member
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 234
Rep:
|
Quote:
Originally Posted by Thursapr
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
|
|
|
|
11-20-2009, 04:17 AM
|
#28
|
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 633
Rep:
|
Quote:
Originally Posted by Thursapr
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
|
|
|
|
11-20-2009, 05:45 AM
|
#29
|
|
Member
Registered: Apr 2009
Distribution: Slackware
Posts: 44
Rep:
|
Quote:
Originally Posted by Yalla-One
|
Could i use these files for my 32-bit machine?
|
|
|
|
11-20-2009, 06:59 AM
|
#30
|
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 633
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:17 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|