Request gcc 34 port build gcj
Adam McDougall
mcdouga9 at egr.msu.edu
Mon Oct 24 14:06:16 PDT 2005
I have some good news, I followed your tips with a slight modification
and got pdftk to work with gcj41. For step 3, I made sure
libiconv was installed from ports, and edited
/usr/ports/print/pdftk/work/pdftk-1.12/pdftk/Makefile.Base
to add -L/usr/local/lib to CPPFLAGS:
CPPFLAGS += -DPDFTK_VER=\"1.12\" -L/usr/local/lib
The resulting binary seems to work fine, I tried one of the example
operations.
Do you think these workarounds could be incorporated into the port?
I plan on using it on a production server and it would be a shame
if it was removed.
On Mon, Sep 19, 2005 at 09:58:05AM -0700, Patrick Dung wrote:
Hi
I have noticed that file at the end of August.
I have email a proposed solution to pdftk's author.
Below is my mail to the author/
Note that I can 'fix' pdftk to build with gcj41 but the resulting
binary core dump.
BTW, from author's web site: http://www.pdfhacks.com/pdftk/#build
You see that: I build pdftk using gcc/gcj/libgcj versions 3.3.4.
So I think gcj34 is the best thing to compile pdftk.
Patrick
> Hi Sid Steward
>
> When I was trying to compile pdftk 1.2.1 with gcj41 in FreeBSD, I
have
> discovered something.
>
> 1. There is a compile error in itext's pdf/codecs/PngImage.java about
> the ICC profile. I have seen you have comment out
> import com.lowagie.text.ImgRaw
>
> After enabling this line, I can complie this class with gcj41.
>
> 2. Makefile.Base include convert.a static lib (from your source).
> Makefile.Generic has include -lgcj.
> When compiling pdftk binary and linking all the libraries, it said
> duplicate defination or something. Comment out the convert.a line in
> Makefile.Base won't have that error.
>
> 3. It has linking problem with libiconv, I don't know it's FreeBSD OS
> problem, FreeBSD's gcc 41 problem or pdftk problem. This problem is
not
> seen in pdftk with gcj 3.x.
> Then I use the static library of libiconv instead of the shared lib
to
> make it compile the pdftk binary.
>
> 4. The resulting pdftk binary cannot be run. It will have core dump.
> Signal 6. Seems problem with FreeBSD's libpthread.
>
> I hope this will help in your new version of pdftk.
>
> Regards
> Patrick
More information about the freebsd-ports
mailing list