[Tile-serving] [openstreetmap/mod_tile] Error compiling on FreeBSD 10.3 (#136)

mixx941 notifications at github.com
Thu Sep 15 15:37:26 UTC 2016


Hi,

I made the changes for FreeBSD noted in issue #114, however compiling mod_tile on FreeBSD 10.3-RELEASE (clang 3.4.1) is still failing with the below error. Thanks in advance.

```
c++ -DHAVE_CONFIG_H -I. -I./includes  -D_THREAD_SAFE -pthread -DSYSTEM_LIBINIPARSER=0 -I/usr/local/include -I/usr/local/include -I/usr/local/include/mapnik/agg -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/libdrm -I/usr/local/include/libpng16 -DMAPNIK_MEMORY_MAPPED_FILE -DMAPNIK_HAS_DLCFN -DBIGINT -DBOOST_REGEX_HAS_ICU -DHAVE_JPEG -DMAPNIK_USE_PROJ4 -DHAVE_PNG -DHAVE_WEBP -DHAVE_TIFF -DFREEBSD -DMAPNIK_THREADSAFE -DBOOST_SPIRIT_NO_PREDEFINED_TERMINALS=1 -DBOOST_PHOENIX_NO_PREDEFINED_TERMINALS=1 -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DNDEBUG -DHAVE_CAIRO -DGRID_RENDERER -std=c++11 -O2 -pipe -fstack-protector -fno-strict-aliasing -DBOOST_NO_CXX11_SCOPED_ENUMS -g -O2 -MT src/gen_tile_test-gen_tile_test.o -MD -MP -MF src/.deps/gen_tile_test-gen_tile_test.Tpo -c -o src/gen_tile_test-gen_tile_test.o `test -f 'src/gen_tile_test.cpp' || echo './'`src/gen_tile_test.cpp
In file included from src/gen_tile_test.cpp:28:
./includes/catch.hpp:519:13: error: use of overloaded operator '<<' is ambiguous (with operand types 'std::ostringstream' (aka 'basic_ostringstream<char>') and 'const nullptr_t')
        oss << value;
        ~~~ ^  ~~~~~
./includes/catch.hpp:552:20: note: in instantiation of function template specialization 'Catch::Detail::makeString<nullptr_t>' requested here
    return Detail::makeString( value );
                   ^
./includes/catch.hpp:1002:29: note: in instantiation of function template specialization 'Catch::toString<nullptr_t>' requested here
            .setRhs( Catch::toString( rhs ) )
                            ^
./includes/catch.hpp:950:16: note: in instantiation of function template specialization 'Catch::ExpressionLhs<request_queue *const &>::captureExpression<1, nullptr_t>' requested here
        return captureExpression<Internal::IsNotEqualTo>( rhs );
               ^
src/gen_tile_test.cpp:141:24: note: in instantiation of function template specialization 'Catch::ExpressionLhs<request_queue *const &>::operator!=<nullptr_t>' requested here
        REQUIRE( queue != NULL );
                       ^
./includes/catch.hpp:6396:46: note: expanded from macro 'REQUIRE'
#define REQUIRE( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::Normal, "REQUIRE" )
                                             ^
./includes/catch.hpp:2093:75: note: expanded from macro 'INTERNAL_CATCH_TEST'
            INTERNAL_CATCH_ACCEPT_EXPR( ( Catch::ExpressionDecomposer()->*expr ).endExpression( resultDisposition ), resultDisposition, expr ); \
                                                                          ^
./includes/catch.hpp:2077:104: note: expanded from macro 'INTERNAL_CATCH_ACCEPT_EXPR'
    if( Catch::ResultAction::Value internal_catch_action = Catch::getResultCapture().acceptExpression( evaluatedExpr, INTERNAL_CATCH_ASSERTIONINFO_NAME )  ) { \
                                                                                                       ^
/usr/include/c++/v1/ostream:191:20: note: candidate function
    basic_ostream& operator<<(basic_ostream& (*__pf)(basic_ostream&));
                   ^
/usr/include/c++/v1/ostream:192:20: note: candidate function
    basic_ostream& operator<<(basic_ios<char_type, traits_type>&
                   ^
/usr/include/c++/v1/ostream:194:20: note: candidate function
    basic_ostream& operator<<(ios_base& (*__pf)(ios_base&));
                   ^
/usr/include/c++/v1/ostream:207:20: note: candidate function
    basic_ostream& operator<<(const void* __p);
                   ^
/usr/include/c++/v1/ostream:208:20: note: candidate function
    basic_ostream& operator<<(basic_streambuf<char_type, traits_type>* __sb);
                   ^
/usr/include/c++/v1/ostream:892:1: note: candidate function [with _Traits = std::__1::char_traits<char>]
operator<<(basic_ostream<char, _Traits>& __os, const char* __str)
^
/usr/include/c++/v1/ostream:846:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits<char>]
operator<<(basic_ostream<_CharT, _Traits>& __os, const char* __strn)
^
/usr/include/c++/v1/ostream:899:1: note: candidate function [with _Traits = std::__1::char_traits<char>]
operator<<(basic_ostream<char, _Traits>& __os, const signed char* __str)
^
/usr/include/c++/v1/ostream:907:1: note: candidate function [with _Traits = std::__1::char_traits<char>]
operator<<(basic_ostream<char, _Traits>& __os, const unsigned char* __str)
^
/usr/include/c++/v1/ostream:195:20: note: candidate function
    basic_ostream& operator<<(bool __n);
                   ^
./includes/catch.hpp:512:26: note: candidate function
    inline std::ostream& operator << ( std::ostream& ss, NonStreamable ){
                         ^
1 error generated.
*** Error code 1

Stop.
make[1]: stopped in /usr/home/user/mod_tile
*** Error code 1

Stop.
make: stopped in /usr/home/user/mod_tile
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/136
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20160915/fad663cc/attachment.html>


More information about the Tile-serving mailing list