Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-1516

saslwrapper fails srpm rebuild if /usr/bin/python is python3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Minor Minor
    • None
    • 2.4.0.GA
    • productization
    • Hide

      update-alternatives --set python /usr/bin/python2

      Show
      update-alternatives --set python /usr/bin/python2

      rpmbuild --rebuild   --define "dist .el8"  --define '_topdir /usr/src/redhat' --target=x86_64 --rcfile /tmp/tps_rpmrc_sPgHiB:/usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc src/saslwrapper-0.22-5.el8.src.rpm
      
      [...]
      
      configure: SWIG library directory is '/usr/share/swig/3.0.12'
      checking for ruby1.8... no
      checking for ruby... /usr/bin/ruby
      Traceback (most recent call last):
      -e:1:in `<main>': uninitialized constant Config (NameError)
      Did you mean?  RbConfig
      
      [...]
      
      checking for python... /usr/bin/python
      checking for python version... 3.6
      checking for python platform... linux
      
      [...]
      
      libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I/usr/include/python3.6m -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c saslwrapper.cpp  -fPIC -DPIC -o .libs/_saslwrapper_la-saslwrapper.o
      saslwrapper.cpp: In function 'PyObject* _wrap_Client_setAttr__SWIG_1(PyObject*, PyObject*)':
      saslwrapper.cpp:4778:25: error: 'PyInt_AsUnsignedLongMask' was not declared in this scope
             arg3 = (uint32_t) PyInt_AsUnsignedLongMask(obj2);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
      saslwrapper.cpp:4778:25: note: suggested alternative: 'PyLong_AsUnsignedLongMask'
             arg3 = (uint32_t) PyInt_AsUnsignedLongMask(obj2);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
                               PyLong_AsUnsignedLongMask
      saslwrapper.cpp: In function 'PyObject* _wrap_Client_start(PyObject*, PyObject*)':
      saslwrapper.cpp:4917:9: error: 'PyString_FromStringAndSize' was not declared in this scope
           o = PyString_FromStringAndSize(arg3->c_str(), arg3->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
      saslwrapper.cpp:4917:9: note: suggested alternative: 'PyBytes_FromStringAndSize'
           o = PyString_FromStringAndSize(arg3->c_str(), arg3->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
               PyBytes_FromStringAndSize
      saslwrapper.cpp:4937:9: error: 'PyString_FromStringAndSize' was not declared in this scope
           o = PyString_FromStringAndSize(arg4->c_str(), arg4->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
      saslwrapper.cpp:4937:9: note: suggested alternative: 'PyBytes_FromStringAndSize'
           o = PyString_FromStringAndSize(arg4->c_str(), arg4->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
               PyBytes_FromStringAndSize
      saslwrapper.cpp: In function 'PyObject* _wrap_Client_step(PyObject*, PyObject*)':
      saslwrapper.cpp:5000:9: error: 'PyString_FromStringAndSize' was not declared in this scope
           o = PyString_FromStringAndSize(arg3->c_str(), arg3->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
      saslwrapper.cpp:5000:9: note: suggested alternative: 'PyBytes_FromStringAndSize'
           o = PyString_FromStringAndSize(arg3->c_str(), arg3->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
               PyBytes_FromStringAndSize
      saslwrapper.cpp: In function 'PyObject* _wrap_Client_encode(PyObject*, PyObject*)':
      saslwrapper.cpp:5063:9: error: 'PyString_FromStringAndSize' was not declared in this scope
           o = PyString_FromStringAndSize(arg3->c_str(), arg3->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
      saslwrapper.cpp:5063:9: note: suggested alternative: 'PyBytes_FromStringAndSize'
           o = PyString_FromStringAndSize(arg3->c_str(), arg3->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
               PyBytes_FromStringAndSize
      saslwrapper.cpp: In function 'PyObject* _wrap_Client_decode(PyObject*, PyObject*)':
      saslwrapper.cpp:5126:9: error: 'PyString_FromStringAndSize' was not declared in this scope
           o = PyString_FromStringAndSize(arg3->c_str(), arg3->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
      saslwrapper.cpp:5126:9: note: suggested alternative: 'PyBytes_FromStringAndSize'
           o = PyString_FromStringAndSize(arg3->c_str(), arg3->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
               PyBytes_FromStringAndSize
      saslwrapper.cpp: In function 'PyObject* _wrap_Client_getUserId(PyObject*, PyObject*)':
      saslwrapper.cpp:5175:9: error: 'PyString_FromStringAndSize' was not declared in this scope
           o = PyString_FromStringAndSize(arg2->c_str(), arg2->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
      saslwrapper.cpp:5175:9: note: suggested alternative: 'PyBytes_FromStringAndSize'
           o = PyString_FromStringAndSize(arg2->c_str(), arg2->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
               PyBytes_FromStringAndSize
      saslwrapper.cpp: In function 'PyObject* _wrap_Client_getError(PyObject*, PyObject*)':
      saslwrapper.cpp:5221:9: error: 'PyString_FromStringAndSize' was not declared in this scope
           o = PyString_FromStringAndSize(arg2->c_str(), arg2->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
      saslwrapper.cpp:5221:9: note: suggested alternative: 'PyBytes_FromStringAndSize'
           o = PyString_FromStringAndSize(arg2->c_str(), arg2->length());
               ^~~~~~~~~~~~~~~~~~~~~~~~~~
               PyBytes_FromStringAndSize
      make[3]: *** [Makefile:517: _saslwrapper_la-saslwrapper.lo] Error 1
      make[3]: Leaving directory '/usr/src/redhat/BUILD/saslwrapper-0.22/python'
      make[2]: *** [Makefile:402: all] Error 2
      make[2]: Leaving directory '/usr/src/redhat/BUILD/saslwrapper-0.22/python'
      make[1]: *** [Makefile:458: all-recursive] Error 1
      make[1]: Leaving directory '/usr/src/redhat/BUILD/saslwrapper-0.22'
      make: *** [Makefile:390: all] Error 2
      error: Bad exit status from /var/tmp/rpm-tmp.by49G7 (%build)
      

              iboverma Irina Boverman (Inactive)
              jdanek@redhat.com Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: