Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation errors for Nova #3

Open
ConfusedInAustin opened this issue Nov 5, 2015 · 3 comments
Open

Installation errors for Nova #3

ConfusedInAustin opened this issue Nov 5, 2015 · 3 comments

Comments

@ConfusedInAustin
Copy link

Hello. I have been trying to install Nova the last few days and have been plagued with errors. I have tried to install on Ubuntu Server 12.04 and Server 14.04 with the exact same errors. It fails when making Nova. I have attached a portion of the output below.


Building target: novacli
Invoking: GCC C++ Linker
g++ -L../../Nova_UI_Core/Debug -L../../NovaLibrary/Debug -o "novacli" ./src/NovaCLI.o -lNova_UI_Core -lboost_program_options -lNovaLibrary -lboost_system -lboost_filesystem -levent -levent_pthreads -lpcap -lann -lpthread -lcurl -lsqlite3 -lprotobuf -lz
../../Nova_UI_Core/Debug/libNova_UI_Core.so: undefined reference to boost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::copy_option, boost::system::error_code*)' collect2: error: ld returned 1 exit status make[2]: *** [novacli] Error 1 make[2]: Leaving directory/home/nova/nova-build/Nova/NovaCLI/Debug'
make[1]: *** [novacli-debug] Error 2
make[1]: *** Waiting for unfinished jobs....
Building file: ../src/ProtocolHandler.cpp
Invoking: GCC C++ Compiler
g++ -I../../NovaLibrary/src/ -O0 -g3 -Wall -c -fmessage-length=0 -pthread -std=c++0x -MMD -MP -MF"src/ProtocolHandler.d" -MT"src/ProtocolHandler.d" -o"src/ProtocolHandler.o" "../src/ProtocolHandler.cpp"
Finished building: ../src/Novad.cpp

Building file: ../src/Threads.cpp
Invoking: GCC C++ Compiler
g++ -I../../NovaLibrary/src/ -O0 -g3 -Wall -c -fmessage-length=0 -pthread -std=c++0x -MMD -MP -MF"src/Threads.d" -MT"src/Threads.d" -o"src/Threads.o" "../src/Threads.cpp"
Finished building: ../src/ProtocolHandler.cpp

Finished building: ../src/Threads.cpp

Building target: novad
Invoking: GCC C++ Linker
g++ -L../../NovaLibrary/Debug/ -pthread -o"novad" ./src/Control.o ./src/Main.o ./src/Novad.o ./src/ProtocolHandler.o ./src/Threads.o -lNovaLibrary -lboost_program_options -lboost_system -lboost_filesystem -levent -levent_pthreads -lpcap -lcurl -lann -lpthread -lsqlite3 -lprotobuf -lz
../../NovaLibrary/Debug//libNovaLibrary.a(Config.o): In function boost::filesystem::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::copy_option)': /usr/include/boost/filesystem/operations.hpp:381: undefined reference toboost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::copy_option, boost::system::error_code_)'
../../NovaLibrary/Debug//libNovaLibrary.a(NovaUtil.o): In function boost::filesystem::copy_file(boost::filesystem::path const&, boost::filesystem::path const&)': /usr/include/boost/filesystem/operations.hpp:384: undefined reference toboost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::copy_option, boost::system::error_code_)'
collect2: error: ld returned 1 exit status
make[2]: *** [novad] Error 1
make[2]: Leaving directory /home/nova/nova-build/Nova/Novad/Debug' make[1]: *** [novad-debug] Error 2 make[1]: Leaving directory/home/nova/nova-build/Nova'
make: *** [debug] Error 2
Error occurred during build process; terminating script!

@awaldow
Copy link
Contributor

awaldow commented Nov 5, 2015

Do you have the right version of boost installed? NOVA needs 1.48, anything
after breaks compatibility. If it's ld returning a non-zero error code
that's because the linker is unable to find something you're trying to link
to, which will fail the compilation because it can't find the definitions
for (in this case) copy_file method.

On Thu, Nov 5, 2015 at 10:40 AM, ConfusedInAustin [email protected]
wrote:

Hello. I have been trying to install Nova the last few days and have been
plagued with errors. I have tried to install on Ubuntu Server 12.04 and
Server 14.04 with the exact same errors. It fails when making Nova. I have

attached a portion of the output below.

Building target: novacli
Invoking: GCC C++ Linker
g++ -L../../Nova_UI_Core/Debug -L../../NovaLibrary/Debug -o "novacli"
./src/NovaCLI.o -lNova_UI_Core -lboost_program_options -lNovaLibrary
-lboost_system -lboost_filesystem -levent -levent_pthreads -lpcap -lann
-lpthread -lcurl -lsqlite3 -lprotobuf -lz
../../Nova_UI_Core/Debug/libNova_UI_Core.so: undefined reference to boost::filesystem::detail::copy_file(boost::filesystem::path
const&, boost::filesystem::path const&, boost::filesystem::copy_option,
boost::system::error_code_)'
collect2: error: ld returned 1 exit status
make[2]: *_* [novacli] Error 1
make[2]: Leaving directory/home/nova/nova-build/Nova/NovaCLI/Debug'
make[1]: *** [novacli-debug] Error 2
make[1]: *** Waiting for unfinished jobs....
Building file: ../src/ProtocolHandler.cpp
Invoking: GCC C++ Compiler
g++ -I../../NovaLibrary/src/ -O0 -g3 -Wall -c -fmessage-length=0 -pthread
-std=c++0x -MMD -MP -MF"src/ProtocolHandler.d" -MT"src/ProtocolHandler.d"
-o"src/ProtocolHandler.o" "../src/ProtocolHandler.cpp"
Finished building: ../src/Novad.cpp

Building file: ../src/Threads.cpp
Invoking: GCC C++ Compiler
g++ -I../../NovaLibrary/src/ -O0 -g3 -Wall -c -fmessage-length=0 -pthread
-std=c++0x -MMD -MP -MF"src/Threads.d" -MT"src/Threads.d" -o"src/Threads.o"
"../src/Threads.cpp"
Finished building: ../src/ProtocolHandler.cpp

Finished building: ../src/Threads.cpp

Building target: novad
Invoking: GCC C++ Linker
g++ -L../../NovaLibrary/Debug/ -pthread -o"novad" ./src/Control.o
./src/Main.o ./src/Novad.o ./src/ProtocolHandler.o ./src/Threads.o
-lNovaLibrary -lboost_program_options -lboost_system -lboost_filesystem
-levent -levent_pthreads -lpcap -lcurl -lann -lpthread -lsqlite3 -lprotobuf
-lz
../../NovaLibrary/Debug//libNovaLibrary.a(Config.o): In function boost::filesystem::copy_file(boost::filesystem::path
const&, boost::filesystem::path const&, boost::filesystem::copy_option)':
/usr/include/boost/filesystem/operations.hpp:381: undefined reference toboost::filesystem::detail::copy_file(boost::filesystem::path
const&, boost::filesystem::path const&, boost::filesystem::copy_option,
boost::system::error_code

)' ../../NovaLibrary/Debug//libNovaLibrary.a(NovaUtil.o): In function
boost::filesystem::copy_file(boost::filesystem::path const&,
boost::filesystem::path const&)':
/usr/include/boost/filesystem/operations.hpp:384: undefined reference
toboost::filesystem::detail::copy_file(boost::filesystem::path const&,
boost::filesystem::path const&, boost::filesystem::copy_option,
boost::system::error_code
)'
collect2: error: ld returned 1 exit status
make[2]: *** [novad] Error 1
make[2]: Leaving directory /home/nova/nova-build/Nova/Novad/Debug'
make[1]: *** [novad-debug] Error 2
make[1]: Leaving directory/home/nova/nova-build/Nova'
make: *** [debug] Error 2
Error occurred during build process; terminating script!


Reply to this email directly or view it on GitHub
#3.

@ConfusedInAustin
Copy link
Author

You were correct that it was not on version 1.48. I removed version 1.55 and installed 1.48, however it is still producing an error when building novad. This time it differs from the first.
Building target: novad
Invoking: GCC C++ Linker
g++ -L../../NovaLibrary/Debug/ -pthread -o"novad" ./src/Control.o ./src/Main.o ./src/Novad.o ./src/ProtocolHandler.o ./src/Threads.o -lNovaLibrary -lboost_program_options -lboost_system -lboost_filesystem -levent -levent_pthreads -lpcap -lcurl -lann -lpthread -lsqlite3 -lprotobuf -lz
../../NovaLibrary/Debug//libNovaLibrary.a(HoneydConfiguration.o): In function boost::enable_if<boost::filesystem2::is_basic_path<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >, boost::filesystem2::file_status>::type boost::filesystem2::symlink_status<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >(boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> const&, boost::system::error_code&)': /usr/local/include/boost/filesystem/v2/operations.hpp:272: undefined reference toboost::filesystem2::detail::symlink_status_api(std::string const&, boost::system::error_code&)'
../../NovaLibrary/Debug//libNovaLibrary.a(HoneydConfiguration.o): In function boost::enable_if<boost::filesystem2::is_basic_path<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >, bool>::type boost::filesystem2::exists<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >(boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> const&)': /usr/local/include/boost/filesystem/v2/operations.hpp:294: undefined reference toboost::filesystem2::detail::status_api(std::string const&, boost::system::error_code&)'
../../NovaLibrary/Debug//libNovaLibrary.a(HoneydConfiguration.o): In function boost::enable_if<boost::filesystem2::is_basic_path<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >, bool>::type boost::filesystem2::is_directory<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >(boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> const&)': /usr/local/include/boost/filesystem/v2/operations.hpp:304: undefined reference toboost::filesystem2::detail::status_api(std::string const&, boost::system::error_code&)'
../../NovaLibrary/Debug//libNovaLibrary.a(HoneydConfiguration.o): In function boost::enable_if<boost::filesystem2::is_basic_path<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >, bool>::type boost::filesystem2::create_directory<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >(boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> const&)': /usr/local/include/boost/filesystem/v2/operations.hpp:424: undefined reference toboost::filesystem2::detail::create_directory_api(std::string const&)'
../../NovaLibrary/Debug//libNovaLibrary.a(HoneydConfiguration.o): In function bool boost::filesystem2::detail::remove_aux<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >(boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> const&, boost::filesystem2::file_status)': /usr/local/include/boost/filesystem/v2/operations.hpp:784: undefined reference toboost::filesystem2::detail::remove_api(std::string const&)'
../../NovaLibrary/Debug//libNovaLibrary.a(HoneydConfiguration.o): In function boost::filesystem2::basic_directory_iterator<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >::m_init(boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> const&)': /usr/local/include/boost/filesystem/v2/operations.hpp:945: undefined reference toboost::filesystem2::detail::not_found_error()'
/usr/local/include/boost/filesystem/v2/operations.hpp:954: undefined reference to boost::filesystem2::detail::dir_itr_first(void*&, void*&, std::string const&, std::string&, boost::filesystem2::file_status&, boost::filesystem2::file_status&)' ../../NovaLibrary/Debug//libNovaLibrary.a(HoneydConfiguration.o): In functionboost::filesystem2::basic_directory_iterator<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >::increment()':
/usr/local/include/boost/filesystem/v2/operations.hpp:1010: undefined reference to boost::filesystem2::detail::dir_itr_increment(void*&, void*&, std::string&, boost::filesystem2::file_status&, boost::filesystem2::file_status&)' ../../NovaLibrary/Debug//libNovaLibrary.a(HoneydConfiguration.o): In functionboost::filesystem2::detail::dir_itr_imp<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >::~dir_itr_imp()':
/usr/local/include/boost/filesystem/v2/operations.hpp:878: undefined reference to boost::filesystem2::detail::dir_itr_close(void*&, void*&)' ../../NovaLibrary/Debug//libNovaLibrary.a(Config.o): In functionboost::enable_if<boost::filesystem2::is_basic_path<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >, void>::type boost::filesystem2::copy_file<boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> >(boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> const&, boost::filesystem2::basic_path<std::string, boost::filesystem2::path_traits> const&, boost::filesystem2::copy_option)':
/usr/local/include/boost/filesystem/v2/operations.hpp:520: undefined reference to boost::filesystem2::detail::copy_file_api(std::string const&, std::string const&, bool)' collect2: error: ld returned 1 exit status make[2]: *** [novad] Error 1 make[2]: Leaving directory/home/nova/nova-build/Nova/Novad/Debug'
make[1]: *** [novad-debug] Error 2
make[1]: Leaving directory `/home/nova/nova-build/Nova'
make: *** [debug] Error 2
Error occurred during build process; terminating script!

@shinzou87
Copy link

try this:
$ ./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants