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

ModSecurity Compile error #2

Open
liluredhat opened this issue Mar 2, 2023 · 0 comments
Open

ModSecurity Compile error #2

liluredhat opened this issue Mar 2, 2023 · 0 comments

Comments

@liluredhat
Copy link

Steps:
1、swig -I/usr/local/modsecurity/include/modsecurity/ -javascript -node -Wall -Wextra -c++ modsecurity/modsecurity.i
2、npm install
3、./node_modules/node-gyp/bin/node-gyp.js configure
4、./node_modules/node-gyp/bin/node-gyp.js build

Errors:
../modsecurity/modsecurity_wrap.cxx:6082:18: error: ‘class OverloadErrorHandler’ has no member named ‘err’; did you mean ‘error’?
6082 | errorHandler.err.Clear();
| ^~~
| error
../modsecurity/modsecurity_wrap.cxx:6090:21: error: ‘class OverloadErrorHandler’ has no member named ‘err’; did you mean ‘error’?
6090 | if(errorHandler.err.IsEmpty()) {
| ^~~
| error
../modsecurity/modsecurity_wrap.cxx:6098:18: error: ‘class OverloadErrorHandler’ has no member named ‘err’; did you mean ‘error’?
6098 | errorHandler.err.Clear();
| ^~~
| error
../modsecurity/modsecurity_wrap.cxx:6106:21: error: ‘class OverloadErrorHandler’ has no member named ‘err’; did you mean ‘error’?
6106 | if(errorHandler.err.IsEmpty()) {
| ^~~
| error
../modsecurity/modsecurity_wrap.cxx:6114:18: error: ‘class OverloadErrorHandler’ has no member named ‘err’; did you mean ‘error’?
6114 | errorHandler.err.Clear();
| ^~~

make[1]: *** [Makefile:270:Release/obj.target/modsecurity/modsecurity_wrap.o] 错误 1
make[1]: Leave dir“/app/src/Modsecurity-nodejs/build”
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/app/src/Modsecurity-nodejs/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 5.10.0-21-amd64
gyp ERR! command "/usr/bin/node" "/app/src/Modsecurity-nodejs/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /app/src/Modsecurity-nodejs

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

1 participant