[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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to