Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to compile for node 0.11.12 #238

Closed
danielecr opened this issue Jul 1, 2014 · 5 comments
Closed

fail to compile for node 0.11.12 #238

danielecr opened this issue Jul 1, 2014 · 5 comments

Comments

@danielecr
Copy link

> node-gyp rebuild

make: ingresso nella directory "/home/daniele/Development/libxmljs/libxmljs/build"
  CXX(target) Release/obj.target/xmljs/src/libxmljs.o
In file included from ../src/libxmljs.cc:3:0:
/home/daniele/.node-gyp/0.11.12/deps/v8/include/v8.h: In member function ‘void v8::ReturnValue<T>::Set(uint32_t)’:
/home/daniele/.node-gyp/0.11.12/deps/v8/include/v8.h:5816:31: warning: typedef ‘I’ locally defined but not used [-Wunused-local-typedefs]
   typedef internal::Internals I;
                               ^
In file included from ../src/libxmljs.cc:8:0:
../src/xml_document.h: At global scope:
../src/xml_document.h:11:45: error: expected class-name before ‘{’ token
 class XmlDocument : public node::ObjectWrap {
                                             ^
../src/xml_document.h:42:44: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> New(const v8::Arguments& args);
                                            ^
../src/xml_document.h:42:59: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> New(const v8::Arguments& args);
                                                           ^
../src/xml_document.h:43:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> FromHtml(const v8::Arguments& args);
                                                 ^
../src/xml_document.h:43:64: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> FromHtml(const v8::Arguments& args);
                                                                ^
../src/xml_document.h:44:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> FromXml(const v8::Arguments& args);
                                                ^
../src/xml_document.h:44:63: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> FromXml(const v8::Arguments& args);
                                                               ^
../src/xml_document.h:45:47: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> SetDtd(const v8::Arguments& args);
                                               ^
../src/xml_document.h:45:62: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> SetDtd(const v8::Arguments& args);
                                                              ^
../src/xml_document.h:48:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Root(const v8::Arguments& args);
                                             ^
../src/xml_document.h:48:60: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Root(const v8::Arguments& args);
                                                            ^
../src/xml_document.h:49:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Encoding(const v8::Arguments& args);
                                                 ^
../src/xml_document.h:49:64: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Encoding(const v8::Arguments& args);
                                                                ^
../src/xml_document.h:50:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Version(const v8::Arguments& args);
                                                ^
../src/xml_document.h:50:63: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Version(const v8::Arguments& args);
                                                               ^
../src/xml_document.h:51:44: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Doc(const v8::Arguments& args);
                                            ^
../src/xml_document.h:51:59: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Doc(const v8::Arguments& args);
                                                           ^
../src/xml_document.h:52:47: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Errors(const v8::Arguments& args);
                                               ^
../src/xml_document.h:52:62: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Errors(const v8::Arguments& args);
                                                              ^
../src/xml_document.h:53:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> ToString(const v8::Arguments& args);
                                                 ^
../src/xml_document.h:53:64: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> ToString(const v8::Arguments& args);
                                                                ^
../src/xml_document.h:54:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Validate(const v8::Arguments& args);
                                                 ^
../src/xml_document.h:54:64: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Validate(const v8::Arguments& args);
                                                                ^
../src/xml_document.h: In member function ‘void libxmljs::XmlDocument::ref()’:
../src/xml_document.h:30:13: error: ‘Ref’ was not declared in this scope
         Ref();
             ^
../src/xml_document.h: In member function ‘void libxmljs::XmlDocument::unref()’:
../src/xml_document.h:34:15: error: ‘Unref’ was not declared in this scope
         Unref();
               ^
In file included from ../src/libxmljs.cc:9:0:
../src/xml_node.h: At global scope:
../src/xml_node.h:9:41: error: expected class-name before ‘{’ token
 class XmlNode : public node::ObjectWrap {
                                         ^
../src/xml_node.h:25:44: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Doc(const v8::Arguments& args);
                                            ^
../src/xml_node.h:25:59: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Doc(const v8::Arguments& args);
                                                           ^
../src/xml_node.h:26:50: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Namespace(const v8::Arguments& args);
                                                  ^
../src/xml_node.h:26:65: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Namespace(const v8::Arguments& args);
                                                                 ^
../src/xml_node.h:27:51: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Namespaces(const v8::Arguments& args);
                                                   ^
../src/xml_node.h:27:66: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Namespaces(const v8::Arguments& args);
                                                                  ^
../src/xml_node.h:28:47: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Parent(const v8::Arguments& args);
                                               ^
../src/xml_node.h:28:62: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Parent(const v8::Arguments& args);
                                                              ^
../src/xml_node.h:29:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> NextSibling(const v8::Arguments& args);
                                                    ^
../src/xml_node.h:29:67: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> NextSibling(const v8::Arguments& args);
                                                                   ^
../src/xml_node.h:30:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> PrevSibling(const v8::Arguments& args);
                                                    ^
../src/xml_node.h:30:67: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> PrevSibling(const v8::Arguments& args);
                                                                   ^
../src/xml_node.h:31:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Type(const v8::Arguments& args);
                                             ^
../src/xml_node.h:31:60: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Type(const v8::Arguments& args);
                                                            ^
../src/xml_node.h:32:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> ToString(const v8::Arguments& args);
                                                 ^
../src/xml_node.h:32:64: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> ToString(const v8::Arguments& args);
                                                                ^
../src/xml_node.h:33:47: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Remove(const v8::Arguments& args);
                                               ^
../src/xml_node.h:33:62: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Remove(const v8::Arguments& args);
                                                              ^
../src/xml_node.h:34:46: error: ‘Arguments’ in namespace ‘v8’ does not name a type
     static v8::Handle<v8::Value> Clone(const v8::Arguments& args);
                                              ^
../src/xml_node.h:34:61: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
     static v8::Handle<v8::Value> Clone(const v8::Arguments& args);
                                                             ^
In file included from ../src/libxmljs.cc:10:0:
../src/xml_sax_parser.h:9:46: error: expected class-name before ‘{’ token
 class XmlSaxParser : public node::ObjectWrap {
                                              ^
../src/xml_sax_parser.h:19:19: error: ‘Arguments’ in namespace ‘v8’ does not name a type
   NewParser(const v8::Arguments& args);
                   ^
../src/xml_sax_parser.h:19:34: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
   NewParser(const v8::Arguments& args);
                                  ^
../src/xml_sax_parser.h:22:23: error: ‘Arguments’ in namespace ‘v8’ does not name a type
   NewPushParser(const v8::Arguments& args);
                       ^
../src/xml_sax_parser.h:22:38: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
   NewPushParser(const v8::Arguments& args);
                                      ^
../src/xml_sax_parser.h:25:21: error: ‘Arguments’ in namespace ‘v8’ does not name a type
   ParseString(const v8::Arguments& args);
                     ^
../src/xml_sax_parser.h:25:36: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
   ParseString(const v8::Arguments& args);
                                    ^
../src/xml_sax_parser.h:28:14: error: ‘Arguments’ in namespace ‘v8’ does not name a type
   Push(const v8::Arguments& args);
              ^
../src/xml_sax_parser.h:28:29: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
   Push(const v8::Arguments& args);
                             ^
In file included from ../src/libxmljs.cc:3:0:
/home/daniele/.node-gyp/0.11.12/deps/v8/include/v8.h: In function ‘void libxmljs::init(v8::Handle<v8::Object>)’:
/home/daniele/.node-gyp/0.11.12/deps/v8/include/v8.h:768:13: error: ‘v8::HandleScope::HandleScope()’ is private
   V8_INLINE HandleScope() {}
             ^
../src/libxmljs.cc:123:23: error: within this context
       v8::HandleScope scope;
                       ^
make: *** [Release/obj.target/xmljs/src/libxmljs.o] Errore 1
@polotek
Copy link
Collaborator

polotek commented Jul 1, 2014

@danielecr it doesn't work on any version < 0.11.13. I'm confused because you are in this other pull request where this was discussed, #208. We are tracking towards supporting the stable release of 0.12. We're not going to be supporting random unstable versions.

@polotek polotek closed this as completed Jul 1, 2014
@danielecr
Copy link
Author

I apologize for this ... I was confused myself first, I just fail to remember what happened, I was sure I had discussed this, I had some trouble to understand it was actually this the project, I had planned to used it for validating xml schema (then switched to another project, then I am back again), validate capability is not well sponsored, see here: https://www.npmjs.org/package/libxmljs
nothing about schema validation

@polotek
Copy link
Collaborator

polotek commented Jul 1, 2014

We do support schema validation. I'm not sure about the api though :). Try searching the existing issues. Also maybe @defunctzombie can point you in the right direction. If we can get you sorted out, we would appreciate a contribution to the docs to outline how schema validation works.

@defunctzombie
Copy link
Collaborator

I don't know anything about validation, but as @polotek says, once you learn, some wiki contributions would be welcome :)

@danielecr
Copy link
Author

@defunctzombie I am following #227 , when it is committed (and I understood what it does) I will add something to https://github.com/polotek/libxmljs/wiki#validating-against-xsd-schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants