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

Link error on cppnetlib-uri parse on Ubuntu 15.10 #2

Open
bdoin opened this issue Dec 16, 2015 · 1 comment
Open

Link error on cppnetlib-uri parse on Ubuntu 15.10 #2

bdoin opened this issue Dec 16, 2015 · 1 comment

Comments

@bdoin
Copy link
Contributor

bdoin commented Dec 16, 2015

Building on Ubuntu 15.10 with gcc 5.2.1 end up in the following link error:
cybersecurity-miw/miw/.libs/libmiw.so: undefined reference to `boost::network::uri::detail::parse(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, boost::network::uri::detail::uri_parts<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >&)'

@beniz
Copy link
Contributor

beniz commented Dec 16, 2015

Certainly due to this bug: https://bugs.launchpad.net/ubuntu/+source/cpp-netlib/+bug/1512695

The built-in package libcppnetlib0 is wrongly built on Ubuntu 15.10 and the fix is to build our own version (don't do it from github repository as it appears to be messy, follow instructions below with version from https://launchpad.net/ubuntu/+source/cpp-netlib/0.11.1+dfsg1-4):

sudo apt-get purge libcppnetlib-dev
wget https://launchpad.net/ubuntu/+archive/primary/+files/cpp-netlib_0.11.1%2Bdfsg1.orig.tar.gz
tar xvzf cpp-netlib_0.11.1+dfsg1.orig.tar.gz
cd cpp-netlib-0.11.1-final
mkdir build
cd build
cmake ..
make
sudo make install

@beniz beniz changed the title Link error on cppnetlib-uri parse Link error on cppnetlib-uri parse on Ubuntu 15.10 Dec 16, 2015
@beniz beniz closed this as completed Jan 28, 2016
@beniz beniz reopened this Jan 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants