[MacPorts] #70200: geos2 fails to build: error: ‘std::tolower’ is not a valid template argument for type ‘int ()(int)’ because function ‘int tolower(int)’ has not external linkage

MacPorts noreply at macports.org
Mon Jun 10 14:33:01 UTC 2024


#70200: geos2 fails to build: error: ‘std::tolower’ is not a valid template
argument for type ‘int ()(int)’ because function ‘int tolower(int)’ has not
external linkage
--------------------------+--------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.9.3
 Keywords:                |       Port:  geos2
--------------------------+--------------------
 {{{
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_geos2/geos2/work/geos-2.2.3/source/test'
 if /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I. -I../..//source/headers
 -I../..//source/headers/geos -I../../source/headers
 -I../../source/io/markup  -I/opt/local/include  -pipe -Os -arch ppc -MT
 XMLTester.o -MD -MP -MF ".deps/XMLTester.Tpo" -c -o XMLTester.o
 XMLTester.cpp; \
         then mv -f ".deps/XMLTester.Tpo" ".deps/XMLTester.Po"; else rm -f
 ".deps/XMLTester.Tpo"; exit 1; fi
 if /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I. -I../..//source/headers
 -I../..//source/headers/geos -I../../source/headers
 -I../../source/io/markup  -I/opt/local/include  -pipe -Os -arch ppc -MT
 MarkupSTL.o -MD -MP -MF ".deps/MarkupSTL.Tpo" -c -o MarkupSTL.o `test -f
 '../io/markup/MarkupSTL.cpp' || echo './'`../io/markup/MarkupSTL.cpp; \
         then mv -f ".deps/MarkupSTL.Tpo" ".deps/MarkupSTL.Po"; else rm -f
 ".deps/MarkupSTL.Tpo"; exit 1; fi
 if /usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I. -I../..//source/headers
 -I../..//source/headers/geos -I../../source/headers
 -I../../source/io/markup  -I/opt/local/include  -pipe -Os -arch ppc -MT
 SimpleWKTTester.o -MD -MP -MF ".deps/SimpleWKTTester.Tpo" -c -o
 SimpleWKTTester.o SimpleWKTTester.cpp; \
         then mv -f ".deps/SimpleWKTTester.Tpo" ".deps/SimpleWKTTester.Po";
 else rm -f ".deps/SimpleWKTTester.Tpo"; exit 1; fi
 ../io/markup/MarkupSTL.cpp: In member function ‘std::string
 CMarkupSTL::x_TextToDoc(const char*, bool) const’:
 ../io/markup/MarkupSTL.cpp:906: warning: deprecated conversion from string
 constant to ‘char*’
 ../io/markup/MarkupSTL.cpp:906: warning: deprecated conversion from string
 constant to ‘char*’
 ../io/markup/MarkupSTL.cpp:906: warning: deprecated conversion from string
 constant to ‘char*’
 ../io/markup/MarkupSTL.cpp:906: warning: deprecated conversion from string
 constant to ‘char*’
 ../io/markup/MarkupSTL.cpp:906: warning: deprecated conversion from string
 constant to ‘char*’
 ../io/markup/MarkupSTL.cpp: In member function ‘std::string
 CMarkupSTL::x_TextFromDoc(int, int) const’:
 ../io/markup/MarkupSTL.cpp:935: warning: deprecated conversion from string
 constant to ‘char*’
 ../io/markup/MarkupSTL.cpp:935: warning: deprecated conversion from string
 constant to ‘char*’
 ../io/markup/MarkupSTL.cpp:935: warning: deprecated conversion from string
 constant to ‘char*’
 ../io/markup/MarkupSTL.cpp:935: warning: deprecated conversion from string
 constant to ‘char*’
 ../io/markup/MarkupSTL.cpp:935: warning: deprecated conversion from string
 constant to ‘char*’
 ../io/markup/MarkupSTL.cpp:937: warning: deprecated conversion from string
 constant to ‘char*’
 XMLTester.cpp: In function ‘void tolower(std::string&)’:
 XMLTester.cpp:66: error: ‘std::tolower’ is not a valid template argument
 for type ‘int ()(int)’ because function ‘int tolower(int)’ has not
 external linkage
 XMLTester.cpp:66: error: ‘std::tolower’ is not a valid template argument
 for type ‘int ()(int)’ because function ‘int tolower(int)’ has not
 external linkage
 XMLTester.cpp:66: error: no matching function for call to
 ‘transform(__gnu_cxx::__normal_iterator<char*, std::basic_string<char,
 std::char_traits<char>, std::allocator<char> > >,
 __gnu_cxx::__normal_iterator<char*, std::basic_string<char,
 std::char_traits<char>, std::allocator<char> > >,
 __gnu_cxx::__normal_iterator<char*, std::basic_string<char,
 std::char_traits<char>, std::allocator<char> > >, <unresolved overloaded
 function type>)’
 /bin/sh ../..//libtool --mode=link --tag=CXX /usr/bin/g++-4.2  -pipe -Os
 -arch ppc  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -o
 SimpleWKTTester  SimpleWKTTester.o ../..//source/geom/libgeos.la
 ../..//source/geom/libgeos.la
 make[2]: *** [XMLTester.o] Error 1
 make[2]: *** Waiting for unfinished jobs....
 mkdir .libs
 /usr/bin/g++-4.2 -pipe -Os -arch ppc -Wl,-headerpad_max_install_names
 -arch ppc -o .libs/SimpleWKTTester SimpleWKTTester.o -Wl,-bind_at_load
 -L/opt/local/lib ../..//source/geom/.libs/libgeos.dylib
 creating SimpleWKTTester
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_geos2/geos2/work/geos-2.2.3/source/test'
 make[1]: *** [all-recursive] Error 1
 }}}

 Perhaps needs C++11, but only for tests?

-- 
Ticket URL: <https://trac.macports.org/ticket/70200>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list