Omgili, forum search, forums search, search forums, discussion search,discussions search, search discussions, board search, boards search, search boards
  Advanced Search

[Boost-users] [interprocess] compilation errors with 1.48 on 64-bit Centos 5.5

On Thu, 26 Jan 2012 14:04:34 -0500, Daniel Herring <...@ll.mit.edu

Hi,

I started updating an application from Boost 1.35. It had a few compiler
errors with 1.44, and things got worse with 1.48.

While tracing down the new issues, problems were found with the
distributed examples. For example, the following commands pass with 1.44
and 1.47 but fail with 1.48 (see attached logs).

$ cd libs/interprocess/example
$ ../../../bjam doc_managed_allocation_command $ ../../../bjam doc_managed_raw_allocation
All 1.44, 1.47, and 1.48 were built locally from the release source
tarballs using a simple `./bootstrap.sh; ./bjam`. The example sources
haven't changed during this period; so this may be a portability issue
with the interprocess library itself.

Here's some more info on the system.

$ cat /etc/redhat-release
CentOS release 5.5 (Final)
$ g++ --version
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ rpm -qi gcc-c++
Name : gcc-c++ Relocations: (not relocatable)
Version : 4.1.2 Vendor: CentOS
Release : 48.el5 Build Date: Wed 31 Mar 2010 12:09:02 PM EDT
Install Date: Mon 20 Sep 2010 06:02:55 AM EDT Build Host: builder17.centos.org
Group : Development/Languages Source RPM: gcc-4.1.2-48.el5.src.rpm
Size : 7824005 License: GPL
Signature : DSA/SHA1, Mon 26 Apr 2010 07:41:02 PM EDT, Key ID a8a447dce8562897
URL : http://gcc.gnu.org
Summary : C++ support for GCC
Description :
This package adds C++ support to the GNU Compiler Collection.
It includes support for most of the current C++ specification,
including templates and exception handling.

The above commands do pass on release 1.48 when compiled using g++44 from
the gcc44-c++-4.4.0-6.el5 package. However, that might not be an option
for some of my users.

Please let me know if more information is needed to debug the problem, if
this is a known problem with gcc, etc.

Thanks,
Daniel

_______________________________________________
Boost-users mailing list
Boos...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users



On Thu, 26 Jan 2012 21:51:38 +0100, Ion Gaztañaga <...@gmail.com

El 26/01/2012 20:04, Daniel Herring escribió:

I think your problem is solved in trunk and release branches, soon in
1.49, as I tested the code in Centos 5.7.

Best,

Ion
_______________________________________________
Boost-users mailing list
Boos...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Fri, 27 Jan 2012 16:06:41 -0500, Daniel Herring <...@ll.mit.edu

This problem is fixed in boost_1_49_0_beta1.tar.bz2

- Daniel

_______________________________________________
Boost-users mailing list
Boos...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Thu, 26 Jan 2012 17:29:36 -0500, Daniel Herring <...@ll.mit.edu

Ok. I'll watch for the new release.

Thanks,
Daniel

P.S. My other errors traced to a change in parameter forwarding.
boost::interprocess::managed_shared_memory::find_or_construct<Tto allow passing x as a non-const reference. Passing x as a pointer
gets around the problem.

_______________________________________________
Boost-users mailing list
Boos...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users