codegooglecom / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

error: JavaScriptCore/JavaScript.h: No such file or directory #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
cmake ./
make

What is the expected output? What do you see instead?
Completed make

[ 93%] Building CXX object 
libproxy/CMakeFiles/libproxy.dir/modules/pacrunner_webkit.cpp.o
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:23:39: error: 
JavaScriptCore/JavaScript.h: No such file or directory
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:34: error: 
‘JSStringRef’ was not 
declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:34: error: expected 
primary-
expression before ‘bool’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:34: error: 
initializer expression 
list treated as compound expression
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:34: error: expected 
‘,’ or ‘;’ 
before ‘throw’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:42: error: 
‘JSValueRef’ does not 
name a type
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:77: error: 
‘JSValueRef’ does not 
name a type
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:160: error: 
‘JSGlobalContextRef’ 
does not name a type
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp: In destructor 
‘virtual 
webkit_pacrunner::~webkit_pacrunner()’:
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:93: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:93: error: 
‘JSGarbageCollect’ was 
not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:94: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:94: error: 
‘JSGlobalContextRelease’ was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp: In constructor 
‘webkit_pacrunner::webkit_pacrunner(std::string, const libproxy::url&)’:
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:98: error: 
‘JSStringRef’ was not 
declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:98: error: expected 
`;' before ‘str’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:99: error: 
‘JSObjectRef’ was not 
declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:99: error: expected 
`;' before 
‘func’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:102: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:102: error: 
‘JSGlobalContextCreate’ was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:105: error: ‘str’ 
was not declared 
in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:105: error: 
‘JSStringCreateWithUTF8CString’ was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:106: error: 
‘func’ was not 
declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:106: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:106: error: 
‘dnsResolve’ was not 
declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:106: error: 
‘JSObjectMakeFunctionWithCallback’ was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:107: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:107: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:107: error: 
‘JSContextGetGlobalObject’ was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:107: error: 
‘kJSPropertyAttributeNone’ was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:107: error: 
‘JSObjectSetProperty’ 
was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:108: error: 
‘JSStringRelease’ was 
not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:112: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:112: error: 
‘myIpAddress’ was 
not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:113: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:113: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:118: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:118: error: 
‘JSCheckScriptSyntax’ 
was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:119: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:119: error: 
‘JSEvaluateScript’ was 
not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:124: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:124: error: 
‘JSCheckScriptSyntax’ 
was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:125: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:131: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:132: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:132: error: 
‘JSGarbageCollect’ 
was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:133: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:133: error: 
‘JSGlobalContextRelease’ was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp: In member function 
‘virtual 
std::string webkit_pacrunner::run(const libproxy::url&)’:
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:139: error: 
‘JSStringRef’ was not 
declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:139: error: expected 
`;' before 
‘str’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:140: error: 
‘JSValueRef’ was not 
declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:140: error: expected 
`;' before 
‘val’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:145: error: ‘str’ 
was not declared 
in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:145: error: 
‘JSStringCreateWithUTF8CString’ was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:146: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:146: error: 
‘JSCheckScriptSyntax’ 
was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:147: error: ‘val’ 
was not declared 
in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:147: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:147: error: 
‘JSEvaluateScript’ was 
not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:148: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:148: error: ‘val’ 
was not declared 
in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:148: error: 
‘JSValueIsString’ was 
not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:149: error: 
‘JSStringRelease’ was 
not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:152: error: ‘class 
webkit_pacrunner’ has no member named ‘jsctx’
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:152: error: ‘val’ 
was not declared 
in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:152: error: 
‘JSValueToStringCopy’ 
was not declared in this scope
/tmp/libproxy-0.4.0/libproxy/modules/pacrunner_webkit.cpp:152: error: 
‘jstr2str’ cannot be 
used as a function
make[2]: *** [libproxy/CMakeFiles/libproxy.dir/modules/pacrunner_webkit.cpp.o] 
Error 1
make[1]: *** [libproxy/CMakeFiles/libproxy.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?
ibproxy 0.4.0 under Mac OS X (tested under 10.5.8)

Please provide any additional information below.
Due to the change to cmake, the "--without-webkit" configure switch is no 
longer available.

A cmake based project needs some equivalent to ./configure --help, i.e. in the 
INSTALL file.

It would be most useful to update the wiki documentation to reflect cmake 
rather than 
./configure

Original issue reported on code.google.com by mschamsc...@gmail.com on 28 Feb 2010 at 3:20

GoogleCodeExporter commented 9 years ago
Hrm... I tested on 10.6.x.  I also have the SDK installed
(/Developer/SDKs/MacOSX10.6.sdk/).  What happens if you install the 10.5.x SDK?

You *really* don't want to disable JavaScript.

Original comment by npmccallum@gmail.com on 1 Mar 2010 at 1:10

GoogleCodeExporter commented 9 years ago
I build natively for 10.4, 10.5 and 10.6. My 10.5 machines(PPC/Intel)  have the 
10.5 SDK installed.

Indeed my 10.6.2 machine has no problem building this package, but 10.4.11 has 
the exact same error as 1.5.8.

Original comment by mschamsc...@gmail.com on 1 Mar 2010 at 3:51

GoogleCodeExporter commented 9 years ago
I unfortunately don't have access to these versions.  I will gladly accept a 
patch
however.  All that is needed is to provide the correct include statement (cmake
obviously found the library or webkit would not be built).  If you can fix 
this, it
should build just fine.

Original comment by npmccallum@gmail.com on 1 Mar 2010 at 1:56

GoogleCodeExporter commented 9 years ago

Original comment by npmccallum@gmail.com on 6 Mar 2010 at 6:30

GoogleCodeExporter commented 9 years ago

Including <JavaScriptCore/JavaScriptCore.h> instead of 
<JavaScriptCore/JavaScript.h>
in "pacrunner_webkit.cpp" will solve this issue for both 10.5 & 10.6 SDK.

Parimal Das

Original comment by parimal....@gmail.com on 8 Mar 2010 at 11:10

GoogleCodeExporter commented 9 years ago
I think that r608 should fix this issue.  However, I don't have access to my 
Mac to
test.  So can someone please test it?

Original comment by npmccallum@gmail.com on 8 Mar 2010 at 1:17

GoogleCodeExporter commented 9 years ago
Ok, I think r616 is the real fix.  Please test.

Original comment by npmccallum@gmail.com on 12 Mar 2010 at 5:07

GoogleCodeExporter commented 9 years ago
r616 is working for both OSX 10.5 & 10.6

Parimal Das

Original comment by parimal....@gmail.com on 17 Mar 2010 at 12:06

GoogleCodeExporter commented 9 years ago

Original comment by npmccallum@gmail.com on 17 Mar 2010 at 1:21