[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[DebianGIS] tracking down the bottleneck



Hi,

I'm trying to find why sparc builds of gdal are holding everything from
sifting through to testing.

in part gdal seems to be waiting for geos which seems fine except for:
  http://release.debian.org/migration/testing.pl?package=osm2pgsql
  "osm2pgsql has the same version in unstable and testing"
which I don't really understand.


gdal failed to build on sparc on May 10 with:
 https://buildd.debian.org/fetch.cgi?&pkg=gdal&ver=1.5.4-3&arch=sparc&stamp=1241984804&file=log

 https://buildd.debian.org/stats/sparc-all.txt
   search for "science/gdal_1.5.4-3:"


make[4]: Entering directory `/build/buildd/gdal-1.5.4/ogr/ogrsf_frmts/mysql'
/bin/sh /build/buildd/gdal-1.5.4/libtool --mode=compile --tag=CXX g++ -g -O2  -Wall  -I.. -I../.. -I/build/buildd/gdal-1.5.4/port -I/build/buildd/gdal-1.5.4/gcore -I/build/buildd/gdal-1.5.4/alg -I/build/buildd/gdal-1.5.4/ogr -I/build/buildd/gdal-1.5.4/ogr/ogrsf_frmts -I/usr/include/mysql -DOGR_ENABLED -I/build/buildd/gdal-1.5.4/port  -c -o ../o/ogrmysqldriver.o ogrmysqldriver.cpp
libtool: compile:  g++ -g -O2 -Wall -I.. -I../.. -I/build/buildd/gdal-1.5.4/port -I/build/buildd/gdal-1.5.4/gcore -I/build/buildd/gdal-1.5.4/alg -I/build/buildd/gdal-1.5.4/ogr -I/build/buildd/gdal-1.5.4/ogr/ogrsf_frmts -I/usr/include/mysql -DOGR_ENABLED -I/build/buildd/gdal-1.5.4/port -c ogrmysqldriver.cpp  -fPIC -DPIC -o ../o/.libs/ogrmysqldriver.o
In file included from /usr/include/c++/4.3/bits/char_traits.h:46,
                 from /usr/include/c++/4.3/string:47,
                 from /build/buildd/gdal-1.5.4/port/cpl_string.h:136,
                 from ../../ogr_featurestyle.h:34,
                 from ../../ogr_feature.h:34,
                 from ../ogrsf_frmts.h:33,
                 from ogr_mysql.h:41,
                 from ogrmysqldriver.cpp:30:
/usr/include/c++/4.3/bits/stl_algobase.h:232:56: error: macro "min" passed 3 arguments, but takes just 2
/usr/include/c++/4.3/bits/stl_algobase.h:252:56: error: macro "max" passed 3 arguments, but takes just 2
In file included from /usr/include/c++/4.3/bits/char_traits.h:46,
                 from /usr/include/c++/4.3/string:47,
                 from /build/buildd/gdal-1.5.4/port/cpl_string.h:136,
                 from ../../ogr_featurestyle.h:34,
                 from ../../ogr_feature.h:34,
                 from ../ogrsf_frmts.h:33,
                 from ogr_mysql.h:41,
                 from ogrmysqldriver.cpp:30:
/usr/include/c++/4.3/bits/stl_algobase.h:188: error: expected unqualified-id before 'const'
/usr/include/c++/4.3/bits/stl_algobase.h:188: error: expected `)' before 'const'
/usr/include/c++/4.3/bits/stl_algobase.h:188: error: expected `)' before 'const'
/usr/include/c++/4.3/bits/stl_algobase.h:188: error: expected initializer before 'const'
/usr/include/c++/4.3/bits/stl_algobase.h:210: error: expected unqualified-id before 'const'
/usr/include/c++/4.3/bits/stl_algobase.h:210: error: expected `)' before 'const'
/usr/include/c++/4.3/bits/stl_algobase.h:210: error: expected `)' before 'const'
/usr/include/c++/4.3/bits/stl_algobase.h:210: error: expected initializer before 'const'
/usr/include/c++/4.3/bits/stl_algobase.h:232: error: function definition does not declare parameters
/usr/include/c++/4.3/bits/stl_algobase.h:252: error: function definition does not declare parameters
/usr/include/c++/4.3/bits/stl_algobase.h: In static member function 'static bool std::__lexicographical_compare<true>::__lc(const _Tp*, const _Tp*, const _Up*, const _Up*)':
/usr/include/c++/4.3/bits/stl_algobase.h:904: error: expected unqualified-id before '(' token
In file included from /usr/include/c++/4.3/string:58,
                 from /build/buildd/gdal-1.5.4/port/cpl_string.h:136,
                 from ../../ogr_featurestyle.h:34,
                 from ../../ogr_feature.h:34,
                 from ../ogrsf_frmts.h:33,
                 from ogr_mysql.h:41,
                 from ogrmysqldriver.cpp:30:
/usr/include/c++/4.3/bits/basic_string.h: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(const std::basic_string<_CharT, _Traits, _Alloc>&) const':
/usr/include/c++/4.3/bits/basic_string.h:1945: error: expected unqualified-id before '(' token
In file included from /usr/include/c++/4.3/string:61,
                 from /build/buildd/gdal-1.5.4/port/cpl_string.h:136,
                 from ../../ogr_featurestyle.h:34,
                 from ../../ogr_feature.h:34,
                 from ../ogrsf_frmts.h:33,
                 from ogr_mysql.h:41,
                 from ogrmysqldriver.cpp:30:
/usr/include/c++/4.3/bits/basic_string.tcc: In member function 'typename std::basic_string<_CharT, _Traits, _Alloc>::size_type std::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT*, typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type) const':
/usr/include/c++/4.3/bits/basic_string.tcc:759: error: expected unqualified-id before '(' token
/usr/include/c++/4.3/bits/basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&) const':
/usr/include/c++/4.3/bits/basic_string.tcc:896: error: expected unqualified-id before '(' token
/usr/include/c++/4.3/bits/basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&, typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type) const':
/usr/include/c++/4.3/bits/basic_string.tcc:913: error: expected unqualified-id before '(' token
/usr/include/c++/4.3/bits/basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const':
/usr/include/c++/4.3/bits/basic_string.tcc:929: error: expected unqualified-id before '(' token
/usr/include/c++/4.3/bits/basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type, const _CharT*) const':
/usr/include/c++/4.3/bits/basic_string.tcc:945: error: expected unqualified-id before '(' token
/usr/include/c++/4.3/bits/basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type, const _CharT*, typename _Alloc::rebind<_CharT>::other::size_type) const':
/usr/include/c++/4.3/bits/basic_string.tcc:961: error: expected unqualified-id before '(' token
make[4]: *** [../o/ogrmysqldriver.o] Error 1
make[4]: Leaving directory `/build/buildd/gdal-1.5.4/ogr/ogrsf_frmts/mysql'
make[3]: *** [mysql-target] Error 2
make[3]: Leaving directory `/build/buildd/gdal-1.5.4/ogr/ogrsf_frmts'
make[2]: *** [sublibs] Error 2
make[2]: Leaving directory `/build/buildd/gdal-1.5.4/ogr'
make[1]: *** [ogr-target] Error 2
make[1]: Leaving directory `/build/buildd/gdal-1.5.4'
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20090510-1945
FAILED [dpkg-buildpackage died]



which is probably explained by this:
  https://trac.osgeo.org/gdal/changeset/16922
  +/* my_global.h from mysql 5.1 declares the min and max macros. */
  +/* This conflicts with templates in g++-4.3.2 header files. Grrr */

and so solved by this patch:
  https://trac.osgeo.org/gdal/changeset/16922?format=diff&new=16922



Hamish



Reply to: