Robotics StackExchange | Archived questions

Guys please help,I am a beginner and I cannot install the mongodb_log package for logging data to mongodb database. Here is the error.

[rosbuild] Building package mongodb_log Failed to invoke /opt/ros/indigo/bin/rospack deps-manifests mongodb_log 
[rospack] Error: package 'mongodb_log' depends on non-existent package 'roslua' and rosdep claims that it is not a system dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update'
CMake Error at /opt/ros/indigo/share/ros/core/rosbuild/public.cmake:129 (message):       Failed to invoke rospack to get compile flags for package 'mongodb_log'.
Look above for errors from rospack itself.  Aborting.
Please fix the   broken dependency!
Call Stack (most recent call first):   /opt/ros/indigo/share/ros/core/rosbuild/public.cmake:207 (rosbuild_invoke_rospack)
CMakeLists.txt:12 (rosbuild_init)   -- Configuring incomplete, errors occurred! See also "/home/nishant/catkin_ws/src/mongodb_log/build/CMakeFiles/CMakeOutput.log".
make: *** [all] Error 1

EDIT

Installing roslua fixed the previous issue but i am plagued by numerous new ones. Here is the error again on make :

Linking CXX executable ../bin/mongodb_log_cimg
/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): undefined 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(sock.o): In function `mongo::Socket::_handleSendError(int, char const*)':
(.text+0x229d): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::_handleSendError(int, char const*)':
(.text+0x22a7): undefined reference to `ERR_error_string'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::_handleRecvError(int, int, int*)':
(.text+0x2b7c): undefined reference to `SSL_get_error'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::_handleRecvError(int, int, int*)':
(.text+0x2ba3): undefined reference to `ERR_get_error'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::_handleRecvError(int, int, int*)':
(.text+0x2bad): undefined reference to `ERR_error_string'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::_send(char const*, int)':
(.text+0x1180): undefined reference to `SSL_write'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(sock.o): In function `mongo::Socket::_recv(char*, int)':
(.text+0x11b0): undefined reference to `SSL_read'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_ssl_connect(ssl_st*)':
(.text+0x290): undefined reference to `SSL_connect'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_ssl_connect(ssl_st*)':
(.text+0x2a1): 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::_getSSLErrorMessage(int)':
(.text+0x300): undefined reference to `ERR_error_string_n'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupFIPS()':
(.text+0x353): undefined reference to `FIPS_mode_set'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupFIPS()':
(.text+0x3bd): 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::_setupPEM(std::string const&, std::string const&)':
(.text+0x454): undefined reference to `SSL_CTX_use_certificate_chain_file'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupPEM(std::string const&, std::string const&)':
(.text+0x4aa): 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::_setupPEM(std::string const&, std::string const&)':
(.text+0x507): undefined reference to `SSL_CTX_set_default_passwd_cb_userdata'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupPEM(std::string const&, std::string const&)':
(.text+0x516): undefined reference to `SSL_CTX_set_default_passwd_cb'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupPEM(std::string const&, std::string const&)':
(.text+0x527): undefined reference to `SSL_CTX_use_PrivateKey_file'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupPEM(std::string const&, std::string const&)':
(.text+0x57d): 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::_setupPEM(std::string const&, std::string const&)':
(.text+0x5b4): undefined reference to `SSL_CTX_check_private_key'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupPEM(std::string const&, std::string const&)':
(.text+0x5ec): 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::_setupCA(std::string const&)':
(.text+0x6a9): undefined reference to `SSL_CTX_load_verify_locations'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupCA(std::string const&)':
(.text+0x701): 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::_setupCA(std::string const&)':
(.text+0x760): undefined reference to `SSL_CTX_set_verify'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupCRL(std::string const&)':
(.text+0x7e4): undefined reference to `SSL_CTX_get_cert_store'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupCRL(std::string const&)':
(.text+0x7fd): undefined reference to `X509_STORE_set_flags'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupCRL(std::string const&)':
(.text+0x802): undefined reference to `X509_LOOKUP_file'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupCRL(std::string const&)':
(.text+0x80d): undefined reference to `X509_STORE_add_lookup'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupCRL(std::string const&)':
(.text+0x827): undefined reference to `X509_load_crl_file'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_setupCRL(std::string const&)':
(.text+0x87e): 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::_secure(int)':
(.text+0x9e9): undefined reference to `SSL_new'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_secure(int)':
(.text+0xa00): undefined reference to `SSL_set_fd'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_secure(int)':
(.text+0xa99): 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::_secure(int)':
(.text+0xadb): 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::_handleSSLError(int)':
(.text+0xdad): 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::_initializeSSL(mongo::SSLParams const&)':
(.text+0x1201): undefined reference to `SSL_library_init'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_initializeSSL(mongo::SSLParams const&)':
(.text+0x1206): undefined reference to `SSL_load_error_strings'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_initializeSSL(mongo::SSLParams const&)':
(.text+0x120b): undefined reference to `ERR_load_crypto_strings'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::_initializeSSL(mongo::SSLParams const&)':
(.text+0x1216): undefined reference to `OPENSSL_add_all_algorithms_noconf'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::connect(int)':
(.text+0x1394): undefined reference to `SSL_free'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::connect(int)':
(.text+0x13bc): 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::accept(int)':
(.text+0x1404): undefined reference to `SSL_free'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::accept(int)':
(.text+0x141a): undefined reference to `SSL_accept'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::accept(int)':
(.text+0x1429): 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::validatePeerCertificate(ssl_st const*)':
(.text+0x1487): undefined reference to `SSL_get_peer_certificate'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::validatePeerCertificate(ssl_st const*)':
(.text+0x1493): undefined reference to `X509_free'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::validatePeerCertificate(ssl_st const*)':
(.text+0x14aa): undefined reference to `SSL_get_verify_result'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::validatePeerCertificate(ssl_st const*)':
(.text+0x1542): undefined reference to `X509_verify_cert_error_string'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::SSLManager(mongo::SSLParams const&)':
(.text+0x17ca): undefined reference to `SSLv23_method'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::SSLManager(mongo::SSLParams const&)':
(.text+0x17d2): undefined reference to `SSL_CTX_new'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::SSLManager(mongo::SSLParams const&)':
(.text+0x17f2): undefined reference to `SSL_CTX_ctrl'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::SSLManager(mongo::SSLParams const&)':
(.text+0x1806): undefined reference to `SSL_CTX_ctrl'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::SSLManager(mongo::SSLParams const&)':
(.text+0x1817): undefined reference to `SSL_CTX_ctrl'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::SSLManager(mongo::SSLParams const&)':
(.text+0x1823): undefined reference to `CRYPTO_set_id_callback'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::SSLManager(mongo::SSLParams const&)':
(.text+0x182f): undefined reference to `CRYPTO_set_locking_callback'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(ssl_manager.o): In function `mongo::SSLManager::SSLManager(mongo::SSLParams const&)':
(.text+0x185a): undefined reference to `CRYPTO_num_locks'
/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[3]: *** [../bin/mongodb_log_cimg] Error 1
make[3]: Leaving directory `/home/nishant/catkin_ws/src/mongodb_log/build'
make[2]: *** [CMakeFiles/mongodb_log_cimg.dir/all] Error 2
make[2]: Leaving directory `/home/nishant/catkin_ws/src/mongodb_log/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/nishant/catkin_ws/src/mongodb_log/build'
make: *** [all] Error 2

Asked by nishthapa on 2016-03-10 05:14:52 UTC

Comments

What are the commands you used to get to this error?

Asked by Airuno2L on 2016-03-10 06:20:20 UTC

I followed the basic command from the mongodb_log package page : 1) git clone https://github.com/timn/ros-mongodb_log.git mongodb_log 2) cd mongodb_log 3) make

Asked by nishthapa on 2016-03-10 06:28:26 UTC

Please format your question properly. In it's current state this is illegible.

Use the Preformatted text button (the one with 101010 on it) to format console copy/pastes.

Asked by gvdhoorn on 2016-03-10 08:01:04 UTC

Did you try running 'rosdep update'? Or try installing roslua?

Asked by Airuno2L on 2016-03-10 12:15:38 UTC

Slow down guys, i am a mere newbie. I followed all the instructions for roslua but could not install roslua itself. How do i do it ? (I installed all the required packages for roslua but not roslua itself).

Asked by nishthapa on 2016-03-11 06:00:01 UTC

Never mind roslua. Thank you Airuno2L. I was finally able to install roslua and doing so fixed this issue but a new one has come up. I have shown it in the description above.

Asked by nishthapa on 2016-03-11 06:08:58 UTC

Again: please format your question properly. For long copy/pastes, select the text, then click the Preformatted text button (or press ctrl+k).

Asked by gvdhoorn on 2016-03-11 07:29:20 UTC

Just a guess: Are you linking to the required libraries? Without knowing the specifics of your package, I would suggest that you check whether you have all "run_depends" tags in package.xml set correctly (not only build_depends).

Asked by Felix Endres on 2016-03-11 11:33:10 UTC

The package somehow seems to have been built but when i execute rosrun mongodb_log mongodb_log -a, it just says this no module named rostime.

Asked by nishthapa on 2016-03-14 02:42:33 UTC

Answers