[DRE-maint] Bug#710617: ruby-passenger: FTBFS: ext/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant

David Suárez david.sephirot at gmail.com
Fri May 31 22:33:25 UTC 2013


Source: ruby-passenger
Version: 3.0.13debian-1
Severity: serious
Tags: jessie sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20130529 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

It's a problem in boost which is fixed in 1.50. TIME_UTC is a C11 macro
that colides with boost::TIME_UTC. In Boost 1.50, this constant was renamed
to TIME_UTC_. To fix it just use the new symbol name.

Relevant part:
> g++ -Iext -Iext/common -I/usr/include/libev -fPIC -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -DLINUX=2 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o ext/apache2/module_libpassenger_common/Utils/CachedFileStat.o -c ext/common/Utils/CachedFileStat.cpp
> In file included from ext/boost/thread/pthread/mutex.hpp:14:0,
>                  from ext/boost/thread/mutex.hpp:16,
>                  from ext/boost/thread/pthread/thread_data.hpp:12,
>                  from ext/boost/thread/thread.hpp:17,
>                  from ext/boost/thread.hpp:13,
>                  from ext/common/Utils/SystemTime.h:28,
>                  from ext/common/Utils/CachedFileStat.hpp:39,
>                  from ext/common/Utils/CachedFileStat.cpp:26:
> ext/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
> ext/boost/thread/xtime.hpp:23:5: error: expected '}' before numeric constant
> ext/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
> ext/boost/thread/xtime.hpp:46:14: error: expected type-specifier before 'system_time'
> In file included from ext/boost/thread/pthread/mutex.hpp:14:0,
>                  from ext/boost/thread/mutex.hpp:16,
>                  from ext/boost/thread/pthread/thread_data.hpp:12,
>                  from ext/boost/thread/thread.hpp:17,
>                  from ext/boost/thread.hpp:13,
>                  from ext/common/Utils/SystemTime.h:28,
>                  from ext/common/Utils/CachedFileStat.hpp:39,
>                  from ext/common/Utils/CachedFileStat.cpp:26:
> ext/boost/thread/xtime.hpp: In function 'int xtime_get(xtime*, int)':
> ext/boost/thread/xtime.hpp:73:40: error: 'get_system_time' was not declared in this scope
> ext/boost/thread/xtime.hpp:73:40: note: suggested alternative:
> In file included from ext/boost/thread/locks.hpp:12:0,
>                  from ext/boost/thread/pthread/mutex.hpp:12,
>                  from ext/boost/thread/mutex.hpp:16,
>                  from ext/boost/thread/pthread/thread_data.hpp:12,
>                  from ext/boost/thread/thread.hpp:17,
>                  from ext/boost/thread.hpp:13,
>                  from ext/common/Utils/SystemTime.h:28,
>                  from ext/common/Utils/CachedFileStat.hpp:39,
>                  from ext/common/Utils/CachedFileStat.cpp:26:
> ext/boost/thread/thread_time.hpp:18:24: note:   'boost::get_system_time'
> In file included from ext/boost/thread/pthread/mutex.hpp:14:0,
>                  from ext/boost/thread/mutex.hpp:16,
>                  from ext/boost/thread/pthread/thread_data.hpp:12,
>                  from ext/boost/thread/thread.hpp:17,
>                  from ext/boost/thread.hpp:13,
>                  from ext/common/Utils/SystemTime.h:28,
>                  from ext/common/Utils/CachedFileStat.hpp:39,
>                  from ext/common/Utils/CachedFileStat.cpp:26:
> ext/boost/thread/xtime.hpp: At global scope:
> ext/boost/thread/xtime.hpp:88:1: error: expected declaration before '}' token
> rake aborted!
> Command failed with status (1): [g++ -Iext -Iext/common -I/usr/include/libe...]
> /«PKGBUILDDIR»/build/cplusplus_support.rb:31:in `compile_cxx'
> /«PKGBUILDDIR»/build/common_library.rb:145:in `define_common_library_task'
> Tasks: TOP => fakeroot => apache2 => ext/apache2/mod_passenger.so => ext/apache2/module_libpassenger_common.a => ext/apache2/module_libpassenger_common/Utils/CachedFileStat.o
> (See full trace by running task with --trace)
> make[1]: *** [override_dh_auto_build] Error 1

The full build log is available from:
   http://deiv.vzpla.net/logs/2013/05/29/ruby-passenger_3.0.13debian-1_unstable.log

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-ruby-extras-maintainers mailing list