cryptonotefoundation / cryptonote

CryptoNote protocol implementation. This is the reference repository for starting a new CryptoNote currency. See /src/cryptonote_config.h
https://cryptonote.org/
991 stars 6.1k forks source link

Error compile in connectivity_tool without genesis block Debian Jessie #9

Open margotpaon opened 9 years ago

margotpaon commented 9 years ago

Hi guys! I need of the help to compile. In make command appear several error's in connectivity_tool thanks!

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)
Scanning dependencies of target ConnectivityTool
make[3]: Leaving directory '/root/sneakcoin/cryptonote/build/debug'
make[3]: Entering directory '/root/sneakcoin/cryptonote/build/debug'
[ 50%] Building CXX object src/CMakeFiles/ConnectivityTool.dir/ConnectivityTool/ConnectivityTool.cpp.o
Linking CXX executable connectivity_tool
libSerialization.a(KVBinaryInputStreamSerializer.cpp.o): In function `readPod<CryptoNote::KVBinaryStorageBlockHeader>':
/root/sneakcoin/cryptonote/src/Serialization/KVBinaryInputStreamSerializer.cpp:22: undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)'
libSerialization.a(KVBinaryInputStreamSerializer.cpp.o): In function `readPod<unsigned char>':
/root/sneakcoin/cryptonote/src/Serialization/KVBinaryInputStreamSerializer.cpp:22: undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)'
libSerialization.a(KVBinaryInputStreamSerializer.cpp.o): In function `readPod<long int>':
/root/sneakcoin/cryptonote/src/Serialization/KVBinaryInputStreamSerializer.cpp:22: undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)'
libSerialization.a(KVBinaryInputStreamSerializer.cpp.o): In function `readPod<int>':
/root/sneakcoin/cryptonote/src/Serialization/KVBinaryInputStreamSerializer.cpp:22: undefined reference to `Co
mmon::read(Common::IInputStream&, void*, unsigned long)'
libSerialization.a(KVBinaryInputStreamSerializer.cpp.o): In function `readPod<short int>':
/root/sneakcoin/cryptonote/src/Serialization/KVBinaryInputStreamSerializer.cpp:22: undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)'
libSerialization.a(KVBinaryInputStreamSerializer.cpp.o):/root/sneakcoin/cryptonote/src/Serialization/KVBinaryInputStreamSerializer.cpp:22: more undefined references to `Common::read(Common::IInputStream&, void*, unsigned long)' follow
libSerialization.a(KVBinaryInputStreamSerializer.cpp.o): In function `unsigned char Common::read<unsigned char>(Common::IInputStream&)':
/root/sneakcoin/cryptonote/src/Common/StreamTools.h:47: undefined reference to `Common::read(Common::IInputStream&, unsigned char&)'
libSerialization.a(KVBinaryOutputStreamSerializer.cpp.o): In function `packVarint<unsigned char>':
/root/sneakcoin/cryptonote/src/Serialization/KVBinaryOutputStreamSerializer.cpp:26: undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)'
libSerialization.a(KVBinaryOutputStreamSerializer.cpp.o): In function `packVarint<short unsigned int>':
/root/sneakcoin/cryptonote/src/Serialization/KVBinaryOutputStreamSerializer.cpp:26: undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)'
libSerialization.a(KVBinaryOutputStreamSerializer.cpp.o): In function `packVarint<unsigned int>':
/root/sneakcoin/cryptonote/src/Serialization/KVBinaryOutputStreamSerializer.cpp:26: undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)'
libSerialization.a(KVBinaryOutputStreamSerializer.cpp.o): In function `packVarint<long unsigned int>':
/root/sneakcoin/cryptonote/src/Serialization/KVBinaryOutputStreamSerializer.cpp:26: undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)'
libSerialization.a(KVBinaryOutputStreamSerializer.cpp.o): In function `writePod<unsigned char>':
/root/sneakcoin/cryptonote/src/Serialization/KVBinaryOutputStreamSerializer.cpp:19: undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)'
libSerialization.a(KVBinaryOutputStreamSerializer.cpp.o):/root/sneakcoin/cryptonote/src/Serialization/KVBinaryOutputStreamSerializer.cpp:19: more undefined references to `Common::write(Common::IOutputStream&, void const*, unsigned long)' follow
collect2: error: ld returned 1 exit status
src/CMakeFiles/ConnectivityTool.dir/build.make:103: recipe for target 'src/connectivity_tool' failed
make[3]: *** [src/connectivity_tool] Error 1
make[3]: Leaving directory '/root/sneakcoin/cryptonote/build/debug'
CMakeFiles/Makefile2:382: recipe for target 'src/CMakeFiles/ConnectivityTool.dir/all' failed
make[2]: *** [src/CMakeFiles/ConnectivityTool.dir/all] Error 2
make[2]: Leaving directory '/root/sneakcoin/cryptonote/build/debug'
Makefile:86: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/root/sneakcoin/cryptonote/build/debug'
Makefile:8: recipe for target 'build-debug' failed
make: *** [build-debug] Error 2
AlbertWerner commented 9 years ago

It seems that something is wrong in src/CMakeLists.txt. Try to move Serialization in target_link_libraries(...) strings to the end of the list.

margotpaon commented 9 years ago

My src/CmakeLists.txt


cmake_minimum_required(VERSION 2.8.6)

set(VERSION "0.1")
# $Format:Packaged from commit %H%nset(COMMIT %h)%nset(REFS "%d")$

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_CONFIGURATION_TYPES Debug RelWithDebInfo Release CACHE TYPE INTERNAL)
set(CMAKE_SKIP_INSTALL_RULES ON)
set(CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY ON)
set(CMAKE_SUPPRESS_REGENERATION ON)
enable_testing()
# copy CTestCustom.cmake to build dir to disable long running tests in 'make test'
configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR})

project(CryptoNote)

include_directories(include src external "${CMAKE_BINARY_DIR}/version")
if(APPLE)
  include_directories(SYSTEM /usr/include/malloc)
  enable_language(ASM)
endif()

if(MSVC)
include_directories(src/Platform/Windows)
elseif(APPLE)
include_directories(src/Platform/OSX)
else()
include_directories(src/Platform/Linux)
endif()

set(STATIC ${MSVC} CACHE BOOL "Link libraries statically")

if(MSVC)
  add_definitions("/bigobj /MP /W3 /GS- /D_CRT_SECURE_NO_WARNINGS /wd4996 /wd4345 /D_WIN32_WINNT=0x0600 /DWIN32_LEAN_AND_MEAN /DGTEST_HAS_TR1_TUPLE=0 /D_VARIADIC_MAX=8 /D__SSE4_1__")
  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10485760")
  if(STATIC)
    foreach(VAR CMAKE_C_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELWITHDEBINFO CMAKE_C_FLAGS_RELEASE CMAKE_CXX_FLAGS_RELEASE)
      string(REPLACE "/MD" "/MT" ${VAR} "${${VAR}}")
    endforeach()
  endif()
  include_directories(SYSTEM src/platform/msc)
else()
  if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
    # This option has no effect in glibc version less than 2.20. 
    # Since glibc 2.20 _BSD_SOURCE is deprecated, this macro is recomended instead
    add_definitions("-D_DEFAULT_SOURCE -D_GNU_SOURCE")
  endif()
  set(ARCH native CACHE STRING "CPU to build for: -march value or default")
  if("${ARCH}" STREQUAL "default")
    set(ARCH_FLAG "")
  else()
    set(ARCH_FLAG "-march=${ARCH}")
  endif()
  set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Werror -Wno-error=extra -Wno-error=unused-function -Wno-error=deprecated-declarations -Wno-error=sign-compare -Wno-error=strict-aliasing -Wno-error=type-limits -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized -Wno-error=unused-result")
  if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
    set(WARNINGS "${WARNINGS} -Wno-error=mismatched-tags -Wno-error=null-conversion -Wno-overloaded-shift-op-parentheses -Wno-error=shift-count-overflow -Wno-error=tautological-constant-out-of-range-compare -Wno-error=unused-private-field -Wno-error=unneeded-internal-declaration -Wno-error=unused-function")
  else()
    set(WARNINGS "${WARNINGS} -Wlogical-op -Wno-error=maybe-uninitialized -Wno-error=clobbered -Wno-error=unused-but-set-variable")
  endif()
  if(MINGW)
    set(WARNINGS "${WARNINGS} -Wno-error=unused-value")
    set(MINGW_FLAG "-DWIN32_LEAN_AND_MEAN")
    include_directories(SYSTEM src/platform/mingw)
  else()
    set(MINGW_FLAG "")
  endif()
  if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_C_COMPILER_VERSION VERSION_LESS 5.1))
    set(WARNINGS "${WARNINGS} -Wno-error=odr")
  endif()
  set(C_WARNINGS "-Waggregate-return -Wnested-externs -Wold-style-definition -Wstrict-prototypes")
  set(CXX_WARNINGS "-Wno-reorder -Wno-missing-field-initializers")
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 ${MINGW_FLAG} ${WARNINGS} ${C_WARNINGS} ${ARCH_FLAG} -maes")
  if(NOT APPLE)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
  endif()
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${MINGW_FLAG} ${WARNINGS} ${CXX_WARNINGS} ${ARCH_FLAG} -maes")
  if(APPLE)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGTEST_HAS_TR1_TUPLE=0")
  endif()
  if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.8))
    set(DEBUG_FLAGS "-g3 -Og")
  else()
    set(DEBUG_FLAGS "-g3 -O0")
  endif()
  set(RELEASE_FLAGS "-Ofast -DNDEBUG -Wno-unused-variable")
  if(NOT APPLE)
    # There is a clang bug that does not allow to compile code that uses AES-NI intrinsics if -flto is enabled
    if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_SYSTEM_NAME STREQUAL "Linux" 
        AND CMAKE_BUILD_TYPE STREQUAL "Release" AND ((CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.9) OR (CMAKE_C_COMPILER_VERSION VERSION_EQUAL 4.9)))
      # On linux, to build in lto mode, check that ld.gold linker is used: 'update-alternatives --install /usr/bin/ld ld /usr/bin/ld.gold HIGHEST_PRIORITY'
      set(CMAKE_AR gcc-ar)
      set(CMAKE_RANLIB gcc-ranlib)
    endif()
    set(RELEASE_FLAGS "${RELEASE_FLAGS} -flto")
  endif()
  #if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT MINGW)
  #  set(RELEASE_FLAGS "${RELEASE_FLAGS} -fno-fat-lto-objects")
  #endif()
  set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${DEBUG_FLAGS}")
  set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DEBUG_FLAGS}")
  set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${RELEASE_FLAGS}")
  set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${RELEASE_FLAGS}")
  if(STATIC AND NOT APPLE)
    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
  endif()
endif()

if(STATIC)
  set(Boost_USE_STATIC_LIBS ON)
  set(Boost_USE_STATIC_RUNTIME ON)
endif()
find_package(Boost 1.55 REQUIRED COMPONENTS system filesystem thread date_time chrono regex serialization program_options)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
if(MINGW)
  set(Boost_LIBRARIES "${Boost_LIBRARIES};ws2_32;mswsock")
elseif(APPLE)
  set(Boost_LIBRARIES "${Boost_LIBRARIES}")
elseif(NOT MSVC)
  set(Boost_LIBRARIES "${Boost_LIBRARIES};rt")
endif()

set(COMMIT_ID_IN_VERSION ON CACHE BOOL "Include commit ID in version")
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/version")
if (NOT COMMIT_ID_IN_VERSION)
  set(VERSION "${VERSION}-unknown")
  configure_file("src/version.h.in" "version/version.h")
  add_custom_target(version ALL)
elseif(DEFINED COMMIT)
  string(REPLACE "." "\\." VERSION_RE "${VERSION}")
  if(NOT REFS MATCHES "(\\(|, )tag: v${VERSION_RE}(\\)|, )")
    set(VERSION "${VERSION}-g${COMMIT}")
  endif()
  configure_file("src/version.h.in" "version/version.h")
  add_custom_target(version ALL)
else()
  find_package(Git QUIET)
  if(Git_FOUND OR GIT_FOUND)
    message(STATUS "Found Git: ${GIT_EXECUTABLE}")
    add_custom_target(version ALL "${CMAKE_COMMAND}" "-D" "VERSION=${VERSION}" "-D" "GIT=${GIT_EXECUTABLE}" "-D" "TO=${CMAKE_BINARY_DIR}/version/version.h" "-P" "src/version.cmake" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
  else()
    message(STATUS "WARNING: Git was not found!")
    set(VERSION "${VERSION}-unknown")
    configure_file("src/version.h.in" "version/version.h")
    add_custom_target(version ALL)
  endif()
endif()

add_subdirectory(external)
add_subdirectory(src)
add_subdirectory(tests)
AlbertWerner commented 9 years ago

It seems that you're looking on the wrong file, you sent CMakeLists.txt(from root), but you should use src/CMakeLists.txt, and there you could find target_link_libraries(), where you have to put "Serialization" in the end of list.

dinastyoffreedom commented 8 years ago

hello I got the same problem. have you solve it? and if yes how?

grantwwoodford commented 8 years ago

Hi, I also have the same issue. Putting Serialization in the end of the list does not help.

TeddyBream commented 7 years ago

After the suggested change the issue persists. Here's the diff of the changes:

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b02ec28..0000451 100755
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -61,11 +61,11 @@ if (MSVC)
   target_link_libraries(System ws2_32)
 endif ()

-target_link_libraries(ConnectivityTool CryptoNoteCore Common Logging Crypto P2P Rpc Http Serialization System ${Boost_LIBRARIES})
-target_link_libraries(Daemon CryptoNoteCore P2P Rpc Serialization System Http Logging Common Crypto upnpc-static BlockchainExplorer ${Boost_LIBRARIES})
-target_link_libraries(SimpleWallet Wallet NodeRpcProxy Transfers Rpc Http Serialization CryptoNoteCore System Logging Common Crypto ${Boost_LIBRARIES})
-target_link_libraries(PaymentGateService PaymentGate JsonRpcServer Wallet NodeRpcProxy Transfers CryptoNoteCore Crypto P2P Rpc Http Serialization System Logging Common InProcessNode upnpc-static BlockchainExplorer ${Boost_LIBRARIES})
-target_link_libraries(Miner CryptoNoteCore Rpc Serialization System Http Logging Common Crypto ${Boost_LIBRARIES})
+target_link_libraries(ConnectivityTool CryptoNoteCore Common Logging Crypto P2P Rpc Http System ${Boost_LIBRARIES} Serialization)
+target_link_libraries(Daemon CryptoNoteCore P2P Rpc System Http Logging Common Crypto upnpc-static BlockchainExplorer ${Boost_LIBRARIES} Serialization)
+target_link_libraries(SimpleWallet Wallet NodeRpcProxy Transfers Rpc Http CryptoNoteCore System Logging Common Crypto ${Boost_LIBRARIES} Serialization)
+target_link_libraries(PaymentGateService PaymentGate JsonRpcServer Wallet NodeRpcProxy Transfers CryptoNoteCore Crypto P2P Rpc Http System Logging Common InProcessNode upnpc-static BlockchainExplorer ${Boost_LIBRARIES} Serialization)
+target_link_libraries(Miner CryptoNoteCore Rpc System Http Logging Common Crypto ${Boost_LIBRARIES} Serialization)

My bad. Wrote this message up to go yesterday, but wanted to check a few things before I posted. In the mean time ANBAL534's commit has shown how to fix the error. Cheers.

RoyalCryptoFoundation commented 6 years ago

CMake Error at src/CMakeLists.txt:65: Parse error. Expected a command name, got unquoted argument with text "-target_link_libraries".

CMake Warning in CMakeLists.txt: CMAKE_SKIP_INSTALL_RULES was enabled even though installation rules have been specified

-- Configuring incomplete, errors occurred! See also "/home/kingo/Desktop/Tessac/build/release/CMakeFiles/CMakeOutput.log". See also "/home/kingo/Desktop/Tessac/build/release/CMakeFiles/CMakeError.log". Makefile:690: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1

error please help .

RoyalCryptoFoundation commented 6 years ago

kingo@kingo-desktop:~/Desktop/Tessac/build/release$ make -j4 -- Boost version: 1.62.0 -- Found the following Boost libraries: -- system -- filesystem -- thread -- date_time -- chrono -- regex -- serialization -- program_options -- atomic CMake Error at src/CMakeLists.txt:65: Parse error. Expected a command name, got unquoted argument with text "-target_link_libraries".

CMake Warning in CMakeLists.txt: CMAKE_SKIP_INSTALL_RULES was enabled even though installation rules have been specified

-- Configuring incomplete, errors occurred! See also "/home/kingo/Desktop/Tessac/build/release/CMakeFiles/CMakeOutput.log". See also "/home/kingo/Desktop/Tessac/build/release/CMakeFiles/CMakeError.log". Makefile:690: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 kingo@kingo-desktop:~/Desktop/Tessac/build/release$

SoraKohaku commented 6 years ago

see my repo will fixed all problem

On Dec 19, 2017 12:15 AM, "RoyalCryptoFoundation" notifications@github.com wrote:

kingo@kingo-desktop:~/Desktop/Tessac/build/release$ make -j4 -- Boost version: 1.62.0 -- Found the following Boost libraries: -- system -- filesystem -- thread -- date_time -- chrono -- regex -- serialization -- program_options -- atomic CMake Error at src/CMakeLists.txt:65: Parse error. Expected a command name, got unquoted argument with text "-target_link_libraries".

CMake Warning in CMakeLists.txt: CMAKE_SKIP_INSTALL_RULES was enabled even though installation rules have been specified

-- Configuring incomplete, errors occurred! See also "/home/kingo/Desktop/Tessac/build/release/CMakeFiles/ CMakeOutput.log". See also "/home/kingo/Desktop/Tessac/build/release/CMakeFiles/ CMakeError.log". Makefile:690: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 kingo@kingo-desktop:~/Desktop/Tessac/build/release$

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/9#issuecomment-352454725, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tWVQAimlFbCxCKkeXTj5tOrsffx2ks5tBoGYgaJpZM4GK5X5 .

SpliffyMap commented 6 years ago

Thanks FndNur1Labs :+1:

SoraKohaku commented 6 years ago

no problem. just not pull beta yet. still bugs damn sync bcn with premine....

On Jan 6, 2018 6:32 AM, "SpliffyMap" notifications@github.com wrote:

Thanks FndNur1Labs πŸ‘

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/9#issuecomment-355670856, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tcg2gjKQDkWMvzOMLx8jIaLCcrCvks5tHpTogaJpZM4GK5X5 .

jainvikram commented 6 years ago

Getting hell load of errors. :(

jainvikram commented 6 years ago

cd /home/veda/vedacoin/build/release/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/ConnectivityTool.dir/link.txt --verbose=1 /usr/bin/c++ -pthread -std=c++11 -Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Werror -Wno-error=extra -Wno-error=unused-function -Wno-error=deprecated-declarations -Wno-error=sign-compare -Wno-error=strict-aliasing -Wno-error=type-limits -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized -Wno-error=unused-result -Wlogical-op -Wno-error=maybe-uninitialized -Wno-error=clobbered -Wno-error=unused-but-set-variable -Wno-error=odr -Wno-reorder -Wno-missing-field-initializers -march=native -maes -O3 -DNDEBUG -Ofast -DNDEBUG -Wno-unused-variable -flto CMakeFiles/ConnectivityTool.dir/ConnectivityTool/ConnectivityTool.cpp.o -o connectivity_tool -rdynamic libCryptoNoteCore.a libCommon.a libLogging.a libCrypto.a libP2P.a libRpc.a libHttp.a libSerialization.a libSystem.a -lboost_system -lboost_filesystem -lboost_thread -lboost_date_time -lboost_chrono -lboost_regex -lboost_serialization -lboost_program_options -lboost_atomic -lpthread -lrt /usr/bin/ld: StreamTools.cpp.o: plugin needed to handle lto object /tmp/ccJfR21L.ltrans1.ltrans.o: In function `std::_Function_handler<void (), handle_request_stat(boost::program_options::variables_map&, unsigned long)::{lambda()#4}>::_M_invoke(std::_Any_data const&) [clone .lto_priv.444]':

:(.text+0xc83): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0xcb6): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0xe0b): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0xe4e): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' /tmp/ccJfR21L.ltrans1.ltrans.o: In function `std::_Function_handler::_M_invoke(std::_Any_data const&) [clone .lto_priv.446]': :(.text+0x1178): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' /tmp/ccJfR21L.ltrans1.ltrans.o::(.text+0x11a5): more undefined references to `Common::write(Common::IOutputStream&, void const*, unsigned long)' follow /tmp/ccJfR21L.ltrans13.ltrans.o: In function `(anonymous namespace)::loadSection(Common::IInputStream&) [clone .lto_priv.382]': :(.text+0xdae): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0xde9): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0xe3e): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0xe99): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0xec4): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0xf00): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0xf39): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' /tmp/ccJfR21L.ltrans20.ltrans.o: In function `(anonymous namespace)::loadValue(Common::IInputStream&, unsigned char) [clone .lto_priv.385]': :(.text+0x487): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x4f4): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0x534): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0x564): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0x5a4): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0x5d4): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' /tmp/ccJfR21L.ltrans20.ltrans.o::(.text+0x5f4): more undefined references to `Common::read(Common::IInputStream&, void*, unsigned long)' follow /tmp/ccJfR21L.ltrans20.ltrans.o: In function `(anonymous namespace)::loadValue(Common::IInputStream&, unsigned char) [clone .lto_priv.385]': :(.text+0x6cc): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x707): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x7a9): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x839): undefined reference to `Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x86c): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' /tmp/ccJfR21L.ltrans20.ltrans.o: In function `CryptoNote::KVBinaryInputStreamSerializer::KVBinaryInputStreamSerializer(Common::IInputStream&)': :(.text+0x920): undefined reference to `Common::read(Common::IInputStream&, void*, unsigned long)' /tmp/ccJfR21L.ltrans21.ltrans.o: In function `(anonymous namespace)::writeElementName(Common::IOutputStream&, Common::StringView) [clone .constprop.205]': :(.text+0xb7): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0xc7): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' /tmp/ccJfR21L.ltrans21.ltrans.o: In function `Crypto::serialize(Crypto::Signature&, Common::StringView, CryptoNote::ISerializer&) [clone .constprop.191]': :(.text+0x1366): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0x1376): undefined reference to `Common::write(Common::IOutputStream&, void const*, unsigned long)' collect2: error: ld returned 1 exit status src/CMakeFiles/ConnectivityTool.dir/build.make:113: recipe for target 'src/connectivity_tool' failed make[3]: *** [src/connectivity_tool] Error 1 make[3]: Leaving directory '/home/veda/vedacoin/build/release' CMakeFiles/Makefile2:955: recipe for target 'src/CMakeFiles/ConnectivityTool.dir/all' failed make[2]: *** [src/CMakeFiles/ConnectivityTool.dir/all] Error 2 make[2]: Leaving directory '/home/veda/vedacoin/build/release' Makefile:94: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/veda/vedacoin/build/release' Makefile:20: recipe for target 'build-release' failed make: *** [build-release] Error 2
SoraKohaku commented 6 years ago

try this

apt install build-essential libqt4-dev qt5-qmake cmake qttools5-dev libqt5webkit5-dev qttools5-dev-tools qt5-default python-sphinx texlive-latex-base inotify-tools openssl libssl-dev libdb++-dev libminiupnpc-dev git sqlite3 libsqlite3-dev g++ libpng-dev gedit python gcc make libbz2-dev libdb-dev libssl-dev libreadline-dev autoconf libtool libleveldb-dev libblkid-dev e2fslibs-dev libboost-all-dev libaudit-dev automake nano qtbase5-dev qt4-dev-tools libqt4-core libqt4-gui libqt5-core libqt5-gui

On Jan 7, 2018 7:26 AM, "jainvikram" notifications@github.com wrote:

cd /home/veda/vedacoin/build/release/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/ConnectivityTool.dir/link.txt --verbose=1 /usr/bin/c++ -pthread -std=c++11 -Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Werror -Wno-error=extra -Wno-error=unused-function -Wno-error=deprecated-declarations -Wno-error=sign-compare -Wno-error=strict-aliasing -Wno-error=type-limits -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized -Wno-error=unused-result -Wlogical-op -Wno-error=maybe-uninitialized -Wno-error=clobbered -Wno-error=unused-but-set-variable -Wno-error=odr -Wno-reorder -Wno-missing-field-initializers -march=native -maes -O3 -DNDEBUG -Ofast -DNDEBUG -Wno-unused-variable -flto CMakeFiles/ConnectivityTool.dir/ConnectivityTool/ConnectivityTool.cpp.o -o connectivity_tool -rdynamic libCryptoNoteCore.a libCommon.a libLogging.a libCrypto.a libP2P.a libRpc.a libHttp.a libSerialization.a libSystem.a -lboost_system -lboost_filesystem -lboost_thread -lboost_date_time -lboost_chrono -lboost_regex -lboost_serialization -lboost_program_options -lboost_atomic -lpthread -lrt /usr/bin/ld: StreamTools.cpp.o: plugin needed to handle lto object /tmp/ccJfR21L.ltrans1.ltrans.o: In function std::_Function_handler<void (), handle_request_stat(boost::program_options::variables_map&, unsigned long)::{lambda()#4}>::_M_invoke(std::_Any_data const&) [clone .lto_priv.444]': :(.text+0xc83): undefined reference to Common::write(Common::IOutputStream&, void const, unsigned long)' :(.text+0xcb6): undefined reference to Common::write(Common::IOutputStream&, void const, unsigned long)' :(.text+0xe0b): undefined reference toCommon::write(Common::IOutputStream&, void const, unsigned long)' :(.text+0xe4e): undefined reference to Common::write(Common::IOutputStream&, void const, unsigned long)' /tmp/ccJfR21L.ltrans1.ltrans.o: In function std::_Function_handler<void (), handle_request_stat(boost:: program_options::variables_map&, unsigned long)::{lambda()#3 https://github.com/cryptonotefoundation/cryptonote/pull/3}>::_M_invoke(std::_Any_data const&) [clone .lto_priv.446]': :(.text+0x1178): undefined reference to Common::write(Common::IOutputStream&, void const, unsigned long)' /tmp/ccJfR21L.ltrans1.ltrans.o::(.text+0x11a5): more undefined references toCommon::write(Common::IOutputStream&, void const, unsigned long)' follow /tmp/ccJfR21L.ltrans13.ltrans.o: In function (anonymous namespace)::loadSection(Common::IInputStream&) [clone .lto_priv.382]':

:(.text+0xdae): undefined reference toCommon::read(Common::IInputStream&, unsigned char&)' :(.text+0xde9): undefined reference to Common::read(Common::IInputStream&, unsigned char&)' :(.text+0xe3e): undefined reference to Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0xe99): undefined reference to Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0xec4): undefined reference to Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0xf00): undefined reference to Common::read(Common::IInputStream&, unsigned char&)' :(.text+0xf39): undefined reference to Common::read(Common::IInputStream&, unsigned char&)' /tmp/ccJfR21L.ltrans20.ltrans.o: In function (anonymous namespace)::loadValue(Common::IInputStream&, unsigned char) [clone .lto_priv.385]': :(.text+0x487): undefined reference to Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x4f4): undefined reference to Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0x534): undefined reference to Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0x564): undefined reference to Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0x5a4): undefined reference to Common::read(Common::IInputStream&, void*, unsigned long)' :(.text+0x5d4): undefined reference to Common::read(Common::IInputStream&, void*, unsigned long)' /tmp/ccJfR21L.ltrans20.ltrans.o::(.text+0x5f4): more undefined references toCommon::read(Common::IInputStream&, void*, unsigned long)' follow /tmp/ccJfR21L.ltrans20.ltrans.o: In function (anonymous namespace)::loadValue(Common::IInputStream&, unsigned char) [clone .lto_priv.385]': :(.text+0x6cc): undefined reference to Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x707): undefined reference to Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x7a9): undefined reference to Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x839): undefined reference to Common::read(Common::IInputStream&, unsigned char&)' :(.text+0x86c): undefined reference to Common::read(Common::IInputStream&, void*, unsigned long)' /tmp/ccJfR21L.ltrans20.ltrans.o: In function CryptoNote:: KVBinaryInputStreamSerializer::KVBinaryInputStreamSerializer(Common::IInputStream&)': :(.text+0x920): undefined reference toCommon::read(Common::IInputStream&, void*, unsigned long)' /tmp/ccJfR21L.ltrans21.ltrans.o: In function (anonymous namespace)::writeElementName(Common::IOutputStream&, Common::StringView) [clone .constprop.205]': :(.text+0xb7): undefined reference to Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0xc7): undefined reference to Common::write(Common::IOutputStream&, void const*, unsigned long)' /tmp/ccJfR21L.ltrans21.ltrans.o: In function Crypto::serialize(Crypto::Signature&, Common::StringView, CryptoNote::ISerializer&) [clone .constprop.191]': :(.text+0x1366): undefined reference to Common::write(Common::IOutputStream&, void const*, unsigned long)' :(.text+0x1376): undefined reference toCommon::write(Common::IOutputStream&, void const*, unsigned long)' collect2: error: ld returned 1 exit status src/CMakeFiles/ConnectivityTool.dir/build.make:113: recipe for target 'src/connectivity_tool' failed make[3]: *** [src/connectivity_tool] Error 1 make[3]: Leaving directory '/home/veda/vedacoin/build/release' CMakeFiles/Makefile2:955: recipe for target 'src/CMakeFiles/ConnectivityTool.dir/all' failed make[2]: *** [src/CMakeFiles/ConnectivityTool.dir/all] Error 2 make[2]: Leaving directory '/home/veda/vedacoin/build/release' Makefile:94: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/veda/vedacoin/build/release' Makefile:20: recipe for target 'build-release' failed make: *** [build-release] Error 2 β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub , or mute the thread .
jainvikram commented 6 years ago

Not Working... Still Same errors :(

SoraKohaku commented 6 years ago

apt update && apt upgrade and try used my repo

On Jan 7, 2018 5:15 PM, "jainvikram" notifications@github.com wrote:

Not Working... Still Same errors :(

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/9#issuecomment-355806975, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tfLgQH-h5KC9ecF2dFHj1ACCyqgHks5tIH04gaJpZM4GK5X5 .

jainvikram commented 6 years ago

should I make changes in your repo? Trying to make your repo...

SoraKohaku commented 6 years ago

yes you can update on beta ;)[that constume with ico and pos]

On Jan 7, 2018 5:23 PM, "jainvikram" notifications@github.com wrote:

should I make changes in your repo?

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/9#issuecomment-355807345, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tcXlEo62JbOKit61Zo4Ab-TN3GwPks5tIH8NgaJpZM4GK5X5 .

jainvikram commented 6 years ago

Hi worked on my machine now I have problem in configuring seed server --Configuring incomplete, errors occured!

Is there someway I can contact you by chat?

jainvikram commented 6 years ago

Wallet Error:

Configuration error : Both container-file and container-password parameters are required

jainvikram commented 6 years ago

/root/sikka/external/miniupnpc/upnpc.c: In function β€˜main’: /root/sikka/external/miniupnpc/upnpc.c:130:23: error: β€˜%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 6 [-Werror=format-truncation=] snprintf(index, 6, "%d", i); ^~ /root/sikka/external/miniupnpc/upnpc.c:130:22: note: directive argument in the range [0, 2147483647] snprintf(index, 6, "%d", i); ^~~~ In file included from /usr/include/stdio.h:862:0, from /root/sikka/external/miniupnpc/upnpc.c:8: /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: β€˜builtin___snprintf_chk’ output between 2 and 11 bytes into a destination of size 6 return builtin_snprintf_chk (s, n, USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~ bos (s), fmt, va_arg_pack ());



On Sun, Jan 7, 2018 at 4:39 PM, Founder Nur1Labs <notifications@github.com>
wrote:

> yes you can update on beta ;)[that constume with ico and pos]
>
> On Jan 7, 2018 5:23 PM, "jainvikram" <notifications@github.com> wrote:
>
> > should I make changes in your repo?
> >
> > β€”
> > You are receiving this because you commented.
> > Reply to this email directly, view it on GitHub
> > <https://github.com/cryptonotefoundation/cryptonote/issues/9#
> issuecomment-355807345>,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-auth/
> AK51tcXlEo62JbOKit61Zo4Ab-TN3GwPks5tIH8NgaJpZM4GK5X5>
>
> > .
> >
>
> β€”
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/cryptonotefoundation/cryptonote/issues/9#issuecomment-355814808>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AhCc3Z5NhXkg9isGek4ygqL49f1LzFr9ks5tIKXtgaJpZM4GK5X5>
> .
>

-- 
*Regards,*
*Vikramaditya Jain*
*09617722222*
jainvikram commented 6 years ago

It's compiling on my machine but not on seed node server :( :frustrated:

Update : Compiled on seed server but unable to connect seed :(

SoraKohaku commented 6 years ago

need generate coinbase again

On Jan 8, 2018 1:47 AM, "jainvikram" notifications@github.com wrote:

It's compiling on my machine but not on seed node server :( :frustrated:

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/9#issuecomment-355835623, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tY4fj5HkPi8JMI_VmULfnT83DVH7ks5tIPU3gaJpZM4GK5X5 .

jainvikram commented 6 years ago

Did that now getting genisis mismatch error. :(

SoraKohaku commented 6 years ago

remove block chain and make again after that print genesis then copy and make again. since every pc different genesis.[seed]

On Jan 9, 2018 6:04 AM, "jainvikram" notifications@github.com wrote:

Did that now getting genisis mismatch error. :(

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/9#issuecomment-356095832, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tSJjESfv86rABJ6g_TAcY3RXUS_Bks5tIoLYgaJpZM4GK5X5 .

jainvikram commented 6 years ago

Do I have to print genesis on server separately. ?

SoraKohaku commented 6 years ago

every server need rebuild and print genesis as that every different machine. yes~

On Jan 9, 2018 3:58 PM, "jainvikram" notifications@github.com wrote:

Do I have to print genesis on server separately. ?

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/9#issuecomment-356197045, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51taGQpe0cSoS_kTcpStLalXjyqjHEks5tIw4VgaJpZM4GK5X5 .

jainvikram commented 6 years ago

How will I edit repo on seednode servers ?

SoraKohaku commented 6 years ago

you must try make~

On Jan 9, 2018 4:01 PM, "jainvikram" notifications@github.com wrote:

How will I edit repo on seednode servers ?

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/9#issuecomment-356197450, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tWCI_oP90Oqa0cPPZqTgy0cc1tVIks5tIw6wgaJpZM4GK5X5 .

rainmanp7 commented 6 years ago

I don't even include the connectivity tool at all. It's a pain and waste of time. I do have corrected version ,bit honestly ,it has nothing to do with any of anything. It's a solo test program that is not needed.

SoraKohaku commented 6 years ago

connectivity_tool for mobile right?do we no need it?

On Feb 1, 2018 3:03 PM, "PHFirecoin" notifications@github.com wrote:

I don't even include the connectivity tool at all. It's a pain and waste of time. I do have corrected version ,bit honestly ,it has nothing to do with any of anything. It's a solo test program that is not needed.

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/9#issuecomment-362167767, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tajp2GKYiPZj0shlf83jxMrOgYixks5tQVPLgaJpZM4GK5X5 .

rainmanp7 commented 6 years ago

I don't see anything connected to connectivity tool at all. Clion and many other ides complain but all are telling me there is no connection with this thing. Unless u connect it. A long time ago it was used as a xml type referance , but not anymore. I just delete the folder... U then clear the cmake associated crap calling it. There is no code in the entire thing that references it or even calls it ,at all. Same with that test crap... It's put there to cause problems on compile. It used to be proof ,but now it's put there for the plain disturbance of code failure on compile. People don't always want to make it easy for you. Why would they right?

rainmanp7 commented 6 years ago

Look at my repo.. those folders are all you need if they are called and have significant reference. That connectivity tool was made so that if your on a vps you could run test connection info

rainmanp7 commented 6 years ago

I will make a copy for reference of this crypto note stuff and apply fixes you guys did and myself

SoraKohaku commented 6 years ago

i can removed it~

SoraKohaku commented 6 years ago

i think need clean up now. ok thank for information. Geez why that useless connectivity_tool~

On Feb 1, 2018 4:41 PM, "PHFirecoin" notifications@github.com wrote:

I will make a copy for referance of tgis crypto note stuff and apply fixes you guys did and myself

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/9#issuecomment-362183747, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tYJxJdiY-QXLQISTHIWv2rI6wmFXks5tQWrCgaJpZM4GK5X5 .