Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-1664

dev-python/mysql-python-1.2.5-r1000 error: #error <my_config.h> MUST be included first!

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      [ebuild  N    ] dev-python/mysql-python-1.2.5-r1000  USE="-doc" PYTHON_ABIS="2.7 -2.6 -2.7-pypy-2.0"
      
       * Package:    dev-python/mysql-python-1.2.5-r1000
       * Repository: gentoo
       * USE:        amd64 elibc_glibc kernel_linux python_abis_2.7 userland_GNU
       * FEATURES:   preserve-libs sandbox
      >>> Unpacking source...
      >>> Unpacking MySQL-python-1.2.5.zip to /var/tmp/portage/dev-python/mysql-python-1.2.5-r1000/work
      >>> Source unpacked in /var/tmp/portage/dev-python/mysql-python-1.2.5-r1000/work
      >>> Preparing source in /var/tmp/portage/dev-python/mysql-python-1.2.5-r1000/work/MySQL-python-1.2.5 ...
      >>> Source prepared.
      >>> Configuring source in /var/tmp/portage/dev-python/mysql-python-1.2.5-r1000/work/MySQL-python-1.2.5 ...
      >>> Source configured.
      >>> Compiling source in /var/tmp/portage/dev-python/mysql-python-1.2.5-r1000/work/MySQL-python-1.2.5 ...
       * Building of dev-python/mysql-python-1.2.5-r1000 with CPython 2.7...
      python2.7 setup.py build -b build-2.7
      running build
      running build_py
      creating build-2.7
      creating build-2.7/lib.linux-x86_64-2.7
      copying _mysql_exceptions.py -> build-2.7/lib.linux-x86_64-2.7
      creating build-2.7/lib.linux-x86_64-2.7/MySQLdb
      copying MySQLdb/__init__.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb
      copying MySQLdb/converters.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb
      copying MySQLdb/connections.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb
      copying MySQLdb/cursors.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb
      copying MySQLdb/release.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb
      copying MySQLdb/times.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb
      creating build-2.7/lib.linux-x86_64-2.7/MySQLdb/constants
      copying MySQLdb/constants/__init__.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb/constants
      copying MySQLdb/constants/CR.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb/constants
      copying MySQLdb/constants/FIELD_TYPE.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb/constants
      copying MySQLdb/constants/ER.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb/constants
      copying MySQLdb/constants/FLAG.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb/constants
      copying MySQLdb/constants/REFRESH.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb/constants
      copying MySQLdb/constants/CLIENT.py -> build-2.7/lib.linux-x86_64-2.7/MySQLdb/constants
      warning: build_py: byte-compiling is disabled, skipping.
      
      running build_ext
      building '_mysql' extension
      creating build-2.7/temp.linux-x86_64-2.7
      x86_64-pc-linux-gnu-gcc -pthread -march=x86-64 -mtune=atom -O2 -pipe -fno-strict-aliasing -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build-2.7/temp.linux-x86_64-2.7/_mysql.o -DNDEBUG
      In file included from _mysql.c:44:0:
      /usr/include/mysql/my_config.h:439:0: warning: "HAVE_WCSCOLL" redefined [enabled by default]
       #define HAVE_WCSCOLL
       ^
      In file included from /usr/include/python2.7/Python.h:8:0,
                       from _mysql.c:29:
      /usr/include/python2.7/pyconfig.h:911:0: note: this is the location of the previous definition
       #define HAVE_WCSCOLL 1
       ^
      In file included from _mysql.c:44:0:
      /usr/include/mysql/my_config.h:654:2: error: #error <my_config.h> MUST be included first!
       #error <my_config.h> MUST be included first!
        ^
      error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
       * ERROR: dev-python/mysql-python-1.2.5-r1000 failed (compile phase):
       *   Building failed with CPython 2.7 in distutils_building() function
       *
       * Call stack:
       *     ebuild.sh, line   93:  Called src_compile
       *   environment, line 3775:  Called distutils_src_compile
       *   environment, line 1147:  Called python_execute_function 'distutils_building'
       *   environment, line 1883:  Called die
       * The specific snippet of code:
       *                       die "${_python[failure_message]}";
       *
       * If you need support, post the output of `emerge --info '=dev-python/mysql-python-1.2.5-r1000'`,
       * the complete build log and the output of `emerge -pqv '=dev-python/mysql-python-1.2.5-r1000'`.
       * The complete build log is located at '/var/tmp/portage/dev-python/mysql-python-1.2.5-r1000/temp/build.log'.
       * The ebuild environment file is located at '/var/tmp/portage/dev-python/mysql-python-1.2.5-r1000/temp/environment'.
       * Working directory: '/var/tmp/portage/dev-python/mysql-python-1.2.5-r1000/work/MySQL-python-1.2.5'
       * S: '/var/tmp/portage/dev-python/mysql-python-1.2.5-r1000/work/MySQL-python-1.2.5'
      

      The attached patch, which simply moves around the order of dependencies, fixes it.

            mitzip mitzip [X] (Inactive)
            arrta arrta
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: