From owner-freebsd-java@FreeBSD.ORG Wed Aug 7 09:48:55 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CC8BFCB2 for ; Wed, 7 Aug 2013 09:48:55 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-qe0-f50.google.com (mail-qe0-f50.google.com [209.85.128.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8F8B42A04 for ; Wed, 7 Aug 2013 09:48:54 +0000 (UTC) Received: by mail-qe0-f50.google.com with SMTP id q19so860351qeb.9 for ; Wed, 07 Aug 2013 02:48:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=eIdemXGJYe6+xIYE7QrbJz0ERadOTiSGyVCVQlufEjc=; b=A1XxJDuk0ulBud5WNK5frcDmPlwkRzykSXVLZu+nVcLqtqA5c85AJmmpAVmA577P6w 6kJNg2TndC24+gUN3V3feL6/MIFPuqCwftwESbaX7+vbRdmaVgJENFPx9fSWlkPg6uzm MVkOFUiF7H9F0SEWjLbmX2X8BSfrEMZeTIDiAUojR984W2Lxgt+hs2N1rwYqVSauOCqM FHtnozT7aOAT3ZSdAYzY49yeM9N9tZVnFtv/T66wMT2E3e9FpZHbjv101Z/MkkuLm2LM hrxfohMYasSygzBthtq40NBB0/OEC9Jr0FK8FtjnZTyag8E9RQ1h3sNm4smmgrqF9Srr KWdg== X-Gm-Message-State: ALoCoQmQTmGb76ieyl7TdRZAmsxG+FUyL7+WKIMmBFXfqvdUangmwMcbEErgwRZw7nPliuTClnA2 MIME-Version: 1.0 X-Received: by 10.49.58.134 with SMTP id r6mr2784618qeq.27.1375868927810; Wed, 07 Aug 2013 02:48:47 -0700 (PDT) Received: by 10.49.74.71 with HTTP; Wed, 7 Aug 2013 02:48:47 -0700 (PDT) X-Originating-IP: [121.98.161.40] In-Reply-To: <51FFEA27.4040402@gmail.com> References: <03be01ce91c2$18b437f0$4a1ca7d0$@btinternet.com> <6C900CDB-D9AC-4A20-8ABD-2868CBF879C5@freebsd.org> <51FFEA27.4040402@gmail.com> Date: Wed, 7 Aug 2013 21:48:47 +1200 Message-ID: Subject: Re: Eclipse-devel From: Jonathan Chen To: kron Content-Type: text/plain; charset=ISO-8859-1 Cc: George Neville-Neil , Thomas Sparrevohn , freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 09:48:56 -0000 On 6 August 2013 06:08, kron wrote: [...] > Apparently, the old package bundled its own SWT libraries; > the difference is somewhat strange, because the port hasn't > changed for months. I guess the port's patches aren't compatible > with some latest changes in other ports (glib-related?). I'm > skimming the patches in eclipse-devel but they are too big and > dense... I had a look at the build logs, and the problem lies appears to be deprecated functions that have been removed in the latest glib update: build.nativeLibraries: [exec] Building SWT OS=freebsd SWT ARCH=amd64 [exec] libgnomeui-2.0 found, compiling SWT program support using GNOME [exec] Cairo found, compiling SWT support for the cairo graphics library. [exec] None of the following libraries were found: Mozilla/XPCOM, Firefox/XPCOM, or XULRunner/XPCOM [exec] *** Mozilla embedding support will not be compiled. [exec] WebKit found, compiling webkit embedded browser support. [exec] libjawt.so found, the SWT/AWT integration library will be compiled. [exec] Building SWT/GTK+ for freebsd amd64 [exec] cc -O -Wall -DSWT_VERSION=4233 -DFREEBSD -DGTK -I/usr/local/include -I/usr/local/openjdk6/include -I/usr/local/openjdk6/include/freebsd -fPIC -c swt.c [exec] cc -O -Wall -DSWT_VERSION=4233 -DFREEBSD -DGTK -I/usr/local/include -I/usr/local/openjdk6/include -I/usr/local/openjdk6/include/freebsd -fPIC -c -o c.o c.c [exec] cc -O -Wall -DSWT_VERSION=4233 -DFREEBSD -DGTK -I/usr/local/include -I/usr/local/openjdk6/include -I/usr/local/openjdk6/include/freebsd -fPIC -c -o c_stats.o c_stats.c [exec] cc -O -Wall -DSWT_VERSION=4233 -DFREEBSD -DGTK -I/usr/local/include -I/usr/local/openjdk6/include -I/usr/local/openjdk6/include/freebsd -fPIC -DUSE_ASSEMBLER -c callback.c [exec] cc -shared -fPIC -s -o libswt-gtk-4233.so swt.o c.o c_stats.o callback.o [exec] cc -O -Wall -DSWT_VERSION=4233 -DFREEBSD -DGTK -I/usr/local/include -I/usr/local/openjdk6/include -I/usr/local/openjdk6/include/freebsd -fPIC `pkg-config --cflags gtk+-2.0` -c os.c [exec] os.c: In function 'Java_org_eclipse_swt_internal_gtk_OS__1g_1thread_1init': [exec] os.c:4428: warning: implicit declaration of function 'g_thread_init' [exec] os.c:4428: error: 'GThreadFunctions' undeclared (first use in this function) [exec] os.c:4428: error: (Each undeclared identifier is reported only once [exec] os.c:4428: error: for each function it appears in.) [exec] os.c:4428: error: expected expression before ')' token [exec] os.c: In function 'Java_org_eclipse_swt_internal_gtk_OS__1g_1thread_1supported': [exec] os.c:4439: warning: implicit declaration of function 'g_thread_supported' [exec] gmake: *** [os.o] Error 1 [exec] Result: 2 I'm still trying to figure out just how the patching works for Eclipse work so that I can modify the os.h and os.c for the freebsd.gtk module. If anyone wants to jump in here and provide some advice, please feel free to do so. Cheers. -- Jonathan Chen