From owner-freebsd-questions@FreeBSD.ORG Sat Jan 19 20:21:54 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 69D8AC86 for ; Sat, 19 Jan 2013 20:21:54 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 072FDEDA for ; Sat, 19 Jan 2013 20:21:53 +0000 (UTC) Received: from mr17.lnh.mail.rcn.net ([207.172.157.37]) by smtp02.lnh.mail.rcn.net with ESMTP; 19 Jan 2013 15:21:53 -0500 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr17.lnh.mail.rcn.net (MOS 4.3.4-GA) with ESMTP id BWV91408; Sat, 19 Jan 2013 15:21:52 -0500 Received-SPF: None identity=pra; client-ip=209.6.84.183; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="roberthuff@rcn.com"; x-conformance=sidf_compatible Received-SPF: Neutral identity=mailfrom; client-ip=209.6.84.183; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="roberthuff@rcn.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None identity=helo; client-ip=209.6.84.183; receiver=smtp01.lnh.mail.rcn.net; envelope-from="roberthuff@rcn.com"; x-sender="postmaster@jerusalem.litteratus.org.litteratus.org"; x-conformance=sidf_compatible Received: from 209-6-84-183.c3-0.smr-ubr2.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.84.183]) by smtp01.lnh.mail.rcn.net with ESMTP; 19 Jan 2013 15:21:52 -0500 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20731.95.562005.496391@jerusalem.litteratus.org> Date: Sat, 19 Jan 2013 15:21:51 -0500 To: questions@freebsd.org Subject: problem building swt-devel X-Mailer: VM 7.17 under 21.4 (patch 22) "Instant Classic" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr17.lnh.mail.rcn.net) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2013 20:21:54 -0000 [I've mailed the maintainer, java@, and ports@, and had either no response or one which didn't help solve the problem. questions@ is my last, best hope .... ] On a system running: FreeBSD 10.0-CURRENT #0: Sun Dec 30 12:52:09 EST 2012 amd64 I am trying to build x11-toolkits/swt-devel as a dependency for another port. If I compile using clang, I get: [exec] rc = (jint)((SWT_XREInitEmbedding)arg0)((nsILocalFile *)arg1, (nsILocalFile *)arg2, (nsIDirectoryServiceProvider *)arg3, (nsStaticModuleInfo const *)arg4, arg5); [exec] ^ [exec] ./xpcom.h:41:103: note: expanded from macro 'SWT_XREInitEmbedding' [exec] #define SWT_XREInitEmbedding nsresult (*)(nsILocalFile *,nsILocalFile *,nsIDirectoryServiceProvider *,nsStaticModuleInfo const *,PRUint32) [exec] ^ [exec] xpcom.cpp:58:15: error: expected ')' [exec] rc = (jint)((SWT_XREInitEmbedding)arg0)((nsILocalFile *)arg1, (nsILocalFile *)arg2, (nsIDirectoryServiceProvider *)arg3, (nsStaticModuleInfo const *)arg4, arg5); [exec] *** [xpcomxul.o] Error code 1 ^ [exec] [exec] [exec] Stop in /data/port-work/usr/ports/x11-toolkits/swt-devel/work../xpcom.h:41:122: note: expanded from macro 'SWT_XREInitEmbedding' [exec] [exec] #define SWT_XREInitEmbedding nsresult (*)(nsILocalFile *,nsILocalFile *,nsIDirectoryServiceProvider *,nsStaticModuleInfo const *,PRUint32) [exec] ^ [exec] xpcom.cpp:58:15: note: to match this '(' [exec] rc = (jint)((SWT_XREInitEmbedding)arg0)((nsILocalFile *)arg1, (nsILocalFile *)arg2, (nsIDirectoryServiceProvider *)arg3, (nsStaticModuleInfo const *)arg4, arg5); [exec] ^ [exec] ./xpcom.h:41:42: note: expanded from macro 'SWT_XREInitEmbedding' [exec] #define SWT_XREInitEmbedding nsresult (*)(nsILocalFile *,nsILocalFile *,nsIDirectoryServiceProvider *,nsStaticModuleInfo const *,PRUint32) [exec] ^ [exec] xpcom.cpp:58:124: error: use of undeclared identifier 'nsStaticModuleInfo' [exec] rc = (jint)((SWT_XREInitEmbedding)arg0)((nsILocalFile *)arg1, (nsILocalFile *)arg2, (nsIDirectoryServiceProvider *)arg3, (nsStaticModuleInfo const *)arg4, arg5); [exec] ^ [exec] 4 errors generated. BUILD FAILED /data/port-work/usr/ports/x11-toolkits/swt-devel/work/build.xml:62: exec returned: 1 With gcc (either 4.2 or 4.6) it's: ===> Building for swt-devel-3.7.1_1,1 Buildfile: /data/port-work/usr/ports/x11-toolkits/swt-devel/work/build.xml init: build.classes: [javac] /data/port-work/usr/ports/x11-toolkits/swt-devel/work/build.xml:32: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 594 source files to /data/port-work/usr/ports/x11-toolkits/swt-devel/work/classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.4 [javac] 1 warning build.nativeLibraries: [exec] Can't find /data/port-work/usr/ports/x11-toolkits/swt-devel/work/../../components/external.idl [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] Using libxul for gecko support [exec] *** WebKit embedding support will not be compiled, causes build to fail. [exec] *** (temporary workaround until a better solution can be found) [exec] libjawt.so found, the SWT/AWT integration library will be compiled. [exec] Building SWT/GTK+ for freebsd amd64 [exec] g++46 -o xpcomxul.o -O -DSWT_VERSION=3738 -DMOZILLA_STRICT_API=1 -fno-rtti -fno-exceptions -Wall -Wno-non-virtual-dtor -fPIC -I. -I/usr/local/openjdk7/include -I/usr/local/openjdk7/include/freebsd -DJNI64 -DNO__1NS_1InitXPCOM2 -I/usr/local/include/nspr -DXPCOM_GLUE -I/usr/local/include/libxul -c xpcom.cpp [exec] In file included from /usr/local/include/libxul/nsEmbedString.h:43:0, [exec] from xpcom.h:19, [exec] from xpcom_structs.h:12, [exec] from xpcom.cpp:13: [exec] /usr/local/include/libxul/nsStringAPI.h:1101:3: error: 'char16_t' was not declared in this scope [exec] xpcom.cpp: In function 'jint Java_org_eclipse_swt_internal_mozilla_XPCOM__1Call__JJJJJI(JNIEnv*, jclass, jlong, jlong, jlong, jlong, jlong, jint)': [exec] xpcom.cpp:58:15: error: expected primary-expression before '(' token [exec] xpcom.cpp:58:15: error: expected primary-expression before ')' token [exec] xpcom.cpp:58:15: error: expected primary-expression before '*' token [exec] xpcom.cpp:58:15: error: expected primary-expression before ',' token [exec] xpcom.cpp:58:15: error: expected primary-expression before '*' token [exec] xpcom.cpp:58:15: error: expected primary-expression before ',' token [exec] xpcom.cpp:58:15: error: expected primary-expression before '*' token [exec] xpcom.cpp:58:15: error: expected primary-expression before ',' token [exec] xpcom.cpp:58:15: error: 'nsStaticModuleInfo' was not declared in this scope [exec] xpcom.cpp:58:15: error: expected primary-expression before ')' token [exec] xpcom.cpp:58:36: error: expected ')' before 'arg0' [exec] *** [xpcomxul.o] Error code 1 [exec] [exec] Stop in /data/port-work/usr/ports/x11-toolkits/swt-devel/work. BUILD FAILED /data/port-work/usr/ports/x11-toolkits/swt-devel/work/build.xml:62: exec returned: 1 I re-installed www/libxul, and nothing changed. Receimination phase - if any - will happen after this gets fixed. Help, please! Respectfully, Robert Huff