[Fdo-trac] [fdo-trac] #956: Build errors in GCC 7.x
FDO
trac_fdo at osgeo.org
Fri May 18 05:24:57 PDT 2018
#956: Build errors in GCC 7.x
--------------------------+------------------------
Reporter: jng | Owner: jng
Type: defect | Status: assigned
Priority: major | Milestone:
Component: Build System | Version:
Severity: 3 | Resolution:
Keywords: | External ID:
--------------------------+------------------------
Description changed by jng:
Old description:
> I tried to build FDO trunk on Ubuntu 18.04 LTS, which includes GCC 7.x
> but it fails due to the following:
>
> * General: Errors of the form {{{invalid conversion from ‘wchar_t’ to
> ‘wchar_t*’}}} in {{{'\0'}}} assignment due to {{{-fpermissive}}}. Fix:
> Fix up the incorrect assignments.
> * MySQL Driver: The {{{<string>}}} header included in {{{stdafx.h}}} now
> complains about {{{errno}}} due to finding {{{errno.h}}} in the MySQL
> Driver directory before {{{<cerrno>}}}. Fix: Rather that fight with
> include path precedence, just rename {{{errno.h}}} to {{{drv_errno.h}}}
> so {{{<string>}}} will properly resolve errno in {{{<cerrno>}}}
> * King Oracle:
> {{{Providers/KingOracle/src/Provider/c_FdoOra_API3.cpp:104:14: error:
> cannot convert ‘bool’ to ‘c_MapOraNameToFdoClass::s_data*’ in return}}}.
> Fix: Return {{{NULL}}} instead of {{{false}}}
New description:
I tried to build FDO trunk on Ubuntu 18.04 LTS, which includes GCC 7.x but
it fails due to the following:
* General: Errors of the form {{{invalid conversion from ‘wchar_t’ to
‘wchar_t*’}}} in {{{'\0'}}} assignment due to {{{-fpermissive}}}. Fix: Fix
up the incorrect assignments.
* General: Various cases of improper null terminator checking {{{error:
ISO C++ forbids comparison between pointer and integer [-fpermissive]}}}.
Fix: Fix up the incorrect checks.
* MySQL Driver: The {{{<string>}}} header included in {{{stdafx.h}}} now
complains about {{{errno}}} due to finding {{{errno.h}}} in the MySQL
Driver directory before {{{<cerrno>}}}. Fix: Rather that fight with
include path precedence, just rename {{{errno.h}}} to {{{drv_errno.h}}} so
{{{<string>}}} will properly resolve errno in {{{<cerrno>}}}
* King Oracle:
{{{Providers/KingOracle/src/Provider/c_FdoOra_API3.cpp:104:14: error:
cannot convert ‘bool’ to ‘c_MapOraNameToFdoClass::s_data*’ in return}}}.
Fix: Return {{{NULL}}} instead of {{{false}}}
--
--
Ticket URL: <https://trac.osgeo.org/fdo/ticket/956#comment:3>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list