Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-617

Configure for Python breaks on Mac OS X 10.8.4

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.14.0
    • Fix Version/s: None
    • Component/s: build
    • Labels:
      None
    • Environment:

      Mac OS X 10.8.4
      Python 2.7.5
      Latest mesos trunk

      Description

      checking for Python include path... -I/opt/twitter/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7
      checking for Python library path... -L/opt/twitter/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib -lpython2.7
      checking for Python site-packages path... /opt/twitter/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
      checking python extra libraries... -ldl -framework CoreFoundation
      checking python extra linking flags... -u _PyMac_Error Python.framework/Versions/2.7/Python
      checking consistency of all components of python development environment... no
      configure: error:
      Could not link test program to Python. Maybe the main Python library has been
      installed in some non-standard library path. If so, pass it to configure,
      via the LDFLAGS environment variable.
      Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
      ============================================================================
      ERROR!
      You probably have to install the development version of the Python package
      for your distribution. The exact name of this package varies among them.
      ============================================================================

      The config.log output:

      configure:19433: /usr/bin/gcc-4.2 -o conftest -g -I/opt/twitter/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7 -L/opt/twitter/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib conftest.c -L/opt/twitter/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib -lpython2.7 -u _PyMac_Error Python.framework/Versions/2.7/Python -ldl -framework CoreFoundation >&5
      i686-apple-darwin11-gcc-4.2.1: Python.framework/Versions/2.7/Python: No such file or directory

        Activity

        Hide
        jieyu Jie Yu added a comment -

        Seems to be a python bug, see the following discussions:

        http://bugs.python.org/issue3588
        http://bugs.python.org/issue16848

        Show
        jieyu Jie Yu added a comment - Seems to be a python bug, see the following discussions: http://bugs.python.org/issue3588 http://bugs.python.org/issue16848
        Hide
        jieyu Jie Yu added a comment -

        Related to m4/ax_python_devel.m4 (line 264-269). The current implementation breaks on Python 2.7.5 because of a bug in this python release. See the following discussion:

        http://mac-os-forge.2317878.n4.nabble.com/MacPorts-39223-incorrect-flags-from-distutils-when-linking-against-python27-2-7-5-0-td218801.html

        Show
        jieyu Jie Yu added a comment - Related to m4/ax_python_devel.m4 (line 264-269). The current implementation breaks on Python 2.7.5 because of a bug in this python release. See the following discussion: http://mac-os-forge.2317878.n4.nabble.com/MacPorts-39223-incorrect-flags-from-distutils-when-linking-against-python27-2-7-5-0-td218801.html
        Hide
        jieyu Jie Yu added a comment -

        Work around is to use a different version of Python (Python 2.7.3 is tested and works).

        Show
        jieyu Jie Yu added a comment - Work around is to use a different version of Python (Python 2.7.3 is tested and works).
        Hide
        jieyu Jie Yu added a comment -

        It's a bug in other projects (autoconf and Python 2.7.5).

        Show
        jieyu Jie Yu added a comment - It's a bug in other projects (autoconf and Python 2.7.5).
        Hide
        tillt Till Toenshoff added a comment -

        Bug appears to persist in Python 2.7.6 (homebrew)

        Show
        tillt Till Toenshoff added a comment - Bug appears to persist in Python 2.7.6 (homebrew)

          People

          • Assignee:
            Unassigned
            Reporter:
            jieyu Jie Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development