Comments (12)
please close the issue. A solved the problem by setting CMAKE_CXX_FLAGS
to -std=c++0x
from xmrig-proxy.
What gcc version you use?
Thank you.
from xmrig-proxy.
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-10)
from xmrig-proxy.
In which file I should add this option?
Thank you.
from xmrig-proxy.
@Dmitrich777
into CMakeLists.txt
from xmrig-proxy.
I have the same issue.
In file CMakeLists.txt
I changed like below:
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS} -Wall")
The problem still exist, anyone can help?
from xmrig-proxy.
Change
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS} -Wall")
to
set(CMAKE_CXX_FLAGS "-std=c++0x")
from xmrig-proxy.
Thanks for your response.
I have changed line 171 like set(CMAKE_CXX_FLAGS "-std=c++0x")
But the error like this:
root@vultr:~/xmrig-proxy/build# make
Scanning dependencies of target xmrig-proxy
[ 2%] Building CXX object CMakeFiles/xmrig-proxy.dir/src/api/Api.cpp.o
[ 4%] Building CXX object CMakeFiles/xmrig-proxy.dir/src/api/ApiState.cpp.o
/root/xmrig-proxy/src/api/ApiState.cpp: In member function ‘void ApiState::genId()’:
/root/xmrig-proxy/src/api/ApiState.cpp:139:53: error: no match for ‘operator<’ (operand types are ‘uv_err_t {aka uv_err_s}’ and ‘int’)
if (uv_interface_addresses(&interfaces, &count) < 0) {
^
/root/xmrig-proxy/src/api/ApiState.cpp:146:58: error: ‘uv_interface_address_t’ has no member named ‘phys_addr’
const size_t addrSize = sizeof(interfaces[i].phys_addr);
^
/root/xmrig-proxy/src/api/ApiState.cpp:150:41: error: ‘uv_interface_address_t’ has no member named ‘phys_addr’
memcpy(input, interfaces[i].phys_addr, addrSize);
^
CMakeFiles/xmrig-proxy.dir/build.make:77: recipe for target 'CMakeFiles/xmrig-proxy.dir/src/api/ApiState.cpp.o' failed
make[2]: *** [CMakeFiles/xmrig-proxy.dir/src/api/ApiState.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/xmrig-proxy.dir/all' failed
make[1]: *** [CMakeFiles/xmrig-proxy.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
The environment is
root@vultr:~/xmrig-proxy/build# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.10 (jessie)
Release: 8.10
Codename: jessie
root@vultr:~/xmrig-proxy/build# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-10)
from xmrig-proxy.
The API issue is from libmicohttpd being too old. run 'cmake .. -DWITH_HTTPD=OFF' and then 'make' again.
See this: #86
from xmrig-proxy.
Its actually libmicrohttpd. A small typo mistake like this can give some headache to the less experienced users.
from xmrig-proxy.
In order to fix the libmicrohttpd update , you have to
wget https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-latest.tar.gz
unzip and cd into directory
./configure
make
make install
make clean
from xmrig-proxy.
@ElFutadoreMagnifico @swampfighter
I found the issue that due to the older version of libuv. The version of libuv on my machine is 0.10
Same as Issue xmrig/xmrig#231
Solve the problem after updated libuv .
Thanks a lot for everyone.
from xmrig-proxy.
Related Issues (20)
- When running on Linux (running for about two or three days), Http Api crashes and returns a 502 error. HOT 1
- Occasional Read error end of file
- Invalid job id
- Ghostrider HOT 7
- custom diff set in xm-proxy HOT 2
- xmrig-proxy crash with Error traps: xmrig-proxy[1661] general protection fault ip HOT 3
- The new version does not run on Ubuntu 23.10 HOT 3
- Number of workers
- What is the most stable version without connection issues or duplicated miners ? HOT 5
- Logging should not be fully read into memory HOT 3
- Logging cannot continue after logging file is truncated
- The question of load distribution
- http api options and https api
- how to get my xmrig proxy token for https://proxy.xmrig.info/
- daemon hashrate HOT 1
- Xmrig's H button stops the work of the miner
- config.xmrig.com/proxy OFFLINE HOT 3
- Multi bind host and pools HOT 1
- Automatic Difficulty Adjustment for Each User in XMRig Proxy "Reduce worker diff" HOT 3
- Miner Spamming Connections
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmrig-proxy.