FTBFS with -Werror=format-security

Bug #881064 reported by Clint Byrum
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gdal
Fix Released
Unknown
gdal (Ubuntu)
Fix Released
Undecided
Clint Byrum

Bug Description

dodsdataset2.cpp: In static member function 'static GDALDataset* DODSDataset::Open(GDALOpenInfo*)':
dodsdataset2.cpp:1078:58: error: format not a string literal and no format arguments [-Werror=format-security]
dodsdataset2.cpp: In member function 'virtual CPLErr DODSRasterBand::IReadBlock(int, int, void*)':
dodsdataset2.cpp:1643:76: error: format not a string literal and no format arguments [-Werror=format-security]
cc1plus: some warnings being treated as errors

make[3]: *** [../o/dodsdataset2.lo] Error 1
make[3]: Leaving directory `/«PKGBUILDDIR»/frmts/dods'
make[2]: *** [dods-install-obj] Error 2
make[2]: Leaving directory `/«PKGBUILDDIR»/frmts'

and

ogrdodsdatasource.cpp: In member function 'int OGRDODSDataSource::Open(const char*)':
ogrdodsdatasource.cpp:159:48: error: format not a string literal and no format arguments [-Werror=format-security]
cc1plus: some warnings being treated as errors

make[4]: *** [../o/ogrdodsdatasource.lo] Error 1
make[4]: Leaving directory `/build/gdal-LRI9SY/gdal-1.7.3/ogr/ogrsf_frmts/dods'
make[3]: *** [dods-target] Error 2
make[3]: Leaving directory `/build/gdal-LRI9SY/gdal-1.7.3/ogr/ogrsf_frmts'
make[2]: *** [sublibs] Error 2
make[2]: Leaving directory `/build/gdal-LRI9SY/gdal-1.7.3/ogr'

also in the ruby/swig bindings

gdal_wrap.cpp: In function 'void Debug(const char*, const char*)':
gdal_wrap.cpp:1666:34: error: format not a string literal and no format arguments [-Werror=format-security]
gdal_wrap.cpp: In function 'void Error(CPLErr, int, const char*)':
gdal_wrap.cpp:1669:40: error: format not a string literal and no format arguments [-Werror=format-security]
gdal_wrap.cpp: In function 'VALUE _wrap_Driver_create(int, VALUE*, VALUE)':

Related branches

Changed in gdal (Ubuntu):
assignee: nobody → Clint Byrum (clint-fewbar)
status: New → In Progress
Changed in gdal:
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdal - 1.7.3-6ubuntu1

---------------
gdal (1.7.3-6ubuntu1) precise; urgency=low

  * Merge from debian testing, remaining changes:
    - d/control, d/rules, d/patches/fix-xerces: Patching m4 macro to
      find xerces properly with --as-needed. Added dh_autoreconf to
      pickup patches m4 macro.
  * debian/patches/format-security: patch to fix FTBFS with hardened
    flags such as -Werror=format-security (LP: #881064).
  * debian/rules: force rebuild of ruby swig wrapper to satisfy
    -Werror=format-security.

gdal (1.7.3-6) unstable; urgency=high

  * Added a dods patch to work only with libdap >= 3.10. Upstream recent
    versions manage multi-versioning and the dropped AISConnect class,
    but we are currently only interested in supporting wheezy libdap.
    (closes: #638367, #639066, #639179)
  * Now forces build-dep on libdap >= 3.10 as required.
  * Priority set to high to promote a fast transition into testing possibly.
  * Added missing new build-dep on librtmp-dev and uuid-dev.
 -- Clint Byrum <email address hidden> Mon, 24 Oct 2011 13:04:20 -0700

Changed in gdal (Ubuntu):
status: In Progress → Fix Released
Changed in gdal:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.