From owner-freebsd-openoffice@FreeBSD.ORG Thu Jul 20 21:12:53 2006 Return-Path: X-Original-To: openoffice@freebsd.org Delivered-To: freebsd-openoffice@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F30C716A4E5 for ; Thu, 20 Jul 2006 21:12:52 +0000 (UTC) (envelope-from freebsd@chillt.de) Received: from dd2718.kasserver.com (dd2718.kasserver.com [81.209.184.159]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DA3943D6D for ; Thu, 20 Jul 2006 21:12:47 +0000 (GMT) (envelope-from freebsd@chillt.de) Received: from [127.0.0.1] (dslb-084-061-204-024.pools.arcor-ip.net [84.61.204.24]) by dd2718.kasserver.com (Postfix) with ESMTP id 5CB7619990 for ; Thu, 20 Jul 2006 23:12:38 +0200 (CEST) Message-ID: <44BFF1CD.1040901@chillt.de> Date: Thu, 20 Jul 2006 23:12:45 +0200 From: Bartosz Fabianowski User-Agent: Thunderbird 1.5.0.4 (X11/20060605) MIME-Version: 1.0 To: openoffice@freebsd.org Content-Type: multipart/mixed; boundary="------------040607060007060306020903" Cc: Subject: lang/gcc41-withgcjawt does not actually work X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2006 21:12:53 -0000 This is a multi-part message in MIME format. --------------040607060007060306020903 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi list I am happily running OOo 2.0.3 compiled with WITH_GNUGCJ=1 on i386 6-STABLE. However, to get it to work, I had to manually tweak the lang/gcc41-withgcjawt port and from the changes I had to make, it seems to me that it cannot possibly work for anyone else. The first problem is that in the Makefile, the following line: .include "${MASTERDIR}/Makefile" Comes before: WITH_JAVA_AWT= yes This way, the WITH_JAVA_AWT setting gets ignored and lang/gcc41-withgcjawt builds without Java, just like lang/gcc41. A patch for the Makefile that fixes this (and makes portlint happy) is attached. Unfortunately, after this bug has been fixed, two more problems occur. Buried somewhere deep in the source code of gcj is an old version of libtool that does not work on recent versions of FreeBSD. I had to replace the following two executables with the system libtool from /usr/local/bin: /usr/ports/lang/gcc41-withgcjawt/work/build/i386-portbld-freebsd6.1/libjava/classpath/libtool /usr/ports/lang/gcc41-withgcjawt/work/build/i386-portbld-freebsd6.1/libjava/libtool I am not sure how to best tackle this second problem in the port's Makefile. Therefore, I am reporting it here in the hope that someone else will come up with a patch. - Bartosz --------------040607060007060306020903 Content-Type: text/plain; name="Makefile.diff" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="Makefile.diff" LS0tIE1ha2VmaWxlLm9yaWcJVGh1IEp1bCAyMCAyMzowMDo0MyAyMDA2CisrKyBNYWtlZmls ZQlUaHUgSnVsIDIwIDIzOjAxOjQ5IDIwMDYKQEAgLTgsMTIgKzgsMTIgQEAKIAogUEtHTkFN RVNVRkZJWD0JLXdpdGhnY2phd3QKIAotTUFTVEVSRElSPQkkey5DVVJESVJ9Ly4uLy4uL2xh bmcvZ2NjNDEKLQotLmluY2x1ZGUgIiR7TUFTVEVSRElSfS9NYWtlZmlsZSIKLQogTUFJTlRB SU5FUj0JbWFob0BGcmVlQlNELm9yZwogCitNQVNURVJESVI9CSR7LkNVUkRJUn0vLi4vLi4v bGFuZy9nY2M0MQorCiBERVNDUj0JJHsuQ1VSRElSfS9wa2ctZGVzY3IKIAogV0lUSF9KQVZB X0FXVD0JeWVzCisKKy5pbmNsdWRlICIke01BU1RFUkRJUn0vTWFrZWZpbGUiCg== --------------040607060007060306020903--