Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Not building with boost 1.53 #1768

Closed
cmyk opened this Issue Mar 19, 2013 · 9 comments

Comments

Projects
None yet
3 participants

cmyk commented Mar 19, 2013

I am trying to build on centos 6.
Have all the necessary dependencies but it seems to have trouble with boost 1.53?

/usr/local/include/boost/phoenix/object/construct.hpp:24: error: 'struct boost::phoenix::tag::construct' is not a function,
/usr/local/include/boost/phoenix/object/detail/preprocessed/construct_10.hpp:171: error: conflict with 'template<class T, class A0, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9> const typename boost::phoenix::expression::constructboost::phoenix::detail::target<T, A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, void>::type boost::phoenix::construct(const A0&, const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&, const A8&, const A9&)'
include/mapnik/json/feature_collection_grammar.hpp:90: error: in call to 'construct'
scons: *** [src/json/feature_collection_parser.os] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2

Owner

springmeyer commented Mar 19, 2013

what g++ version are you using? g++ -v

cmyk commented Mar 19, 2013

gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)

cmyk commented Mar 19, 2013

Installed boost 1.49.
mapnik compiled but the make test-local failed:
[root@xyz mapnik]# make test-local *** Boostrapping local test environment... make[1]: Entering directory/tmp/mapnik'
*** Running visual tests...
Traceback (most recent call last):
File "tests/visual_tests/test.py", line 4, in
import mapnik
File "/tmp/mapnik/bindings/python/mapnik/init.py", line 1027, in
register_plugins()
File "/tmp/mapnik/bindings/python/mapnik/init.py", line 1012, in register_plugins
DatasourceCache.register_datasources(path)
RuntimeError: locale::facet::_S_create_c_locale name not valid
*** Running C++ tests...
C++ AGG blending: ✓
C++ clipping: ✓
C++ type conversions: ✓
C++ CSV parse: ✓
C++ exceptions: ✓
C++ fonts registration problem: locale::facet::_S_create_c_locale name not valid
tests/cpp_tests/font_registration_test.cpp(79): test 'false' failed in function 'int main(int, char**)'
1 error detected.
C++ fontset runtime: ✓
C++ geometry conversions: ✓
C++ label algorithms: ✓
locale::facet::_S_create_c_locale name not valid
C++ Map Request rendering hook: ✓
C++ parameters: ✓
*** Running python tests...
Traceback (most recent call last):
File "tests/run_tests.py", line 11, in
from python_tests.utilities import TodoPlugin
File "/tmp/mapnik/tests/python_tests/utilities.py", line 7, in
import mapnik
File "/tmp/mapnik/bindings/python/mapnik/init.py", line 1027, in
register_plugins()
File "/tmp/mapnik/bindings/python/mapnik/init.py", line 1012, in register_plugins
DatasourceCache.register_datasources(path)
RuntimeError: locale::facet::_S_create_c_locale name not valid
make[1]: *** [test] Error 3
make[1]: Leaving directory /tmp/mapnik' make: *** [test-local] Error 2

Owner

springmeyer commented Mar 19, 2013

Looks like you have a broken locale on your system. See https://www.centos.org/modules/newbb/viewtopic.php?topic_id=37893 for some details of other symptoms this gives.

cmyk commented Mar 19, 2013

ran export LC_ALL=C and then python run_tests.py
Got this:

======================================================================
FAIL: python_tests.feature_test.test_python_extended_constructor
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
    self.test(*self.arg)
  File "/tmp/mapnik/tests/python_tests/feature_test.py", line 26, in test_python_extended_constructor
    eq_(f['foo'], u"avión")
  File "/usr/lib/python2.6/site-packages/nose/tools.py", line 31, in eq_
    assert a == b, msg or "%r != %r" % (a, b)
AssertionError: u'avi\ufffd\ufffdn' != u'avi\xf3n'

======================================================================
FAIL: python_tests.filter_test.test_unicode_regex_match
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
    self.test(*self.arg)
  File "/tmp/mapnik/tests/python_tests/filter_test.py", line 150, in test_unicode_regex_match
    eq_(expr.evaluate(f),True) # 1 == True
  File "/usr/lib/python2.6/site-packages/nose/tools.py", line 31, in eq_
    assert a == b, msg or "%r != %r" % (a, b)
AssertionError: False != True

======================================================================
FAIL: python_tests.filter_test.test_unicode_regex_replace
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
    self.test(*self.arg)
  File "/tmp/mapnik/tests/python_tests/filter_test.py", line 171, in test_unicode_regex_replace
    eq_(expr.evaluate(f), u'Q u é b e c')
  File "/usr/lib/python2.6/site-packages/nose/tools.py", line 31, in eq_
    assert a == b, msg or "%r != %r" % (a, b)
AssertionError: u'Q u\ufffd \ufffdb e c' != u'Q u \xe9 b e c'

======================================================================
FAIL: python_tests.image_filters_test.test_style_level_image_filter
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
    self.test(*self.arg)
  File "/tmp/mapnik/tests/python_tests/image_filters_test.py", line 64, in test_style_level_image_filter
    eq_(len(fails), 0, '\n'+'\n'.join(fails))
  File "/usr/lib/python2.6/site-packages/nose/tools.py", line 31, in eq_
    assert a == b, msg or "%r != %r" % (a, b)
AssertionError: 
failed comparing actual (/tmp/mapnik-style-image-filter-none.png) and expected(tests/python_tests/images/style-image-filter/none.png)
failed comparing actual (/tmp/mapnik-style-image-filter-agg-stack-blur22.png) and expected(tests/python_tests/images/style-image-filter/agg-stack-blur22.png)
failed comparing actual (/tmp/mapnik-style-image-filter-blur.png) and expected(tests/python_tests/images/style-image-filter/blur.png)
failed comparing actual (/tmp/mapnik-style-image-filter-edge-detect.png) and expected(tests/python_tests/images/style-image-filter/edge-detect.png)
failed comparing actual (/tmp/mapnik-style-image-filter-emboss.png) and expected(tests/python_tests/images/style-image-filter/emboss.png)
failed comparing actual (/tmp/mapnik-style-image-filter-gray.png) and expected(tests/python_tests/images/style-image-filter/gray.png)
failed comparing actual (/tmp/mapnik-style-image-filter-invert.png) and expected(tests/python_tests/images/style-image-filter/invert.png)
failed comparing actual (/tmp/mapnik-style-image-filter-sharpen.png) and expected(tests/python_tests/images/style-image-filter/sharpen.png)
failed comparing actual (/tmp/mapnik-style-image-filter-sobel.png) and expected(tests/python_tests/images/style-image-filter/sobel.png)
failed comparing actual (/tmp/mapnik-style-image-filter-x-gradient.png) and expected(tests/python_tests/images/style-image-filter/x-gradient.png)
failed comparing actual (/tmp/mapnik-style-image-filter-y-gradient.png) and expected(tests/python_tests/images/style-image-filter/y-gradient.png)

======================================================================
FAIL: python_tests.python_plugin_test.test_python_point_rendering
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
    self.test(*self.arg)
  File "/tmp/mapnik/tests/python_tests/python_plugin_test.py", line 139, in test_python_point_rendering
    'failed comparing actual (%s) and expected (%s)' % (actual,'tests/python_tests/'+ expected))
  File "/usr/lib/python2.6/site-packages/nose/tools.py", line 31, in eq_
    assert a == b, msg or "%r != %r" % (a, b)
AssertionError: failed comparing actual (/tmp/mapnik-python-point-render1.png) and expected (tests/python_tests/images/support/mapnik-python-point-render1.png)

----------------------------------------------------------------------
Ran 524 tests in 17.877s

FAILED (TODO=5, failures=5)
Owner

springmeyer commented Mar 19, 2013

looks good, those are expected failures due to differing gdal and freetype versions (older) that what we develop against.

Owner

springmeyer commented Apr 8, 2013

original issue is now fixed in #1787

@springmeyer springmeyer closed this Apr 8, 2013

python2.6 scons/scons.py install

I run that above command in centos 6...

I get the following error...

"-lboost_python
/usr/bin/ld: cannot find -lboost_python
collect2: ld returned 1 exit status
scons: *** [bindings/python/_mapnik.so] Error 1
scons: building terminated because of errors."

I used mapnik-0.7.1, boost-1.43, proj-4.7.0 and python 2.6.5

Owner

springmeyer commented Jun 26, 2013

ignoring the above comment since @vspriyan also created #1925

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment