[SIP Beyond VoIP] Error compiling python-sipclient

Paulo Fidalgo o.kanniball.o at gmail.com
Tue Sep 6 16:11:28 CEST 2011


Following the instructions, I can't compile the latest code from repository.

Any hint?


Thanks for your attention!


[fidalgo at wit python-sipsimple]$ darcs pull -a

Pulling from "http://devel.ag-projects.com/repositories/python-sipsimple"...

No remote changes to pull in!

[fidalgo at wit python-sipsimple]$ python setup.py build_ext --pjsip-clean-compile

running build_ext

Cleaning PJSIP

Fetching PJSIP

Patching PJSIP

Patching PortAudio

Configuring PJSIP

Compiling PJSIP

cythoning sipsimple/core/_core.pyx to sipsimple/core/_core.c

warning: sipsimple/core/_core.pxd:32:4: list already a builtin Cython type

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.lib.pxi:70:56: local variable 'resolver' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.sound.pxi:497:83: local variable 'slot' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.request.pxi:266:95: local variable 'tdata_auth' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.request.pxi:278:80: local variable 'tsx_auth' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.subscription.pxi:217:74: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.subscription.pxi:632:80: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:163:81: local variable 'sdp' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:217:102: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:233:102: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:262:89: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:390:75: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:475:59: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:519:83: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:561:73: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:602:93: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:683:78: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:933:85: local variable 'sdp' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:937:84: local variable 'sdp' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:1016:79: local variable 'sdp' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:1090:83: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:1165:91: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.invitation.pxi:1463:92: local variable 'answer_tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.referral.pxi:240:78: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.referral.pxi:262:74: local variable 'tdata' referenced before assignment

Error compiling Cython file:

------------------------------------------------------------

...

         else:

             return ua

     cdef int _set_content(self, int code, str reason) except -1:

         cdef str content

         if status is None:

                  ^

------------------------------------------------------------

/mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.referral.pxi:612:18: local variable 'status' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.referral.pxi:664:80: local variable 'tdata' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.mediatransport.pxi:552:104: local variable 'local_sdp_c' referenced before assignment

warning: /mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.mediatransport.pxi:834:79: local variable 'media_port' referenced before assignment

Error compiling Cython file:

------------------------------------------------------------

...

             with nogil:

                 pjmedia_transport_media_stop(transport)

         if self._obj != NULL:

             with nogil:

                 pjmedia_transport_close(transport)

             if self._obj.type == PJMEDIA_TRANSPORT_TYPE_ICE:

                              ^

------------------------------------------------------------

/mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.mediatransport.pxi:73:30: Invalid types for '==' (pjmedia_transport_type, pjmedia_transport_type)

Error compiling Cython file:

------------------------------------------------------------

...

             with nogil:

                 pjmedia_transport_close(transport)

             if self._obj.type == PJMEDIA_TRANSPORT_TYPE_ICE:

                 (<void **>  (self._obj.name + 1))[0] = NULL

             if self._wrapped_transport != NULL:

                 if self._wrapped_transport.type == PJMEDIA_TRANSPORT_TYPE_ICE:

                                                ^

------------------------------------------------------------

/mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.mediatransport.pxi:76:48: Invalid types for '==' (pjmedia_transport_type, pjmedia_transport_type)

Error compiling Cython file:

------------------------------------------------------------

...

                 if self._wrapped_transport.type == PJMEDIA_TRANSPORT_TYPE_ICE:

                     (<void **>  (self._obj.name + 1))[0] = NULL

                 self._wrapped_transport = NULL

             self._obj = NULL

         if self._wrapped_transport != NULL:

             if self._wrapped_transport.type == PJMEDIA_TRANSPORT_TYPE_ICE:

                                            ^

------------------------------------------------------------

/mnt/disk/workspace/SIPSIMPLE/python-sipsimple/sipsimple/core/_core.mediatransport.pxi:81:44: Invalid types for '==' (pjmedia_transport_type, pjmedia_transport_type)

building 'sipsimple.core._core' extension

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPJ_AUTOCONF=1 -DPJ_SVN_REVISION=3687 -I/mnt/disk/workspace/SIPSIMPLE/python-sipsimple/build/temp.linux-x86_64-2.7/pjsip/pjlib/include -I/mnt/disk/workspace/SIPSIMPLE/python-sipsimple/build/temp.linux-x86_64-2.7/pjsip/pjlib-util/include -I/mnt/disk/workspace/SIPSIMPLE/python-sipsimple/build/temp.linux-x86_64-2.7/pjsip/pjnath/include -I/mnt/disk/workspace/SIPSIMPLE/python-sipsimple/build/temp.linux-x86_64-2.7/pjsip/pjmedia/include -I/mnt/disk/workspace/SIPSIMPLE/python-sipsimple/build/temp.linux-x86_64-2.7/pjsip/pjsip/include -I/usr/include/python2.7 -c sipsimple/core/_core.c -o build/temp.linux-x86_64-2.7/sipsimple/core/_core.o -Wno-unused-variable

sipsimple/core/_core.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.

error: command 'gcc' failed with exit status 1




More information about the SIPBeyondVoIP mailing list