Problems with build.sh

72 views
Skip to first unread message

Alex Sanxez

unread,
Mar 14, 2016, 6:21:25 AM3/14/16
to RouteFlow
Hello to everyone. I'm having problems to set-up RouteFlow with the command "./build.sh -ci ryu". I'm using the files from the Vandervecken branch of the project. What Linux version gives more stability for the last Vandervecken files?

I tried it on 12.04 and 14.04, and the issues were different. In both versions the problem is related to mongo files.

On 12.04 the error message warns that the mongo/client/dbclient.h file is present but cannot be compiled, and then says:

/usr/include/mongo/client/../pch.h:116:15: error: expected unqualified-id before string constant

That line of code is the declaration of the VERSION constant. I found that the problem can be solved changing the name to PDFILE_VERSION, but then the error is:

FlowTable.cc: In the function ‘void FlowTable::initNLListener()’:FlowTable.cc:144:68: error: ‘nl_cache_mngr_add_cache’ was not declared in this scope


On the 14.04, after adding the  -lpthread flag in the RouteFlow/rfclient/MakeFile.am, running the build script, returns:

  CXXLD    rfclient
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::~Socket()':
(.text+0x1086): undefined reference to `SSL_shutdown'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::~Socket()':
(.text+0x1092): rundefined reference to `SSL_free'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::_handleSendError(int, char const*)':
(.text+0x2276): undefined reference to `SSL_get_error' 
...
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::SSLManager(mongo::SSLParams const&)':
(.text+0x1cf5): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::cleanupThreadLocals()':
(.text+0x2c3): undefined reference to `ERR_remove_state'
collect2: error: ld returned 1 exit status
make[1]: *** [rfclient] Error 1



I don't know what I'm doing wrong. If somebody can help me I will appreciate it a lot! ;)


Thanks!


Alex
Message has been deleted

Trung Huu Truong

unread,
Mar 18, 2016, 4:42:00 AM3/18/16
to RouteFlow
Hi Alex,

The ssl library is missing. Install it with apt-get install libssl-dev
And add -lssl -lcryptoddo makefile.
It should resolve the problem.

Cheers,
Trung

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Whatchen

unread,
Nov 17, 2016, 9:22:15 AM11/17/16
to RouteFlow
same problem. didn't solve...never successfully install a later version of Routeflow using build.sh

Reply all
Reply to author
Forward
0 new messages