From owner-freebsd-ports@FreeBSD.ORG Mon Oct 24 21:06:15 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E223C16A41F for ; Mon, 24 Oct 2005 21:06:15 +0000 (GMT) (envelope-from mcdouga9@daemon.egr.msu.edu) Received: from daemon.egr.msu.edu (daemon.egr.msu.edu [35.9.44.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9875343D45 for ; Mon, 24 Oct 2005 21:06:15 +0000 (GMT) (envelope-from mcdouga9@daemon.egr.msu.edu) Received: by daemon.egr.msu.edu (Postfix, from userid 21281) id 6C14E6E; Mon, 24 Oct 2005 17:05:58 -0400 (EDT) Date: Mon, 24 Oct 2005 17:05:58 -0400 From: Adam McDougall To: Patrick Dung Message-ID: <20051024210558.GQ78160@egr.msu.edu> References: <20050919165805.28959.qmail@web54302.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050919165805.28959.qmail@web54302.mail.yahoo.com> User-Agent: Mutt/1.5.11 Cc: ssteward@AccessPDF.com, Gerald Pfeifer , Jim Trigg , freebsd-ports@freebsd.org Subject: Re: Request gcc 34 port build gcj X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2005 21:06:16 -0000 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