[SIP Beyond VoIP] Source Compile / Install

David Hubbard david.hubbard at agenor.co.uk
Thu Sep 26 17:26:33 CEST 2013


An update

I have got a little further - I realised that my changing of header file to

  #define PJMEDIA_AUDIO_DEV_HAS_ALSA 0

was actually done part way through compile/link - so some code was 
compiled with this set to 1 (items using the factory rather than 
providing).

So I removed the simsimple folder and unpacked again

As this header appears to be generated by the PJSIP configure stage I 
killed the setup just after this stage and made the change again, before 
re-running setup and getting a clean compile/install.

Now when I run sylkserver I get

Starting SylkServer 2.5.0, with no configuration file
fatal error: failed to create SylkServer: cannot import name WeakSet
Traceback (most recent call last):
   File "./sylk-server", line 68, in main
     from sylk.server import SylkServer
   File "/tmp/sylkserver/sylk/server.py", line 13, in <module>
     from sipsimple.account import Account, BonjourAccount, AccountManager
   File 
"/usr/lib64/python2.6/site-packages/sipsimple/account/__init__.py", line 
25, in <module>
     from sipsimple.account.bonjour import BonjourServices, _bonjour
   File 
"/usr/lib64/python2.6/site-packages/sipsimple/account/bonjour/__init__.py", 
line 24, in <module>
     from sipsimple.configuration.settings import SIPSimpleSettings
   File 
"/usr/lib64/python2.6/site-packages/sipsimple/configuration/__init__.py", line 
15, in <module>
     from weakref import WeakSet
ImportError: cannot import name WeakSet

Clearly a dependancy I'm missing somewhere

I've found the "Dependencies.txt" and "Install.linux" docs in 
"./python-sipsimple-1.0.0/docs" - so I'm going to try a clean install 
following these a bit more closely for this module

Regards
David

On 26/09/2013 14:30, David Hubbard wrote:
> Hi
>
> I'm following the instructions at 
> <http://sylkserver.com/download.phtml> for Source Code based install.
>
> I'm doing this currently on Centos 6.4 as a test (with a view to also 
> deploying on Red Hat EL)
>
> I have hit a problem installing "python-sipsimple" via the tar package
>
> I am building using "python setup.py install"    (which I have deduced 
> is the way these modules are normally built) - is this correct?
>
> Build Error (a cut here)
>
>     ar: creating ../lib/libpjmedia-videodev-x86_64-unknown-linux-gnu.a
>
>     ../src/pjmedia-audiodev/alsa_dev.c:37:28: error: alsa/asoundlib.h:
>     No such file or directory
>     ../src/pjmedia-audiodev/alsa_dev.c:122: error: expected
>     specifier-qualifier-list before "snd_pcm_t"
>     ../src/pjmedia-audiodev/alsa_dev.c: In function "alsa_error_handler":
>     ../src/pjmedia-audiodev/alsa_dev.c:199: warning: implicit
>     declaration of function "snd_strerror"
>     ../src/pjmedia-audiodev/alsa_dev.c:199: warning: format "%s"
>     expects type "char *", but argument 4 has type "int"
>     ../src/pjmedia-audiodev/alsa_dev.c:199: warning: format "%s"
>     expects type "char *", but argument 4 has type "int"
>     ../src/pjmedia-audiodev/alsa_dev.c: In function "add_dev":
>     ../src/pjmedia-audiodev/alsa_dev.c:207: error: "snd_pcm_t"
>     undeclared (first use in this function)
>     ../src/pjmedia-audiodev/alsa_dev.c:207: error: (Each undeclared
>     identifier is reported only once
>     ../src/pjmedia-audiodev/alsa_dev.c:207: error: for each function
>     it appears in.)
>     ../src/pjmedia-audiodev/alsa_dev.c:207: error: "pcm" undeclared
>     (first use in this function)
>
>
> Other than "alsa_dev.c" I see no other "alsa" files in the untarred 
> fileset  - and it's not flagged as a dependency
>
> Digging a bit further...
>
> I see in 
> "./build/temp.linux-x86_64-2.6/pjsip/pjlib/include/pj/config_site.h" 
> that the dependency is flagged
>
>     #define PJMEDIA_AUDIO_DEV_HAS_ALSA 1
>
> If I set this to "0" then I manage to complete the compilation
>
> However when I run (after also installing "greenlet" and 
> "python-gnutls")  I end up with an error when running sylkserver:
>
>     Starting SylkServer 2.5.0, with no configuration file
>     fatal error: failed to create SylkServer:
>     /usr/lib64/python2.6/site-packages/sipsimple/core/_core.so:
>     undefined symbol: pjmedia_alsa_factory
>     Traceback (most recent call last):
>       File "./sylk-server", line 68, in main
>         from sylk.server import SylkServer
>       File "/tmp/sylkserver/sylk/server.py", line 13, in <module>
>         from sipsimple.account import Account, BonjourAccount,
>     AccountManager
>       File
>     "/usr/lib64/python2.6/site-packages/sipsimple/account/__init__.py", line
>     25, in <module>
>         from sipsimple.account.bonjour import BonjourServices, _bonjour
>       File
>     "/usr/lib64/python2.6/site-packages/sipsimple/account/bonjour/__init__.py",
>     line 23, in <module>
>         from sipsimple.core import FrozenSIPURI, SIPCoreError, NoGRUU
>       File
>     "/usr/lib64/python2.6/site-packages/sipsimple/core/__init__.py",
>     line 4, in <module>
>         from sipsimple.core._core import *
>     ImportError:
>     /usr/lib64/python2.6/site-packages/sipsimple/core/_core.so:
>     undefined symbol: pjmedia_alsa_factory
>
> Is the simsimple tar missing some dependancies or should I have these 
> installed - as "pjproject" appears to be "C" rather than python I'm 
> thinking it's the former, but please can you advise me on possible 
> next steps?
>
> Thanks (hopefully)
> David
>
>
>
> _______________________________________________
> SIPBeyondVoIP mailing list
> SIPBeyondVoIP at lists.ag-projects.com
> http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20130926/bb61d097/attachment.html>


More information about the SIPBeyondVoIP mailing list