Giter Site home page Giter Site logo

ooni0921 / maidsafe-dht Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.55 MB

Automatically exported from code.google.com/p/maidsafe-dht

CMake 2.85% Shell 0.04% Batchfile 0.08% HTML 0.11% C++ 91.28% Makefile 0.23% Protocol Buffer 0.15% C 3.38% Assembly 1.74% Groff 0.06% Python 0.10%

maidsafe-dht's People

maidsafe-dht's Issues

make error in cryptotest.cc

What steps will reproduce the problem ?

Simply cmake und make install

What is the expected output? What do you see instead?

I expected to run make install correctly. But it doenst.
But i see this error.

[ 81%] Building CXX object 
CMakeFiles/TESTbase.dir/src/maidsafe/tests/base/testcrypto.cc.o
/usr/bin/c++   -DSTATICLIB -DHAVE_GLOG -DMAIDSAFE_LINUX -isystem /usr/include 
-isystem 
/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src/maidsafe/protobuf/ 
-isystem 
/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src/maidsafe/tests/rpcprotoco
l/ -W -Wall -Wextra -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -fPIC -pedantic 
-pedantic-errors -std=c++0x -Weffc++ -O3 -DNDEBUG -O2 
-I/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src -isystem 
/usr/include/boost-1_44 -isystem /usr/local/include   -o 
CMakeFiles/TESTbase.dir/src/maidsafe/tests/base/testcrypto.cc.o -c 
/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src/maidsafe/tests/base/testc
rypto.cc
/usr/include/gtest/gtest.h: In function ‘testing::AssertionResult 
crypto::test::ValidateOutputFile(const boost::filesystem2::path&, const 
std::string&)’:
/usr/include/gtest/gtest.h:226: error: too few arguments to function 
‘testing::AssertionResult testing::AssertionFailure(const 
testing::Message&)’
/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src/maidsafe/tests/base/testc
rypto.cc:262: error: at this point in file
/usr/include/gtest/gtest.h:226: error: too few arguments to function 
‘testing::AssertionResult testing::AssertionFailure(const 
testing::Message&)’
/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src/maidsafe/tests/base/testc
rypto.cc:276: error: at this point in file
/usr/include/gtest/gtest.h:226: error: too few arguments to function 
‘testing::AssertionResult testing::AssertionFailure(const 
testing::Message&)’
/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src/maidsafe/tests/base/testc
rypto.cc:280: error: at this point in file
/usr/include/gtest/gtest.h: In function ‘testing::AssertionResult 
crypto::test::FileContentsEqual(const boost::filesystem2::path&, const 
boost::filesystem2::path&)’:
/usr/include/gtest/gtest.h:226: error: too few arguments to function 
‘testing::AssertionResult testing::AssertionFailure(const 
testing::Message&)’
/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src/maidsafe/tests/base/testc
rypto.cc:528: error: at this point in file
/usr/include/gtest/gtest.h:226: error: too few arguments to function 
‘testing::AssertionResult testing::AssertionFailure(const 
testing::Message&)’
/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src/maidsafe/tests/base/testc
rypto.cc:530: error: at this point in file
/usr/include/gtest/gtest.h:226: error: too few arguments to function 
‘testing::AssertionResult testing::AssertionFailure(const 
testing::Message&)’
/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src/maidsafe/tests/base/testc
rypto.cc:532: error: at this point in file
/usr/include/gtest/gtest.h:226: error: too few arguments to function 
‘testing::AssertionResult testing::AssertionFailure(const 
testing::Message&)’
/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src/maidsafe/tests/base/testc
rypto.cc:551: error: at this point in file
/usr/include/gtest/gtest.h:226: error: too few arguments to function 
‘testing::AssertionResult testing::AssertionFailure(const 
testing::Message&)’
/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/src/maidsafe/tests/base/testc
rypto.cc:555: error: at this point in file
make[2]: *** [CMakeFiles/TESTbase.dir/src/maidsafe/tests/base/testcrypto.cc.o] 
Fehler 1
make[2]: Verlasse Verzeichnis 
'/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/build/Linux/Release'
make[1]: *** [CMakeFiles/TESTbase.dir/all] Fehler 2
make[1]: Verlasse Verzeichnis 
'/home/snakebyte/Desktop/Uni/maidsafe-dht-read-only/build/Linux/Release'
make: *** [all] Fehler 2


What version of the product are you using? On what operating system?

latest svn read-only version. Using Ubuntu 32 Bit, newest version


Please provide any additional information below.



Original issue reported on code.google.com by [email protected] on 19 Oct 2010 at 8:20

can't join network

What steps will reproduce the problem?
1. using as reference the kaddemo wiki, create the first node(bootstrap 
node)
2. add a normal node to the network using random port. After connecting 
close the node
3. add again a normal node with random port like in step 2. This node can't 
connect the network

What is the expected output? What do you see instead?

this is the output for the node can't connect to the network

1035 --- Sending rpc Bootstrap to 81.202.191.212:5100 connection_id = 
652471297
-- rpc_id = 438081405
(1035) message for id 652471297 arrived
1035 --- Response arrived for KademliaService::Bootstrap -- 438081405 -- 
RTT: 88.217 ms, duration: 5609 ms
(1035) Accepted connections: 0. Msgs Sent: 1. Msgs Recv 1


What version of the product are you using? On what operating system?
using revision 416 
windows xp sp2


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 19 May 2010 at 5:17

CMakeLists.txt: error finding protobuf

Platform: Ubuntu 9.10 (Karmic)

maidsafe-dht: revision 354

Problem:

CMake failed to generate build files for the project because it reports that 
it failed to find libprotobuf runtime library (CMakeLists.txt lines 314--
320).

Suggestion:

I notice that you are making use of custom FIND_PATH and FIND_LIBRARY 
macros and specifically checking for libprotobuf.a (CMakeLists.txt line 
310), while I only have shared libraries installed via the standard Debian 
binary package. CMake is successful, and so is the entire project build 
process, if I substitute libprotobuf.a with libprotobuf.so in CMakeLists.txt. 
So I do not think that you intended to only use the static version of the 
library.

CMake version 2.8 provides the FIND_PACKAGE macro for locating and 
initializing the paths and files for Protobuf. Any reason you are not making 
use of this?


Keep up the good work!

Thanks!
Amit

Original issue reported on code.google.com by [email protected] on 17 Feb 2010 at 8:05

  • Merged into: #8

Functional knode test: multiple restarts

The test has been extended to be able to shut down and restart the randomly
selected set of nodes multiple times, a number currently chosen randomly
from [1,5] for each node. The schedule for the next restart cycle of a node
is generated once it joined.

Original issue reported on code.google.com by [email protected] on 10 Jun 2009 at 1:13

Attachments:

Wrong include & Missing file(?)

What steps will reproduce the problem?
1. Build branch signals, rev 653 on linux



What is the expected output? What do you see instead?
Expected successful compilation. 
Compilation fails.

maidsafe/src/maidsafe/transport/service.cc:44:43: schwerwiegender Fehler: 
maidsafe/protobuf/kademlia.pb.h: Datei oder Verzeichnis nicht gefunden
(can't find file maidsafe/protobuf/kademlia.pb.h)

This can be fixed by changing the include line to 
#include "maidsafe/kademlia/kademlia.pb.h"

After this, another error shows up:

/home/marenz/projekte/maidsafe/src/maidsafe/transport/service.cc:45:52: 
schwerwiegender Fehler: maidsafe/protobuf/transport_message.pb.h: Datei oder 
Verzeichnis nicht gefunden
(can't find file maidsafe/protobuf/transport_message.pb.h)

I suspect this file is missing in the repo and needs to be checked in.

What version of the product are you using? On what operating system?
branch signals, rev 653 (current latest) Arch Linux 32 bit.


Original issue reported on code.google.com by [email protected] on 27 Dec 2010 at 3:49

Can't use shared objects from protobuf

What steps will reproduce the problem?
1. Run cmake
2.
3.

What is the expected output? What do you see instead?
Expected: finding the protobuf libs.
Instead: Not finding. 

The problem is that my distribution only provides the .so libraries which 
apparently aren't being found by cmake. Maybe maidsafe really needs the .a's in 
which case this issue can be closed. If not, it would be nice if you could use 
either .so or .a 

What version of the product are you using? On what operating system?
ArchLinux, Svn 609, 64bit

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 12 Dec 2010 at 1:18

File misspelled

hole_puching_messages.proto is misspelled "puching" should be "punching"

Original issue reported on code.google.com by [email protected] on 17 Nov 2010 at 5:07

Cant connect with second node to first node

What steps will reproduce the problem?
1.Doing exactly what your Guide says.
(creating first node, creating second..and try to connect).

What is the expected output? What do you see instead?
Connected nodes...but i got this error :

Errormessage: (5001) UDT connect to 192.168.1.115:5000 -- Connection setup 
failure: connection timed out. Failed to join node to the network.

What version of the product are you using? On what operating system?

Using latest kaddemo on site. Ubuntu 32-bit.


Please provide any additional information below.

I cant connect, i tried many options but i wont work.
Here is a problem i got with install of the kaddemoapp.
After installation finished i got an error message, telling me the following.


There was an error registering the RPM file: rpm: please use alien to install 
rpm packages on Debian, of you are really sure use --force-debian switch. See 
README.Debian for more details. 


Original issue reported on code.google.com by [email protected] on 20 Oct 2010 at 2:12

Build testknodefunctions.cc fails.

What steps will reproduce the problem?
1. Just build all from HEAD svn.

What version of the product are you using? On what operating system?
svn r567
Gentoo Linux AMD64
GCC 4.4.5

Please provide any additional information below.
Lost knodeimpl header to resolve pre-referenced KNodeImpl class in knode-api.h;

I fixed this with adding 
#include "maidsafe/kademlia/knodeimpl.h" 
before 
#include "maidsafe/kademlia/knode-api.h"
in testknodefunctions.cc file. Please commit change to upstream. Thank you :)

Original issue reported on code.google.com by [email protected] on 3 Nov 2010 at 12:55

GetlocalIP/port

What steps will reproduce the problem?
1. using base function (boost::asio)
2.
3.
This base function get_local_address shoudl be replaced and instead use the
UDT::getsockname() method instead. This is pretty critical as at the moment
the first IP address seen is chosen and very likely to be wrong.

Original issue reported on code.google.com by [email protected] on 23 May 2009 at 10:27

Tests not independent

What steps will reproduce the problem?
1. Run tests in multiple instances
2.
3.

What is the expected output? What do you see instead?
Shoudl all run independently but instead clash

Please use labels and text to provide additional information.
 This should be fixed by starting nodes and acquiring the socket/port they
start on. Any data transfers shoudl be created randomly and read at both
send and receive rather than sending known data or files. 

Original issue reported on code.google.com by [email protected] on 23 May 2009 at 10:17

mingw build segment fault in tests

What steps will reproduce the problem?
1. Build all in MinGW
2. Run make test

What is the expected output? What do you see instead?
Network related tests got a segment fault.

What version of the product are you using? On what operating system?
15 June version.
Boost 1.41.0/1.43.0
protobuff 2.3.0
gtest  1.4.0/1.5.0
gcc version 4.4.1 (TDM-2 mingw32)

Please provide any additional information below.

MSVC(VC2008) build seems work with no problem.
The  problem may be caused by UDT since I've experience similar issue when I 
use another UDT build(4.6a) in MinGW and there is no problem with MSVC build 
with my code.

Original issue reported on code.google.com by [email protected] on 17 Jun 2010 at 2:01

Check message regularity

What steps will reproduce the problem?
1. Listening socket should check it receives a message every second.

Steps shoudl be
Recived a message -> yes -> reset counter
NO -> Ping rendezvous node -> yes -> reset counter (ping reply must be sent
back independant of sending channel i.e. ping reply is independent and sent
to listening socket not the sending socket)
NO -> Rebootstrap completely -> yes -> reset counter
NO -> inifinate loop try all cache nodes plus set on_line member function
to false

Original issue reported on code.google.com by [email protected] on 23 May 2009 at 10:31

Not Really a Problem but...

...what i have to do to add maidsafe library in a cmake file ?

is there any "FindMaidsafe.cmake" file to use FIND_PACKAGE (maidsafe REQUIRED) ?

or what i have to do, to use maidsafedht library in a cmake file ?

greeting
Patrick 

Original issue reported on code.google.com by [email protected] on 8 Feb 2011 at 10:41

protobuf derived files in repository

Platform: using Ubuntu 9.10 (but following issue applies to any platform)

maidsafe-dht: revision 354

Issue:

The .pb.cc and .pb.h files derived from .proto files (in src/protobuf) using 
protoc 
are checked into the repository. I have version 2.0.3 of  protobuf installed 
(from 
the latest package) and so the build process fails because of inconsistency 
with 
the checked in version of derived files (I assume version 2.1). However, if I 
delete 
all the protobuf derived files and regenerate them using my installed protoc 
compiler then the build process completes successfully and everything is good.

Suggestion:

Is there any reason why these derived files have been checked in? Shouldn't 
they 
be generated as part of the build process? 

Of course I use version 2.0.3, while you recommend 2.1. But it builds and works 
fine for me nonetheless. Given that they are derived files I would expect them 
to 
be part of the build process.

Regards
Amit

Original issue reported on code.google.com by [email protected] on 18 Feb 2010 at 6:26

Invalid CUDT instance used (crash)

What steps will reproduce the problem?
1. Set a breakpoint (to force the problem) in the KnodeImpl::node_id()
function (knodeimpl.h line 283, SVN revision 389)
2. Start Kaddemo as a client to connect to a vault (as specified in the Wiki)
3. Wait few seconds (around 10)
4. Continue the application execution
5. Sometimes (around a 10% of the times here) will crash

What is the expected output? What do you see instead?

Should be stable, I see that the app crashes

What version of the product are you using? On what operating system?

OS: Windows XP
Version: SVN revision 389

Please provide any additional information below.

Seems that into the CRcvQueue::init() function, a CUDT instance is invalid
(I see and Access violation reading location 0x8913005f and the CUDT*
pointer is 0x89130002). 

Some screenshots are attached. You can see the active thread/thread list,
callstack, the CUDT object contents and the line on the sourcecode where it
crashes.

Original issue reported on code.google.com by [email protected] on 26 Apr 2010 at 7:00

Attachments:

Dones not compile on windows

What steps will reproduce the problem?
1. checkout 
2. build
3. compile any udt linked library 

What is the expected output? What do you see instead?

Undefined references in lib

Please use labels and text to provide additional information.

Original issue reported on code.google.com by [email protected] on 10 May 2009 at 1:57

Missing #include in testutils.cc?

What steps will reproduce the problem?
1. Follow DevBuild configuration instructions from Wiki
2. make either linux/Debug or linux/Release

What is the expected output? What do you see instead?

make fails building target TESTbase at file testutils.cc with error:

testutils.cc:198: error: ‘scoped_array’ is not a member of ‘boost’

See the attached file for a more detailed listing of the compile errors.

What version of the product are you using? On what operating system?

svn checkout of trunk (per DevBuild instructions) at repository version 658.
Compiling on Ubuntu 10.4 LTS

Please provide any additional information below.

The addition of the line

#include <boost/scoped_array.hpp>

to testutils.cc fixes the problem and the entire make process then completes 
successfully.

Original issue reported on code.google.com by [email protected] on 14 Jan 2011 at 11:19

Attachments:

Python libs

Hello all.

I have downloaded maidsafe-dht sources and try to compile it.

1. cd src/build/Linux
2. cmake ../..

I regularry have problem. Could not find PythonLibs (missing 
PYTHON_LIBRARIES). I try explicitly define path to python libraries - 
cmake ../../ -ВPYTHON_LIBRARIES=/lib/python2.5   , but problem remain 
unresolved.

What wrong???

I can't build your product. 

Very thanks.

Original issue reported on code.google.com by [email protected] on 10 Feb 2010 at 11:05

Invalid Integer::ConvertToLong() usage?

What steps will reproduce the problem?

1. Start the Kaddemo on Win32 (binary built with Microsoft Visual Studio)
with the parameters like specified in the Kaddemo wiki page (for example
./kaddemostatic -p 5000 --externalip 192.168.1.115 --externalport 5000
--noconsole --nodeinfopath .)
2. An bad condition in an assert is found and the debugger breaks


What version of the product are you using? On what operating system?

OS: Windows XP
Sofware version: The sourcecode of the revision 389


Please provide any additional information below.

On the random_32bit_integer() and random_32bit_uinteger(), seems that the
usage of the rand_num.AbsoluteValue().ConvertToLong() is not correct (it's
into a (!rand_num.IsConvertableToLong()) condition, and seems that the
AbsoluteValue() integer returned is also not convertable to long.

If I ignore the the assertion, the application seems to work fine. Anyway,
it should be fixed.

Note: A screenshot of the callstack has been attached

Original issue reported on code.google.com by [email protected] on 26 Apr 2010 at 5:05

Attachments:

Re-install Fails

What steps will reproduce the problem?
1. Install on Windows 7
2. Uninstall
3. Re-install

What is the expected output? What do you see instead?

Installer gets to kaddemostatic.exe and seems to fail. It makes the error
sound and doesn't go any further. No messages on the screen or in the event
log. Just have to hit cancel to abort the install. The directory only ends
up with Chkupdate.bat and update.ini.

Pretty sure the install worked the first time, but it didn't run it because
I hadn't installed maidsafe-dht yet.

What version of the product are you using? On what operating system?

0.1.0 and Windows 7

Please provide any additional information below.

After the initial install and uninstall, I installed maidsafe-dht. Am
running the installer as an administrator. Can't think of any reason why it
would fail.

Original issue reported on code.google.com by [email protected] on 26 Apr 2010 at 8:02

Downlist modification is vulnerable to DOS attacks

Downlist modification may seem like a good idea: it makes sense to notify other 
peers if certain contacts have very high RTTs or are unavailable. 
Unfortunately, it creates a major security flaw.

Any peer can send FIND_NODE RPCs to other members of the DHT, and malicious 
ones may decide to include high-throughput peers in their 'downlists'. This 
enables a small amount of malicious peers to wipe out large swaths of the 
keyspace.

The only effective defense is validation: when one peer receives a downlist, 
they should ping the indicted contacts and make sure they have high RTTs before 
expunging them. It's worth keeping in mind that this mimics the default 
Kademlia behavior, though.

/$0.02

Original issue reported on code.google.com by [email protected] on 1 Jan 2011 at 10:39

Compiling in Linux

What steps will reproduce the problem?
1. Checked the source from SVN:
r483 | [email protected] | 2010-07-13 23:44:54 +0100 (Ter, 13 Jul 2010) | 
2 lines
2.   cmake ../../.. -G"CodeBlocks - Unix Makefiles"
3. make package

What is the expected output? What do you see instead?
Compilation error:
/usr/bin/c++   -DSTATICLIB -DMAIDSAFE_LINUX -O3 -DNDEBUG 
-I/home/prrt/workspace/maidsafe-dht-read-only/src   -w -fPIC -DNDEBUG  
-march=native -mtune=native -pipe -o 
CMakeFiles/maidsafe_dht_static.dir/src/maidsafe/base/utils.cc.o -c 
/home/prrt/workspace/maidsafe-dht-read-only/src/maidsafe/base/utils.cc
/home/prrt/workspace/maidsafe-dht-read-only/src/maidsafe/base/utils.cc: In 
function ‘std::string base::RandomString(const size_t&)’:
/home/prrt/workspace/maidsafe-dht-read-only/src/maidsafe/base/utils.cc:83: 
error: no matching function for call to ‘min(long unsigned int, unsigned 
int)’


What version of the product are you using? On what operating system?
Linux Caixa Magica 15

Please provide any additional information below.

Solved with attached patch.

Original issue reported on code.google.com by [email protected] on 25 Jul 2010 at 11:25

Attachments:

Win32 Test Projects Build

What steps will reproduce the problem?
1. Set up a fresh Windows environment with MSVC 8.0 (2005)
2. Follow instructions to create maidsafe-dht.sln
3. Build maidsafe-dht.sln

What is the expected output? What do you see instead?
Expect to have a clean build. 

The base project libraries seem to build:
 cryptopp_static
 udt_static
 maidsaft-dht_static
 benchmark_static
 kaddemo_static

but the 7 TEST projects all fail with linker errors like:

class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __cdecl std::operator+<char,struct
std::char_traits<char>,class std::allocator<char> >(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,char const *)"
(??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char
_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z)
already defined in gtestd.lib(gtest.obj)

All of the linker errors are the same type (LNK2005) and all complain that
a symbol already exists in gtest.lib. 

I was able to run extract_includes.bat and build the Experimental project
which successfully uploaded my results to your Dashboard (M55LKGXGC4). 

Let me know what else you need. My C++ project debugging is rusty.

Chris.

Original issue reported on code.google.com by [email protected] on 30 Apr 2010 at 9:59

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.