Date: Mon, 24 Oct 2005 17:05:58 -0400 From: Adam McDougall <mcdouga9@egr.msu.edu> To: Patrick Dung <patrick_dkt@yahoo.com.hk> Cc: ssteward@AccessPDF.com, Gerald Pfeifer <gerald@pfeifer.com>, Jim Trigg <jtrigg@spamcop.net>, freebsd-ports@freebsd.org Subject: Re: Request gcc 34 port build gcj Message-ID: <20051024210558.GQ78160@egr.msu.edu> In-Reply-To: <20050919165805.28959.qmail@web54302.mail.yahoo.com> References: <Pine.BSF.4.62.0509191424390.36427@pulcherrima.dbai.tuwien.ac.at> <20050919165805.28959.qmail@web54302.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051024210558.GQ78160>