Bug#703980: /usr/include/time.h: defining TIME_UTC conflicts with boost/thread/xtime.hpp enum
Package: libc6-dev
Version: 2.17-0experimental2
Severity: normal
File: /usr/include/time.h
Dear Maintainer,
I partially accidentaly upgraded to experimental libc 2.17. After
upgrade I noticed that my program depending on boost threads doesn't any
more build. I quickly figured out problem being the new define TIME_UTC in
/usr/include/time.h. Same name for enum entry is used in
/usr/include/boost/thread/xtime.hpp which causes boost header to fail
compile if time.h is included before it.
I suppose this could be considered as boost bug. There exists a fix for
the issue in boost 1.50 like can be seen from linked boost bug. But I
wanted to fail this bug against libc because I hit the bug after libc
upgrade. I don't know which package should prevent installation of
conflicting versions to the system.
https://svn.boost.org/trac/boost/ticket/6940
-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libc6-dev:amd64 depends on:
ii libc-dev-bin 2.17-0experimental2
ii libc6 2.17-0experimental2
ii linux-libc-dev 3.2.41-1
Versions of packages libc6-dev:amd64 recommends:
ii gcc [c-compiler] 4:4.7.2-1
ii gcc-4.6 [c-compiler] 4.6.3-15
ii gcc-4.7 [c-compiler] 4.7.2-5
Versions of packages libc6-dev:amd64 suggests:
pn glibc-doc <none>
ii manpages-dev 3.44-1
-- no debconf information
Reply to: