pkgsrc-Users archive

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

Re: using gcc48 from pkgsrc



On Fri, Oct 23, 2015 at 09:35:16AM -0400, Greg Troxel wrote:
> 
> I'm trying to test a branch of osm2pgsql (switching to cmake).  It needs
> gcc 4.8 because it relies on C++11.
> 
> On netbsd-6 i386, gcc is 4.5, so I installed gcc48 and gcc48-libs, and
> put /usr/pkg/gcc48/bin in $PATH, and tried to build.  This resulted in
> complaints about std::to_string:
> 
> /home/gdt/SOFTWARE/GEO/osm2pgsql/contrib/libosmium/osmium/io/gzip_compression.hpp:85:30: error: ‘to_string’ is not a member of ‘std’
>                      error += std::to_string(zlib_error);

GCC has the annoying habit of disabling a bunch of C++11 library
things if it can't find a complete C99 userland. That's much more likely
to trigger on netbsd-6 than netbsd-7. Check the bits/c++config.h file or
whatevere it is called.

Joerg


Home | Main Index | Thread Index | Old Index