From owner-freebsd-ports@FreeBSD.ORG Wed Mar 17 09:16:48 2004 Return-Path: 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 D735016A4CE for ; Wed, 17 Mar 2004 09:16:48 -0800 (PST) Received: from rook.innercite.com (rook.innercite.com [158.222.5.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id B98A343D1F for ; Wed, 17 Mar 2004 09:16:48 -0800 (PST) (envelope-from ssteward@AccessPDF.com) Received: from AccessPDF.com (host-226-113.dialup.innercite.com [158.222.226.113])i2HHGkrL025728 for ; Wed, 17 Mar 2004 09:16:47 -0800 Message-ID: <405884E6.6060309@AccessPDF.com> Date: Wed, 17 Mar 2004 09:03:34 -0800 From: Sid Steward User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <20040317131134.95781.qmail@web41903.mail.yahoo.com> In-Reply-To: <20040317131134.95781.qmail@web41903.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: pdftk compiling problems on FreeBSD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2004 17:16:49 -0000 Patrick- Thank you for your work. I'll add your FreeBSD Makefile and notes to the next release of pdftk. Thanks for the suggestions, too. I'll work them in. Sid Patrick Dung wrote: > ... > > FreeBSD 4.9 uses gcc 2.95.4 as system compiler. > So I install the gcc33 inorder to use the gcj. > # pkgadd -r gcc33 > # cd /usr/local/bin/gcj33 > # ln -s gcj33 gcj > # ln -s gcjh33 gcjh > > Changes to Makefile.Base : > Change g++ to g++33 > > Create Makefile.FreeBSD : > # general-purpose options > CC_OPTS= -lgcj -O2 -I/usr/local/include -L/usr/local/lib -pthread -liconv -lz > # Not related, only g++ is used? > CC = gcc33 > # Does not work as expected (I have to change g++ to g++33 in Makefile.Base) > CXX = g++33 > # > include Makefile.Base > > If -pthread is not added, it will have problem when compiling with the gcc3.3.x compiler. > Do the 'gmake -f Makefile.FreeBSD' and it compiles cleanly. > And the program works fine. >