<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
An update<br>
<br>
I have got a little further - I realised that my changing of header
file to<br>
<br>
#define PJMEDIA_AUDIO_DEV_HAS_ALSA 0<br>
<br>
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). <br>
<br>
So I removed the simsimple folder and unpacked again<br>
<br>
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.<br>
<br>
Now when I run sylkserver I get <br>
<br>
Starting SylkServer 2.5.0, with no configuration file<br>
fatal error: failed to create SylkServer: cannot import name WeakSet<br>
Traceback (most recent call last):<br>
File "./sylk-server", line 68, in main<br>
from sylk.server import SylkServer<br>
File "/tmp/sylkserver/sylk/server.py", line 13, in <module><br>
from sipsimple.account import Account, BonjourAccount,
AccountManager<br>
File
"/usr/lib64/python2.6/site-packages/sipsimple/account/__init__.py",
line 25, in <module><br>
from sipsimple.account.bonjour import BonjourServices, _bonjour<br>
File
"/usr/lib64/python2.6/site-packages/sipsimple/account/bonjour/__init__.py",
line 24, in <module><br>
from sipsimple.configuration.settings import SIPSimpleSettings<br>
File
"/usr/lib64/python2.6/site-packages/sipsimple/configuration/__init__.py",
line 15, in <module><br>
from weakref import WeakSet<br>
ImportError: cannot import name WeakSet<br>
<br>
Clearly a dependancy I'm missing somewhere <br>
<br>
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<br>
<br>
Regards<br>
David<br>
<br>
<div class="moz-cite-prefix">On 26/09/2013 14:30, David Hubbard
wrote:<br>
</div>
<blockquote cite="mid:52443709.3020305@agenor.co.uk" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi<br>
<br>
I'm following the instructions at <<a moz-do-not-send="true"
href="http://sylkserver.com/download.phtml">http://sylkserver.com/download.phtml</a>>
for Source Code based install.<br>
<br>
I'm doing this currently on Centos 6.4 as a test (with a view to
also deploying on Red Hat EL) <br>
<br>
I have hit a problem installing "python-sipsimple" via the tar
package<br>
<br>
I am building using "python setup.py install" (which I have
deduced is the way these modules are normally built) - is this
correct?<br>
<br>
Build Error (a cut here)<br>
<br>
ar: creating
../lib/libpjmedia-videodev-x86_64-unknown-linux-gnu.a<br>
<blockquote>../src/pjmedia-audiodev/alsa_dev.c:37:28: error:
alsa/asoundlib.h: No such file or directory<br>
../src/pjmedia-audiodev/alsa_dev.c:122: error: expected
specifier-qualifier-list before "snd_pcm_t"<br>
../src/pjmedia-audiodev/alsa_dev.c: In function
"alsa_error_handler":<br>
../src/pjmedia-audiodev/alsa_dev.c:199: warning: implicit
declaration of function "snd_strerror"<br>
../src/pjmedia-audiodev/alsa_dev.c:199: warning: format "%s"
expects type "char *", but argument 4 has type "int"<br>
../src/pjmedia-audiodev/alsa_dev.c:199: warning: format "%s"
expects type "char *", but argument 4 has type "int"<br>
../src/pjmedia-audiodev/alsa_dev.c: In function "add_dev":<br>
../src/pjmedia-audiodev/alsa_dev.c:207: error: "snd_pcm_t"
undeclared (first use in this function)<br>
../src/pjmedia-audiodev/alsa_dev.c:207: error: (Each undeclared
identifier is reported only once<br>
../src/pjmedia-audiodev/alsa_dev.c:207: error: for each function
it appears in.)<br>
../src/pjmedia-audiodev/alsa_dev.c:207: error: "pcm" undeclared
(first use in this function)<br>
</blockquote>
<br>
Other than "alsa_dev.c" I see no other "alsa" files in the
untarred fileset - and it's not flagged as a dependency<br>
<br>
Digging a bit further...<br>
<br>
I see in
"./build/temp.linux-x86_64-2.6/pjsip/pjlib/include/pj/config_site.h"
that the dependency is flagged<br>
<blockquote>#define PJMEDIA_AUDIO_DEV_HAS_ALSA 1<br>
</blockquote>
If I set this to "0" then I manage to complete the compilation<br>
<br>
However when I run (after also installing "greenlet" and
"python-gnutls") I end up with an error when running sylkserver:<br>
<br>
<blockquote>Starting SylkServer 2.5.0, with no configuration file<br>
fatal error: failed to create SylkServer:
/usr/lib64/python2.6/site-packages/sipsimple/core/_core.so:
undefined symbol: pjmedia_alsa_factory<br>
Traceback (most recent call last):<br>
File "./sylk-server", line 68, in main<br>
from sylk.server import SylkServer<br>
File "/tmp/sylkserver/sylk/server.py", line 13, in
<module><br>
from sipsimple.account import Account, BonjourAccount,
AccountManager<br>
File
"/usr/lib64/python2.6/site-packages/sipsimple/account/__init__.py",
line 25, in <module><br>
from sipsimple.account.bonjour import BonjourServices,
_bonjour<br>
File
"/usr/lib64/python2.6/site-packages/sipsimple/account/bonjour/__init__.py",
line 23, in <module><br>
from sipsimple.core import FrozenSIPURI, SIPCoreError,
NoGRUU<br>
File
"/usr/lib64/python2.6/site-packages/sipsimple/core/__init__.py",
line 4, in <module><br>
from sipsimple.core._core import *<br>
ImportError:
/usr/lib64/python2.6/site-packages/sipsimple/core/_core.so:
undefined symbol: pjmedia_alsa_factory<br>
</blockquote>
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?<br>
<br>
Thanks (hopefully)<br>
David<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIPBeyondVoIP mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SIPBeyondVoIP@lists.ag-projects.com">SIPBeyondVoIP@lists.ag-projects.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip">http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip</a>
</pre>
</blockquote>
<br>
</body>
</html>