[MacPorts] #72438: octave-geometry fails to build: martinez.h: error: expected template-name before '<' token

MacPorts noreply at macports.org
Sun May 4 13:08:54 UTC 2025


#72438: octave-geometry fails to build: martinez.h: error: expected template-name
before '<' token
------------------------------+--------------------
  Reporter:  barracuda156     |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.10.6
Resolution:                   |   Keywords:
      Port:  octave-geometry  |
------------------------------+--------------------

Comment (by barracuda156):

 Without this patch it built fine with C++17, though complained about
 deprecated function:
 {{{
 Executing:  cd "/opt/local/var/macports/build
 /_opt_local_ppcports_octave_octave-geometry/octave-geometry/work/geometry"
 && /usr/bin/arch -arch $OCTAVE_ARCH /opt/local/bin/octave-cli -q -f -H
 --eval 'try; pkg build -verbose -nodeps /opt/local/var/macports/build
 /_opt_local_ppcports_octave_octave-geometry/octave-geometry/work/tmp-build
 /opt/local/var/macports/build/_opt_local_ppcports_octave_octave-geometry
 /octave-geometry/work/geometry-4.1.0.tar.gz; catch;
 disp(lasterror.message); exit(1); end_try_catch;'
 2025-05-04 21:06:36.128 octave-cli-10.1.0-orig[34083:b0b] CFPreferences:
 user home directory at file://localhost/opt/local/var/macports/home/ is
 unavailable. User domains will be volatile.
 warning: creating build directory /opt/local/var/macports/build
 /_opt_local_ppcports_octave_octave-geometry/octave-geometry/work/tmp-build
 warning: called from
     build at line 49 column 5
     pkg at line 744 column 7

 make: Entering directory `/opt/local/var/macports/build
 /_opt_local_ppcports_octave_octave-geometry/octave-geometry/work/tmp-
 build/geometry/src'
 /usr/bin/arch -arch ppc /opt/local/bin/mkoctfile-10.1.0 --verbose -Wall
 -mex -g clipper.cpp mexclipper.cpp
 /opt/local/bin/gcc-mp-14 -c -I/opt/local/include
 -I/opt/local/include/octave-10.1.0/octave/..
 -I/opt/local/include/octave-10.1.0/octave -I/opt/local/include  -pthread
 -fexceptions -pipe -Os -arch ppc -g  -Wall  -I.  -DMEX_DEBUG
 /opt/local/var/macports/build/_opt_local_ppcports_octave_octave-geometry
 /octave-geometry/work/.tmp/oct-4pZ8wf.c -o /opt/local/var/macports/build
 /_opt_local_ppcports_octave_octave-geometry/octave-geometry/work/.tmp/oct-
 4gtLyC.o
 /opt/local/bin/g++-mp-14 -c -I/opt/local/include
 -I/opt/local/include/octave-10.1.0/octave/..
 -I/opt/local/include/octave-10.1.0/octave -I/opt/local/include  -pthread
 -pipe -Os -std=gnu++17 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -g  -Wall  -I.
 -DMEX_DEBUG clipper.cpp -o /opt/local/var/macports/build
 /_opt_local_ppcports_octave_octave-geometry/octave-geometry/work/.tmp/oct-
 rCWVBf.o
 /opt/local/bin/g++-mp-14 -c -I/opt/local/include
 -I/opt/local/include/octave-10.1.0/octave/..
 -I/opt/local/include/octave-10.1.0/octave -I/opt/local/include  -pthread
 -pipe -Os -std=gnu++17 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -g  -Wall  -I.
 -DMEX_DEBUG mexclipper.cpp -o /opt/local/var/macports/build
 /_opt_local_ppcports_octave_octave-geometry/octave-geometry/work/.tmp/oct-
 pRpFZ4.o
 /opt/local/bin/g++-mp-14 -I/opt/local/include/octave-10.1.0/octave/..
 -I/opt/local/include/octave-10.1.0/octave -I/opt/local/include  -pthread
 -pipe -Os -std=gnu++17 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -g  -Wall -o
 clipper.mex  /opt/local/var/macports/build
 /_opt_local_ppcports_octave_octave-geometry/octave-geometry/work/.tmp/oct-
 4gtLyC.o /opt/local/var/macports/build/_opt_local_ppcports_octave_octave-
 geometry/octave-geometry/work/.tmp/oct-rCWVBf.o
 /opt/local/var/macports/build/_opt_local_ppcports_octave_octave-geometry
 /octave-geometry/work/.tmp/oct-pRpFZ4.o   -bundle -undefined
 dynamic_lookup -bind_at_load -L/opt/local/lib/octave/10.x.x
 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc
 -L/opt/local/lib/octave/10.1.0 -loctmex -Wl,-headerpad_max_install_names
 -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc
 -arch ppc
 /usr/bin/arch -arch ppc /opt/local/bin/mkoctfile-10.1.0 --verbose -c
 connector.cpp -o connector.o
 /opt/local/bin/g++-mp-14 -c -I/opt/local/include
 -I/opt/local/include/octave-10.1.0/octave/..
 -I/opt/local/include/octave-10.1.0/octave -I/opt/local/include  -pthread
 -pipe -Os -std=gnu++17 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc
 connector.cpp -o connector.o
 In file included from connector.h:13,
                  from connector.cpp:9:
 martinez.h:40:37: warning: 'template<class _Arg1, class _Arg2, class
 _Result> struct std::binary_function' is deprecated [-Wdeprecated-
 declarations]
    40 |         struct SegmentComp : public binary_function<SweepEvent*,
 SweepEvent*, bool> { // for sorting edges in the sweep line
       |                                     ^~~~~~~~~~~~~~~
 In file included from /opt/local/include/gcc14/c++/string:49,
                  from
 /opt/local/include/gcc14/c++/bits/locale_classes.h:40,
                  from /opt/local/include/gcc14/c++/bits/ios_base.h:41,
                  from /opt/local/include/gcc14/c++/ios:44,
                  from /opt/local/include/gcc14/c++/ostream:40,
                  from /opt/local/include/gcc14/c++/iostream:41,
                  from point.h:16,
                  from segment.h:16,
                  from connector.h:12:
 /opt/local/include/gcc14/c++/bits/stl_function.h:131:12: note: declared
 here
   131 |     struct binary_function
       |            ^~~~~~~~~~~~~~~
 martinez.h:67:40: warning: 'template<class _Arg1, class _Arg2, class
 _Result> struct std::binary_function' is deprecated [-Wdeprecated-
 declarations]
    67 |         struct SweepEventComp : public
 binary_function<SweepEvent*, SweepEvent*, bool> { // for sortening events
       |                                        ^~~~~~~~~~~~~~~
 /opt/local/include/gcc14/c++/bits/stl_function.h:131:12: note: declared
 here
   131 |     struct binary_function
       |            ^~~~~~~~~~~~~~~
 /usr/bin/arch -arch ppc /opt/local/bin/mkoctfile-10.1.0 --verbose -c
 martinez.cpp -o martinez.o
 /opt/local/bin/g++-mp-14 -c -I/opt/local/include
 -I/opt/local/include/octave-10.1.0/octave/..
 -I/opt/local/include/octave-10.1.0/octave -I/opt/local/include  -pthread
 -pipe -Os -std=gnu++17 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc
 martinez.cpp -o martinez.o
 In file included from martinez.cpp:9:
 martinez.h:40:37: warning: 'template<class _Arg1, class _Arg2, class
 _Result> struct std::binary_function' is deprecated [-Wdeprecated-
 declarations]
    40 |         struct SegmentComp : public binary_function<SweepEvent*,
 SweepEvent*, bool> { // for sorting edges in the sweep line
       |                                     ^~~~~~~~~~~~~~~
 In file included from /opt/local/include/gcc14/c++/bits/refwrap.h:39,
                  from /opt/local/include/gcc14/c++/vector:68,
                  from polygon.h:12,
                  from martinez.h:12:
 /opt/local/include/gcc14/c++/bits/stl_function.h:131:12: note: declared
 here
   131 |     struct binary_function
       |            ^~~~~~~~~~~~~~~
 martinez.h:67:40: warning: 'template<class _Arg1, class _Arg2, class
 _Result> struct std::binary_function' is deprecated [-Wdeprecated-
 declarations]
    67 |         struct SweepEventComp : public
 binary_function<SweepEvent*, SweepEvent*, bool> { // for sortening events
       |                                        ^~~~~~~~~~~~~~~
 /opt/local/include/gcc14/c++/bits/stl_function.h:131:12: note: declared
 here
   131 |     struct binary_function
       |            ^~~~~~~~~~~~~~~
 /usr/bin/arch -arch ppc /opt/local/bin/mkoctfile-10.1.0 --verbose -c
 polygon.cpp -o polygon.o
 /opt/local/bin/g++-mp-14 -c -I/opt/local/include
 -I/opt/local/include/octave-10.1.0/octave/..
 -I/opt/local/include/octave-10.1.0/octave -I/opt/local/include  -pthread
 -pipe -Os -std=gnu++17 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc    polygon.cpp
 -o polygon.o
 polygon.cpp:96:37: warning: 'template<class _Arg1, class _Arg2, class
 _Result> struct std::binary_function' is deprecated [-Wdeprecated-
 declarations]
    96 |         struct SegmentComp : public binary_function<SweepEvent*,
 SweepEvent*, bool> {
       |                                     ^~~~~~~~~~~~~~~
 In file included from /opt/local/include/gcc14/c++/bits/refwrap.h:39,
                  from /opt/local/include/gcc14/c++/vector:68,
                  from polygon.h:12,
                  from polygon.cpp:9:
 /opt/local/include/gcc14/c++/bits/stl_function.h:131:12: note: declared
 here
   131 |     struct binary_function
       |            ^~~~~~~~~~~~~~~
 polygon.cpp:119:40: warning: 'template<class _Arg1, class _Arg2, class
 _Result> struct std::binary_function' is deprecated [-Wdeprecated-
 declarations]
   119 |         struct SweepEventComp : public
 binary_function<SweepEvent*, SweepEvent*, bool> {
       |                                        ^~~~~~~~~~~~~~~
 /opt/local/include/gcc14/c++/bits/stl_function.h:131:12: note: declared
 here
   131 |     struct binary_function
       |            ^~~~~~~~~~~~~~~
 /usr/bin/arch -arch ppc /opt/local/bin/mkoctfile-10.1.0 --verbose -c
 utilities.cpp -o utilities.o
 /opt/local/bin/g++-mp-14 -c -I/opt/local/include
 -I/opt/local/include/octave-10.1.0/octave/..
 -I/opt/local/include/octave-10.1.0/octave -I/opt/local/include  -pthread
 -pipe -Os -std=gnu++17 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc
 utilities.cpp -o utilities.o
 /usr/bin/arch -arch ppc /opt/local/bin/mkoctfile-10.1.0 --verbose
 connector.o martinez.o polygon.o utilities.o polybool_mrf.cc -o
 polybool_mrf.oct
 /opt/local/bin/g++-mp-14 -c -I/opt/local/include
 -I/opt/local/include/octave-10.1.0/octave/..
 -I/opt/local/include/octave-10.1.0/octave -I/opt/local/include  -pthread
 -pipe -Os -std=gnu++17 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc
 polybool_mrf.cc -o /opt/local/var/macports/build
 /_opt_local_ppcports_octave_octave-geometry/octave-geometry/work/.tmp/oct-
 mnDg4X.o
 In file included from polybool_mrf.cc:21:
 martinez.h:40:37: warning: 'template<class _Arg1, class _Arg2, class
 _Result> struct std::binary_function' is deprecated [-Wdeprecated-
 declarations]
    40 |         struct SegmentComp : public binary_function<SweepEvent*,
 SweepEvent*, bool> { // for sorting edges in the sweep line
       |                                     ^~~~~~~~~~~~~~~
 In file included from /opt/local/include/gcc14/c++/bits/refwrap.h:39,
                  from /opt/local/include/gcc14/c++/vector:68,
                  from polygon.h:12,
                  from polybool_mrf.cc:19:
 /opt/local/include/gcc14/c++/bits/stl_function.h:131:12: note: declared
 here
   131 |     struct binary_function
       |            ^~~~~~~~~~~~~~~
 martinez.h:67:40: warning: 'template<class _Arg1, class _Arg2, class
 _Result> struct std::binary_function' is deprecated [-Wdeprecated-
 declarations]
    67 |         struct SweepEventComp : public
 binary_function<SweepEvent*, SweepEvent*, bool> { // for sortening events
       |                                        ^~~~~~~~~~~~~~~
 /opt/local/include/gcc14/c++/bits/stl_function.h:131:12: note: declared
 here
   131 |     struct binary_function
       |            ^~~~~~~~~~~~~~~
 /opt/local/bin/g++-mp-14 -I/opt/local/include/octave-10.1.0/octave/..
 -I/opt/local/include/octave-10.1.0/octave -I/opt/local/include  -pthread
 -pipe -Os -std=gnu++17 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc  -o
 polybool_mrf.oct  connector.o martinez.o polygon.o utilities.o
 /opt/local/var/macports/build/_opt_local_ppcports_octave_octave-geometry
 /octave-geometry/work/.tmp/oct-mnDg4X.o   -bundle -undefined
 dynamic_lookup -bind_at_load -L/opt/local/lib/octave/10.x.x
 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc
 -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport
 -Wl,-rpath,/opt/local/lib/libgcc -arch ppc -L/opt/local/lib/octave/10.1.0
 -loctinterp -loctave
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/72438#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list