[webkit-help] Question about java bridge and bug report for build process (Mac OS X 10.6.4)

三森隆広 takahiro.mimori at gmail.com
Mon Nov 8 20:15:52 PST 2010


Hi all,

I'd like to ask two questions.

1. What is a role of modules in WebCore/bridge? Is there some
documents for them?
2. May I point out a few amendment for some files as a bug report?

Recently, I tried to build WebKit from nightly build source on my MacBook
(Intel, Mac OS X 10.6.4) and once failed.
I got 27 errors after building it and they were all related to files
under WebCore/bridge/jni.
Finally, I found a cause of the errors and managed to success building it.

The reason is that required header files in
/System/Library/Frameworks/JavaVM.framework/Headers
were not linked to valid substances.
The clue was found in this page:

https://trac.macports.org/ticket/26934

I could fix this problem by downloading and applying a patch
"Java for Mac OS X 10.6 Update 3 Developer Package".



By the way, before I found this solution, I turned off a flag
in "JavaScriptCore/wtf/Platform.h" line 589

#define ENABLE_JAVA_BRIDGE 1

and tried to rebuild. This also ran into failure but there was only a error with
a file "WebCore/bridge/jni/jsc/JavaRuntimeObject.cpp".
After all, I found some files which may ought to be enclosed by

#if ENABLE(JAVA_BRIDGE)  ~ #endif ,

because they are looks like concerning to Java bridge function.
This is the file list:

jni/jsc/JavaRuntimeObject.cpp
jni/jsc/JavaRuntimeObject.h
jni/jsc/JavaStringJSC.h

jni/v8/JNIBridgeV8.cpp
jni/v8/JNIBridgeV8.h
jni/v8/JNIUtilityPrivate.cpp
jni/v8/JNIUtilityPrivate.h
jni/v8/JavaClassV8.cpp
jni/v8/JavaClassV8.h
jni/v8/JavaInstanceV8.cpp
jni/v8/JavaInstanceV8.h
jni/v8/JavaNPObjectV8.cpp
jni/v8/JavaNPObjectV8.h
jni/v8/JavaStringV8.h


May I write a bug report for this kind of notice?

Thanks.

-- 
-- -  -   -    -     -      -       -        -         -          -           -
takahiro.mimori at gmail.com
Twitter http://twitter.com/m1m0r1

Takahiro Mimori
-           -          -         -        -       -      -     -    -   -  - --


More information about the webkit-help mailing list