SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I recently got into the same trouble while compiling pdftk in my x86 slackware 13. I used to run it in my slack 12.2 but no way to get it to run in slackware 13. I would be interessed if someone got it to work.
You need to change the files by hand. It's easy. You should replace gcjh command for generating headers from classes, and provide FQDN classpath as this:
# gcjh doesn't want the ".class" extension, so use
# the "$*" automatic variable, here
%.h : %.class
$(GCJH) --classpath="$(java_libs_root):." $*;
# ^^^^^^^^^^^^^^^^^^ this is what You need to add ;)
Edit: I forgot to mention, that You shoud also remove the command just after gcjh command ($(RM) ... ). It's important.
Currently trying to make the package for x86_64...
(tfu tfu )
Last edited by Martinezio; 11-09-2009 at 07:35 AM.
Hmm... Still something wrong, but this time I was able to compile java-things of pdftk.
Currently I get this errors:
../java_libs/com/lowagie/text/pdf/pdf.a(PdfEncryption.o): In function `com::lowagie::text::pdf::PdfEncryption::PdfEncryption()':
ccWMwkN3.jar:(.text+0x343): undefined reference to `java_local::security::MessageDigest* java_local::security::MessageDigest::getInstance(java::lang::String*)'
../java_libs/com/lowagie/text/pdf/pdf.a(PdfEncryption.o): In function `JArray<char>* com::lowagie::text::pdf::PdfEncryption::createDocumentId()':
ccWMwkN3.jar:(.text+0x9fc): undefined reference to `java_local::security::MessageDigest* java_local::security::MessageDigest::getInstance(java::lang::String*)'
../java_libs/com/lowagie/text/pdf/pdf.a(PdfEncryption.o):(.data+0x1e8): undefined reference to `java_local::security::MessageDigest::class$'
collect2: ld returned 1 exit status
make: *** [pdftk] Error 1
Looks, like the itext part of pdftk is staticaly linked for internal version of gcj part available in source tree... This patch available in slacky repository doesn't repair the makefiles in gcj-tree, but removes build commands from main makefile of java's tree.
Restoring those command and repairing the makefiles as mentioned above is the solution, I think
Don't open this up in a text editor as it may change the formatting. I used this patch in conjunction with another patch for gcc 4.4 on Slackware 13.0 and pdftk runs fine. I tested converting and combining some pdf's and it worked without any issues.