[MacPorts] #53309: QGIS @2_18_2_2: error: virtual function 'dataType' has a different return type ('int') than the function it overrides (which has return type 'QGis::DataType') (was: QGIS fails to compile with CHILDSTATUS error code)

MacPorts noreply at macports.org
Sat Jan 14 07:20:21 UTC 2017


#53309: QGIS @2_18_2_2: error: virtual function 'dataType' has a different return
type ('int') than the function it overrides (which has return type
'QGis::DataType')
-----------------------+----------------------
  Reporter:  paul0207  |      Owner:  Veence
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.5
Resolution:            |   Keywords:
      Port:  QGIS      |
-----------------------+----------------------
Changes (by ryandesign):

 * status:  new => assigned
 * cc: Veence (removed)
 * owner:   => Veence
 * port:  QGIS-2_18_2_2 => QGIS


Old description:

> When I try to compile QGIS the installation fails with:
> :info:build Exit code: 2
> :error:build org.macports.build for port QGIS returned: command execution
> failed
> :debug:build Error code: CHILDSTATUS 56716 2
>
> After uninstalling all ports and MacPorts directories and reinstalling it
> the problem persists.
> I have attached the main.log file. Thanks.

New description:

 When I try to compile QGIS the installation fails with:
 {{{
 :info:build Exit code: 2
 :error:build org.macports.build for port QGIS returned: command execution
 failed
 :debug:build Error code: CHILDSTATUS 56716 2
 }}}

 After uninstalling all ports and MacPorts directories and reinstalling it
 the problem persists.
 I have attached the main.log file. Thanks.

--

Comment:

 Looks the error in the log is:

 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work
 /QGIS-2_18_2/build/python/core/sip_corepart1.cpp:86260:9: error: virtual
 function 'dataType' has a different return type ('int') than the function
 it overrides (which has return type 'QGis::DataType')
 :info:build     int dataType(int) const;
 :info:build     ~~~ ^
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work
 /QGIS-2_18_2/python/../src/core/raster/qgsrasterprojector.h:101:20: note:
 overridden virtual function is here
 :info:build     QGis::DataType dataType( int bandNo ) const override;
 :info:build     ~~~~~~~~~~~~~~ ^
 }}}

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


More information about the macports-tickets mailing list