Giter Site home page Giter Site logo

Comments (12)

fsdevblog avatar fsdevblog commented on July 24, 2024

please close the issue. A solved the problem by setting CMAKE_CXX_FLAGS to -std=c++0x

from xmrig-proxy.

xmrig avatar xmrig commented on July 24, 2024

What gcc version you use?
Thank you.

from xmrig-proxy.

fsdevblog avatar fsdevblog commented on July 24, 2024

@xmrig

# 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.

Dmitrich777 avatar Dmitrich777 commented on July 24, 2024

In which file I should add this option?
Thank you.

from xmrig-proxy.

fsdevblog avatar fsdevblog commented on July 24, 2024

@Dmitrich777
into CMakeLists.txt

from xmrig-proxy.

Green-m avatar Green-m commented on July 24, 2024

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.

swampfighter avatar swampfighter commented on July 24, 2024

Change
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS} -Wall")
to
set(CMAKE_CXX_FLAGS "-std=c++0x")

from xmrig-proxy.

Green-m avatar Green-m commented on July 24, 2024

@swampfighter

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.

swampfighter avatar swampfighter commented on July 24, 2024

The API issue is from libmicohttpd being too old. run 'cmake .. -DWITH_HTTPD=OFF' and then 'make' again.

See this: #86

from xmrig-proxy.

ElFutadoreMagnifico avatar ElFutadoreMagnifico commented on July 24, 2024

Its actually libmicrohttpd. A small typo mistake like this can give some headache to the less experienced users.

from xmrig-proxy.

ElFutadoreMagnifico avatar ElFutadoreMagnifico commented on July 24, 2024

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.

Green-m avatar Green-m commented on July 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.