boost gil library examples fail to compile

Bug #566541 reported by Lixin Chin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
boost1.38 (Ubuntu)
New
Undecided
Unassigned

Bug Description

The GIL sub-library of LibBoost comes with several examples. I'm trying to compile the dynamic_image.cpp example in a working directory using:

g++ dynamic_image.cpp

However it fails, as does any attempt to compile any code using the GIL library to attempt to read images from files.

A dump of g++'s output is attached.

ProblemType: Bug
Architecture: amd64
Date: Mon Apr 19 18:43:56 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: fglrx
Package: libboost1.38-dev 1.38.0-6ubuntu6
ProcEnviron:
 LANGUAGE=
 LANG=en_AU.UTF-8
 SHELL=/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: boost1.38
Uname: Linux 2.6.31-20-generic x86_64
XsessionErrors:
 (polkit-gnome-authentication-agent-1:2101): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (emacs:2090): GLib-WARNING **: g_set_prgname() called multiple times
 (npviewer.bin:2533): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libqtcurve.so: wrong ELF class: ELFCLASS64

Revision history for this message
Lixin Chin (wstfgl) wrote :
Revision history for this message
Lixin Chin (wstfgl) wrote :

Tried the same thing with boost 1.40, and the same problem occurs there as well.

(can't figure out how to have launchpad link this bug report to boost1.40).

Revision history for this message
Lixin Chin (wstfgl) wrote :

Retested with g++-4.3 and it seems to work, the example compile successfully.

This may be related to https://bugs.launchpad.net/ubuntu/+source/boost/+bug/436470 although that bug was just for boost 1.38 and I'm seeing the same problems with boost 1.40.

Revision history for this message
Lixin Chin (wstfgl) wrote :

According to upstream: https://svn.boost.org/trac/boost/ticket/3371
its more general than that, everything that uses boost::mpl up to version 1.40 will fail to compile with g++ 4.4

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.