Public bug reported:

Imported from Debian bug http://bugs.debian.org/731011:

Package: cpp-netlib
Version: 0.10.1-1
Severity: serious
Justification: Fails to build from source

Hi there,

some of the tests in your package require internet connectivity and/or
an active network interface. The former may not be available on the
build daemon, resulting in an error like:

> Running 12 test cases...
> unknown location(0): fatal error in 
> "http_get_test_different_port<N5boost7network4http12basic_clientINS1_4tags29http_default_8bit_tcp_resolveELj1ELj0EEE>":
>  std::runtime_error: resolve: Host not found (authoritative)
> unknown location(0): fatal error in 
> "http_get_test_different_port<N5boost7network4http12basic_clientINS1_4tags29http_default_8bit_udp_resolveELj1ELj0EEE>":
>  std::runtime_error: resolve: Host not found (authoritative)
> unknown location(0): fatal error in 
> "http_get_test_different_port<N5boost7network4http12basic_clientINS1_4tags31http_keepalive_8bit_tcp_resolveELj1ELj0EEE>":
>  std::runtime_error: resolve: Host not found (authoritative)
> unknown location(0): fatal error in 
> "http_get_test_different_port<N5boost7network4http12basic_clientINS1_4tags31http_keepalive_8bit_udp_resolveELj1ELj0EEE>":
>  std::runtime_error: resolve: Host not found (authoritative)
> unknown location(0): fatal error in 
> "http_get_test_different_port<N5boost7network4http12basic_clientINS1_4tags27http_async_8bit_udp_resolveELj1ELj0EEE>":
>  std::runtime_error: Host not found (authoritative)
> terminate called after throwing an instance of 
> 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::thread_resource_error>
>  >'
>   what():  boost thread: trying joining itself: Resource deadlock avoided
> 
>       Start 14: cpp-netlib-http-client_get_timeout_test
> 14/18 Test #14: cpp-netlib-http-client_get_timeout_test .............   
> Passed    0.02 sec
>       Start 15: cpp-netlib-http-client_get_streaming_test
> 15/18 Test #15: cpp-netlib-http-client_get_streaming_test 
> ...........***Exception: Other  0.01 sec
> terminate called after throwing an instance of 
> 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::thread_resource_error>
>  >'
> Running 4 test cases...
> unknown location(0): fatal error in 
> "http_client_get_streaming_test<N5boost7network4http12basic_clientINS1_4tags27http_async_8bit_udp_resolveELj1ELj0EEE>":
>  std::runtime_error: Host not found (authoritative)
> /build/buildd/cpp-netlib-0.10.1/libs/network/test/http/client_get_streaming_test.cpp(37):
>  last checkpoint
>   what():  boost thread: trying joining itself: Resource deadlock avoided
> 
>       Start 16: cpp-netlib-http-server_constructor_test
> 16/18 Test #16: cpp-netlib-http-server_constructor_test .............   
> Passed    0.01 sec
>       Start 17: cpp-netlib-http-server_async_run_stop_concurrency
> 17/18 Test #17: cpp-netlib-http-server_async_run_stop_concurrency ...   
> Passed    1.31 sec
>       Start 18: mime-roundtrip
> 18/18 Test #18: mime-roundtrip ......................................   
> Passed    0.01 sec
> 
> 83% tests passed, 3 tests failed out of 18

A full build-log can for example be found at
https://launchpadlibrarian.net/157509492/buildlog_ubuntu-trusty-i386.cpp-netlib_0.10.1-1_FAILEDTOBUILD.txt.gz
Note that this particular build was done on Ubuntu trusty, but I
verified the same error on an up-to-date unstable running inside
Virtualbox with the network interface disabled.

The easiest solution in my opinion would be to disable the tests that
require connectivity/an active network interface.

-- 
Andreas Moog, Berliner Str. 29, 36205 Sontra/Germany
PGP-encrypted mails preferred (Key-ID: 74DE6624)
PGP Fingerprint: 74CD D9FE 5BCB FE0D 13EE 8EEA 61F3 4426 74DE 6624

** Affects: cpp-netlib (Ubuntu)
     Importance: High
     Assignee: Andreas Moog (amoog)
         Status: In Progress

** Affects: cpp-netlib (Debian)
     Importance: Undecided
         Status: New


** Tags: ftbfs trusty

** Bug watch added: Debian Bug tracker #731011
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731011

** Changed in: cpp-netlib (Debian)
 Remote watch: None => Debian Bug tracker #731011

** Changed in: cpp-netlib (Ubuntu)
   Importance: Undecided => High

** Tags added: ftbfs trusty

** Changed in: cpp-netlib (Ubuntu)
       Status: New => In Progress

** Changed in: cpp-netlib (Ubuntu)
     Assignee: (unassigned) => Andreas Moog (amoog)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1256583

Title:
  cpp-netlib: FTBFS: test failures when no internet connection available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cpp-netlib/+bug/1256583/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to