-
Notifications
You must be signed in to change notification settings - Fork 443
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
Update for -std=c++11 #171
Comments
@CompunixAustralia, could you have a look please? |
See pull #184 and see below for more detail |
Thanks. I tried to build with g++ -D_REENTRANT_ -D_CHECK_FORMAT_STRING_ -I. -Wdate-time -D_FORTIFY_SOURCE=2 -Wno-write-strings -Wno-literal-suffix -c Clusterdb.cpp
In file included from Mem.cpp:3:
Mem.h:219:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
219 | void * operator new (size_t size) throw (std::bad_alloc);
| ^~~~~
Mem.cpp:233:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
233 | void * operator new (size_t size) throw (std::bad_alloc) {
| ^~~~~
Mem.cpp:233:8: error: declaration of ‘void* operator new(size_t) throw (std::bad_alloc)’ has a different exception specifier
233 | void * operator new (size_t size) throw (std::bad_alloc) {
| ^~~~~~~~
In file included from Mem.cpp:3:
Mem.h:219:8: note: from previous declaration ‘void* operator new(size_t)’
219 | void * operator new (size_t size) throw (std::bad_alloc);
| ^~~~~~~~
Mem.cpp:337:38: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
337 | void * operator new [] (size_t size) throw (std::bad_alloc) {
| ^~~~~
make[1] *** [Makefile:588: Mem.o] Error 1 |
The deprecated warning from Mem.h should be suppressed by changing To void * operator new (size_t size) noexcept(false); Edit: This is included in the compiler-warning branch. Work in progress. |
my code complies with similiar fix as you mentioned but when i run ./gb i get this error mem: addMem: init failed Disabling checks am i out of Ram? i ran before on 2 gb of ram |
I complied on a VMware Ubuntu 18 with 4 gb of ram Anybody know why? |
I am only able to run it on Ubuntu 16 Mem addmem init failed disabling checks |
this is how i fixed it on ubunutu 20 sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock and restart your system h.cdccdc sudo apt-get clean all sudo apt-get update && sudo apt-get upgrade sudo apt-get dist-upgrade sudo dpkg -l | grep ^..r | apt-get purge make ./gb |
Is this what you meant by how you got it to function? |
yes exactly |
I am not sure what messing with the packages would have to do with it running, but I did the above and the results are: If I try to run it as "./gb" then it will core dump immediately.
Giving it more access via "sudo ./gb" and it will start running. Once I try adding a site to crawl, same thing again:
I guess we see why it appears to be an abandoned project. Can't even get it to function., |
Hello ok so you are in the gui admin crwaling? |
You probably have to do nodes by making a cluster of computers. |
#164 was closed by 7a2bca9 that forced outdated standard
-std=c++98
.Ideally code should be updated for current/default
-std=c++11
(as per "FIXME comment).The text was updated successfully, but these errors were encountered: