Problem building Javaconnect

Antonio Sorrentini <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hi, this is my .mozconfig file:

----------------

. $topsrcdir/xulrunner/config/mozconfig
CC=gcc
CXX=g++
CPP=cpp
AS=as
LD=ld
ac_add_options --disable-accessibility
ac_add_options --disable-activex
ac_add_options --enable-extensions=default,java
ac_add_options 
--with-java-include-path=C:/Programmi/Java/jdk1.5.0_05/include
ac_add_options --with-java-bin-path=C:/Programmi/Java/jdk1.5.0_05/bin

----------------

Anyway it seems there is an error in the file:
mozilla/extensions/java/xpcom/nsJavaInterfaces.cpp
because when I run the compilation, after long time I get this error:

----------------
...
...
make[6]: Entering directory 
`/cygdrive/f/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom/src'
nsJavaInterfaces.cpp
Building deps for 
/cygdrive/f/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom/src/../nsJavaInterfaces.cpp
/cygdrive/f/mozilla_sources/sources_from_cvs/mozilla/build/cygwin-wrapper 
g++ -mno-cygwin -o nsJavaInterfaces.o -c  -DMOZILLA_INTERNAL_API 
-D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API 
-D_IMPL_NS_COM_OBSOLETE -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XULAPI 
-DIMPL_NS_NET  -DZLIB_INTERNAL -DOSTYPE=\"WINNT5.1\" -DOSARCH=\"WINNT\" 
-DBUILD_ID=0000000000 -IC:/Programmi/Java/jdk1.5.0_05/include 
-IC:/Programmi/Java/jdk1.5.0_05/include/win32 
-I/cygdrive/f/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom/src 
-I../../../../dist/include/xpcom -I../../../../dist/include/string 
-I../../../../dist/include/xulapp -I../../../../dist/include/javaxpcom 
-I../../../../dist/include -I../../../../dist/include/nspr 
-I../../../../dist/sdk/include       -fno-rtti -fno-exceptions -Wall 
-Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth 
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic 
-mms-bitfields -pipe  -DNDEBUG -DTRIMMED -O   -DX_DISPLAY_MISSING=1 
-DMOZILLA_VERSION=\"1.9a1\" -DMOZILLA_VERSION_U=1.9a1 -DHAVE_SNPRINTF=1 
-D_WINDOWS=1 -D_WIN32=1 -DWIN32=1 -DXP_WIN=1 -DXP_WIN32=1 -DHW_THREADS=1 
-DWINVER=0x400 -D_WIN32_WINNT=0x400 -DSTDC_HEADERS=1 
-DWIN32_LEAN_AND_MEAN=1 -DNO_X11=1 -D_X86_=1 -DD_INO=d_ino 
-DSTDC_HEADERS=1 -Duid_t=int -Dgid_t=int -DHAVE_DIRENT_H=1 
-DHAVE_GETOPT_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MALLOC_H=1 
-DHAVE_LIBM=1 -DNO_X11=1 -DMMAP_MISSES_WRITES=1 -DHAVE_STRERROR=1 
-DHAVE_SNPRINTF=1 -DHAVE_MEMMOVE=1 -DHAVE_RINT=1 -DVA_COPY=va_copy 
-DHAVE_VA_COPY=1 -DMOZ_DEFAULT_TOOLKIT=\"windows\" -DMOZ_XULRUNNER=1 
-DMOZ_BUILD_APP=xulrunner -DMOZ_XUL_APP=1 
-DMOZ_DISTRIBUTION_ID=\"org.mozilla\" -DOJI=1 -DIBMBIDI=1 
-DMOZ_VIEW_SOURCE=1 -DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DNS_PRINTING=1 
-DNS_PRINT_PREVIEW=1 -DMOZ_XTF=1 -DMOZ_MATHML=1 
-DMOZ_UPDATE_CHANNEL=default -DMOZ_LOGGING=1 -DHAVE___CXA_DEMANGLE=1 
-DMOZ_USER_DIR=\"Mozilla\" -DMOZ_ENABLE_LIBXUL=1 -DMOZ_XUL=1 
-DMOZ_PROFILELOCKING=1 -DMOZ_DLL_SUFFIX=\".dll\" -DJS_THREADSAFE=1 
-DMOZILLA_LOCALE_VERSION=\"1.9a1\" -DMOZILLA_REGION_VERSION=\"1.9a1\" 
-DMOZILLA_SKIN_VERSION=\"1.8\"  -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT 
/cygdrive/f/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom/src/../nsJavaInterfaces.cpp
f:/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom/src/../nsJavaInterfaces.cpp: 
In function `_jobject* 
Java_org_mozilla_xpcom_internal_XPCOMImpl_newLocalFile(JNIEnv*, 
_jobject*, _jstring*, jboolean)':
f:/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom/src/../nsJavaInterfaces.cpp:210: 
error: invalid conversion from `const jchar*' to `const PRUnichar*'
f:/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom/src/../nsJavaInterfaces.cpp:216: 
error: no matching function for call to 
`JNIEnv_::ReleaseStringChars(_jstring*&, const PRUnichar*&)'
C:/Programmi/Java/jdk1.5.0_05/include/jni.h:1574: note: candidates are: 
void JNIEnv_::ReleaseStringChars(_jstring*, const jchar*) <near match>
make[6]: *** [nsJavaInterfaces.o] Error 1
make[6]: Leaving directory 
`/cygdrive/f/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom/src'
make[5]: *** [libs] Error 2
make[5]: Leaving directory 
`/cygdrive/f/mozilla_sources/sources_from_cvs/mozilla/extensions/java/xpcom'
make[4]: *** [libs] Error 2
make[4]: Leaving directory 
`/cygdrive/f/mozilla_sources/sources_from_cvs/mozilla/extensions/java'
make[3]: *** [libs_tier_50] Error 2
make[3]: Leaving directory 
`/cygdrive/f/mozilla_sources/sources_from_cvs/mozilla'
make[2]: *** [tier_50] Error 2
make[2]: Leaving directory 
`/cygdrive/f/mozilla_sources/sources_from_cvs/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory 
`/cygdrive/f/mozilla_sources/sources_from_cvs/mozilla'
make: *** [build] Error 2

----------------

I'm compiling on a Windows XP box, but since I do not have the Microsoft 
compiler, I'm using MinGW following the directions read here:
http://gemal.dk/mozilla/build.html

Any suggestion?
Thanks a lot.

Antonio
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.