pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: various new build breakage (mostly due to gcc-4.5)



Hi,

From: Thomas Klausner <wiz%NetBSD.org@localhost>, Date: Sun, 14 Aug 2011 
21:19:10 +0200

> Hi!
> 
> I've upgraded my NetBSD-5.99.55/amd64 to one with gcc-4.5. I see the
> following new breakage to my previous 5.99.55 snapshot. I'd appreciate
> suggestions for fixes.
> 
> boost issues in textproc/FlightCrew, wip/Sigil, graphics/exiv2-organize:
> In file included from 
> /scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem.hpp:36:0,
>                  from 
> /scratch/textproc/FlightCrew/work/FlightCrew-0.7.1-Code/src/zipios/../FlightCrew/Misc/BoostFilesystemUse.h:28,
>                  from 
> /scratch/textproc/FlightCrew/work/FlightCrew-0.7.1-Code/src/zipios/src/dircoll.cpp:10:
> /scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem/v3/operations.hpp:126:3:
>  warning: scoped enums only available with -std=c++0x or -std=gnu++0x
> /scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem/v3/operations.hpp:
>  In function 'void boost::filesystem3::copy_file(const 
> boost::filesystem3::path&, const boost::filesystem3::path&)':
> /scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem/v3/operations.hpp:303:69:
>  error: 'copy_option' is not a class or namespace
> /scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem/v3/operations.hpp:
>  In function 'void boost::filesystem3::copy_file(const 
> boost::filesystem3::path&, const boost::filesystem3::path&, 
> boost::system::error_code&)':
> /scratch/textproc/FlightCrew/work/.buildlink/include/boost/filesystem/v3/operations.hpp:310:69:
>  error: 'copy_option' is not a class or namespace

This error is fixed with attached patch.
But some other problems are not fixed yet.

Thank you.

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3
$NetBSD$

--- src/zipios/CMakeLists.txt.orig      2011-08-11 12:03:56.000000000 +0000
+++ src/zipios/CMakeLists.txt
@@ -44,6 +44,6 @@ if( MSVC )
 
 # "Print all warnings" flag for GCC
 elseif( CMAKE_COMPILER_IS_GNUCXX )
-    add_definitions( -Wall )
+    add_definitions( -Wall -std=c++0x)
 endif()
 


Home | Main Index | Thread Index | Old Index