gideonmay / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 1 forks source link

Compilation error on CentOS 6 #119

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download pyv8 from svn (svn checkout http://pyv8.googlecode.com/svn/trunk/ 
pyv8-read-only)
2. run python setup.py build

What is the expected output? What do you see instead?
Expected: Successful build, but get this instead:
In file included from src/Engine.cpp:12:
src/AST.h: In member function ‘boost::python::api::object 
CAstVariableDeclaration::GetFunction() const’:
src/AST.h:228: error: ‘class v8::internal::VariableDeclaration’ has no 
member named ‘fun’
src/AST.h: In member function ‘virtual void 
CAstVisitor::VisitFunctionDeclaration(v8::internal::FunctionDeclaration*)’:
src/AST.h:687: error: ‘CAstFunctionDeclaration’ was not declared in this 
scope
src/AST.h: In member function ‘virtual void 
CAstVisitor::VisitImportDeclaration(v8::internal::ImportDeclaration*)’:
src/AST.h:687: error: ‘CAstImportDeclaration’ was not declared in this scope
src/AST.h: In member function ‘virtual void 
CAstVisitor::VisitExportDeclaration(v8::internal::ExportDeclaration*)’:
src/AST.h:687: error: ‘CAstExportDeclaration’ was not declared in this scope
src/AST.h: In member function ‘virtual void 
CAstObjectCollector::VisitFunctionDeclaration(v8::internal::FunctionDeclaration*
)’:
src/AST.h:697: error: ‘CAstFunctionDeclaration’ was not declared in this 
scope
src/AST.h: In member function ‘virtual void 
CAstObjectCollector::VisitImportDeclaration(v8::internal::ImportDeclaration*)’
:
src/AST.h:697: error: ‘CAstImportDeclaration’ was not declared in this scope
src/AST.h: In member function ‘virtual void 
CAstObjectCollector::VisitExportDeclaration(v8::internal::ExportDeclaration*)’
:
src/AST.h:697: error: ‘CAstExportDeclaration’ was not declared in this scope
src/AST.h: In member function ‘virtual void 
CAstListCollector::VisitFunctionDeclaration(v8::internal::FunctionDeclaration*)�
��:
src/AST.h:718: error: ‘CAstFunctionDeclaration’ was not declared in this 
scope
src/AST.h: In member function ‘virtual void 
CAstListCollector::VisitImportDeclaration(v8::internal::ImportDeclaration*)’:
src/AST.h:718: error: ‘CAstImportDeclaration’ was not declared in this scope
src/AST.h: In member function ‘virtual void 
CAstListCollector::VisitExportDeclaration(v8::internal::ExportDeclaration*)’:
src/AST.h:718: error: ‘CAstExportDeclaration’ was not declared in this scope
error: command 'gcc' failed with exit status 1

What version of the product are you using? On what operating system?
SVN checkout revision 431. Running on CentOS 6

Please provide any additional information below.
[root@server]# svn info
Path: .
URL: http://pyv8.googlecode.com/svn/trunk
Repository Root: http://pyv8.googlecode.com/svn
Repository UUID: 3b770cb8-f9e6-11dd-ac5b-dfceb64ead24
Revision: 431
Node Kind: directory
Schedule: normal
Last Changed Author: flier.lu@gmail.com
Last Changed Rev: 431
Last Changed Date: 2012-02-25 10:21:00 -0600 (Sat, 25 Feb 2012)

Original issue reported on code.google.com by aeld...@gmail.com on 29 Feb 2012 at 8:02

GoogleCodeExporter commented 8 years ago
FYI, tested on Ubuntu, and that also fails:

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
In file included from src/Engine.cpp:12:
src/AST.h: In member function ‘boost::python::api::object 
CAstVariableDeclaration::GetFunction() const’:
src/AST.h:228: error: ‘class v8::internal::VariableDeclaration’ has no 
member named ‘fun’
src/AST.h: In member function ‘virtual void 
CAstVisitor::VisitFunctionDeclaration(v8::internal::FunctionDeclaration*)’:
src/AST.h:687: error: ‘CAstFunctionDeclaration’ was not declared in this 
scope
src/AST.h: In member function ‘virtual void 
CAstVisitor::VisitImportDeclaration(v8::internal::ImportDeclaration*)’:
src/AST.h:687: error: ‘CAstImportDeclaration’ was not declared in this scope
src/AST.h: In member function ‘virtual void 
CAstVisitor::VisitExportDeclaration(v8::internal::ExportDeclaration*)’:
src/AST.h:687: error: ‘CAstExportDeclaration’ was not declared in this scope
src/AST.h: In member function ‘virtual void 
CAstObjectCollector::VisitFunctionDeclaration(v8::internal::FunctionDeclaration*
)’:
src/AST.h:697: error: ‘CAstFunctionDeclaration’ was not declared in this 
scope
src/AST.h: In member function ‘virtual void 
CAstObjectCollector::VisitImportDeclaration(v8::internal::ImportDeclaration*)’
:
src/AST.h:697: error: ‘CAstImportDeclaration’ was not declared in this scope
src/AST.h: In member function ‘virtual void 
CAstObjectCollector::VisitExportDeclaration(v8::internal::ExportDeclaration*)’
:
src/AST.h:697: error: ‘CAstExportDeclaration’ was not declared in this scope
src/AST.h: In member function ‘virtual void 
CAstListCollector::VisitFunctionDeclaration(v8::internal::FunctionDeclaration*)�
��:
src/AST.h:718: error: ‘CAstFunctionDeclaration’ was not declared in this 
scope
src/AST.h: In member function ‘virtual void 
CAstListCollector::VisitImportDeclaration(v8::internal::ImportDeclaration*)’:
src/AST.h:718: error: ‘CAstImportDeclaration’ was not declared in this scope
src/AST.h: In member function ‘virtual void 
CAstListCollector::VisitExportDeclaration(v8::internal::ExportDeclaration*)’:
src/AST.h:718: error: ‘CAstExportDeclaration’ was not declared in this scope
error: command 'gcc' failed with exit status 1

Original comment by aeld...@gmail.com on 29 Feb 2012 at 8:13

GoogleCodeExporter commented 8 years ago

Original comment by flier...@gmail.com on 5 Mar 2012 at 4:59

GoogleCodeExporter commented 8 years ago
Issue 120 has been merged into this issue.

Original comment by flier...@gmail.com on 5 Mar 2012 at 5:00

GoogleCodeExporter commented 8 years ago
Please verify it with PyV8 SVN trunk code after r433, thanks

Original comment by flier...@gmail.com on 5 Mar 2012 at 6:34

GoogleCodeExporter commented 8 years ago

Original comment by flier...@gmail.com on 6 Mar 2012 at 4:50