wa0nder opened a new issue, #5747: URL: https://github.com/apache/couchdb/issues/5747
I'm attempting to build CouchDB from source because I want a couchdb installation that is self-contained in a single folder on linux as with test builds. I am following these two links: https://github.com/apache/couchdb/blob/main/INSTALL.Unix.md https://cwiki.apache.org/confluence/display/COUCHDB/Testing+a+Source+Release As a quick aside, Mozilla SpiderMonkey 60 no longer has all of the necessary .h files and I had to change the rebar.config.script file to directly use mozjs128 like so: "-I/usr/include/mozjs-128 -I/usr/local/include/mozjs-128" to get a successful ./configure run. I have all of the dependencies installed already, successfully ran ./configure. And then I ran 'make release' (also tried 'make check') and encountered these two errors: ``` Compiling /run/media/veracrypt2/couchdb/dist/apache-couchdb-3.5.1/src/couch/priv/couch_js/86/main.cpp /run/media/veracrypt2/couchdb/dist/apache-couchdb-3.5.1/src/couch/priv/couch_js/86/main.cpp:51:1: error: too many initializers for â 51 | }; | ^ /run/media/veracrypt2/couchdb/dist/apache-couchdb-3.5.1/src/couch/priv/couch_js/86/main.cpp:257:1: error: invalid conversion from â {aka â} to â {aka â} [-fpermissive] 257 | }; | ^ | | | bool (*)(JSContext*, JS::HandleString) {aka bool (*)(JSContext*, JS::Handle<JSString*>)} ``` line 51 is this: ``` static JSClassOps global_ops = { nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, JS_GlobalObjectTraceHook }; ``` Can someone far more knowledgeable in C++ explain what this is doing and what this error means? I tried looking up vectors, scalars, structs, and array initialization and experimented with running some alternate formats (e.g. adding []) in an online c++ compiler but I still don't know exactly what is being initialized here and why it is breaking. Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
