Displaying 17 results from an estimated 17 matches for "pthread_mutex_recursive".
2005 Oct 17
1
can't compile ast_*fax
This is all the reference to PTHREAD_MUTEX_RECURSIVE on lock.h
#ifdef __APPLE__
/* Provide the Linux initializers for MacOS X */
#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP { 0x4d555458, \
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0x20 } }
#endif
#i...
2005 Jan 12
2
Trouble building appradius
...radius1.0/inc'
make[1]: Entering directory `/usr/src/appradius/appradius1.0/src'
gcc -c -I../inc -O -Wall -I/usr/local/include -g -O2 app_radius.c
In file included from app_radius.c:17:
/usr/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/include/asterisk/lock.h:311: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
/usr/include/asterisk/lock.h:311: error: (Each undeclared identifier is reported only once
/usr/include/asterisk/lock.h:311: error: for each function it appears in.)
make[1]: *** [app_radius.o] Error 1
..anyone know what that is about ?
Cheers.
2004 Dec 20
1
RxFAX compile problem
...ne, i installed it successfully. Now i have Asterisk CVS 10/08/04, i installed spandsp-0.0.1 with no errors. When i reinstalled asterisk i got the following error:
In file included from app_rxfax.c:14:
../include/asterisk/lock.h: In function `ast_mutex_init':
../include/asterisk/lock.h:311: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
../include/asterisk/lock.h:311: (Each undeclared identifier is reported only once
../include/asterisk/lock.h:311: for each function it appears in.)
app_rxfax.c: In function `phase_e_handler':
app_rxfax.c:86: structure has no member named `calleri...
2004 Jun 20
1
Softfax/spandsp Makefile.patch rxfax/txfax
...not fit the actual CVS apps/Makefile
After make clean ; make install, I received this error:
gcc -O2 -g -Iinclude -I../include -c -o app_rxfax.o app_rxfax.c
In file included from app_rxfax.c:14:
../include/asterisk/lock.h: In function `ast_mutex_init':../include/asterisk/lock.h:214: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
../include/asterisk/lock.h:214: error: (Each undeclared identifier is reported only once
../include/asterisk/lock.h:214: error: for each function it appears in.
Any help? (yes, I copied app_rxfax.c app_txfax.c app_dtmftotext.c to apps
dir also)
2005 Oct 10
2
Beronet app_saynumber-beta-rc1
.../include
-DAST_CONFIG_DIR=\"/etc/asterisk/\" -c -o app_say_number.o
app_say_number.c
In file included from app_say_number.c:14:
/usr/src/asterisk-1.2.0-beta1/include/asterisk/lock.h: In function
`ast_mutex_init':
/usr/src/asterisk-1.2.0-beta1/include/asterisk/lock.h:330: error:
`PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
/usr/src/asterisk-1.2.0-beta1/include/asterisk/lock.h:330: error: (Each
undeclared identifier is reported only once
/usr/src/asterisk-1.2.0-beta1/include/asterisk/lock.h:330: error: for
each function it appears in.)
app_say_number.c: In function `skel_...
2005 Sep 14
11
RxFax/TxFax - Compile Problem
Anyone know how to fix this?
gcc -shared -Xlinker -x -o app_rxfax.so app_rxfax.c -lspandsp -ltiff
In file included from app_rxfax.c:14:
/usr/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/include/asterisk/lock.h:302: error: `PTHREAD_MUTEX_RECURSIVE'
undeclared (first use in this function)
/usr/include/asterisk/lock.h:302: error: (Each undeclared identifier is
reported only once
/usr/include/asterisk/lock.h:302: error: for each function it appears
in.)
app_rxfax.c: In function `rxfax_exec':
app_rxfax.c:263: warning: passing arg 1 o...
2003 Oct 29
4
Fix for USE_POSIX_THREADS in auth-pam.c
...t these
+ * structures can't yet be in use in our process).
+ */
+ if (process_id != (pid_holder = getpid())) {
+ sshpam_handle_lock_ready = 0;
+ process_id = pid_holder;
+ sshpam_handle_lock_count = 0;
+ pthread_mutexattr_init(&lock_attr);
+ pthread_mutexattr_settype(&lock_attr, PTHREAD_MUTEX_RECURSIVE);
+ pthread_mutex_init(&sshpam_handle_lock, &lock_attr);
+ sshpam_handle_lock_ready = 1;
+ }
+ if (!sshpam_handle_lock_ready) {
+ if (set)
+ sshpam_handle = value;
+ return sshpam_handle;
+ }
+ ++sshpam_handle_lock_count;
+ pthread_mutex_lock(&sshpam_handle_lock);
+ if (set)
+ ss...
2005 Mar 16
2
meetme2 compilation
Hello!
Do somebody knows how to compile meetme2 with 1.0.6.
I readed wiki, applied patches, but no luck ;-(
Me be someone can give me working meetme2.c ?
:-)
2005 Mar 18
0
Meetme2 compilation Err
Hi ,
While compiling meetme2 i am getting the following error.
Please guide me to make it work.
cc -fPIC -c -o app_dial.o app_dial.c
In file included from app_dial.c:14:
/usr/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/include/asterisk/lock.h:317: `PTHREAD_MUTEX_RECURSIVE' undeclared
(first use in this function)
/usr/include/asterisk/lock.h:317: (Each undeclared identifier is
reported only once
/usr/include/asterisk/lock.h:317: for each function it appears in.)
make: *** [app_dial.o] Error 1
Thanks in advance
Anil
2005 Oct 04
1
Can't compile ast_rxfax with Asterisk 1.2.1b
I'm trying to get ast_rxfax and ast_txfax compiling with Asterisk 1.2.1
beta. The two ast_?xfax files don't compile:
gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE
-O6 -march=i686 -fomit-frame-pointer -fPIC -D_GNU_SOURCE -c
-o app_rxfax.o app_rxfax.c
app_rxfax.c: In function
2006 Jan 08
0
problems with app_odbcexec
...m /usr/include/asterisk/chanvars.h:26,
from /usr/include/asterisk/channel.h:111,
from /usr/include/asterisk/file.h:30,
from app_odbcexec.c:22:
/usr/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/include/asterisk/lock.h:525: error: `PTHREAD_MUTEX_RECURSIVE'
undeclared (first use in this function)
/usr/include/asterisk/lock.h:525: error: (Each undeclared identifier is
reported only once
/usr/include/asterisk/lock.h:525: error: for each function it appears in.)
app_odbcexec.c: In function `odbcexec_exec':
app_odbcexec.c:102: error: structure ha...
2006 Jan 11
0
problems with installing app_odbcexec into dialplan
...from /usr/include/asterisk/chanvars.h:26,
from /usr/include/asterisk/channel.h:111,
from /usr/include/asterisk/file.h:30,
from app_odbcexec.c:22:
/usr/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/include/asterisk/lock.h:525: error: `PTHREAD_MUTEX_RECURSIVE'
undeclared (first use in this function)
/usr/include/asterisk/lock.h:525: error: (Each undeclared identifier is
reported only once
/usr/include/asterisk/lock.h:525: error: for each function it appears
in.)
app_odbcexec.c: In function `odbcexec_exec':
app_odbcexec.c:102: error: structure h...
2012 Jan 26
1
[PATCH v2] libxl: fix mutex initialization
...thread_mutexattr_t attr;
+ int rc = 0;
+
+ if (pthread_mutexattr_init(&attr) != 0) {
+ LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
+ "Failed to init mutex attributes\n");
+ return ERROR_FAIL;
+ }
+ if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE) != 0) {
+ LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
+ "Failed to set mutex attributes\n");
+ rc = ERROR_FAIL;
+ goto out;
+ }
+ if (pthread_mutex_init(lock, &attr) != 0) {
+ LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR,
+...
2004 Oct 05
1
Cannot compile Meetme2
...n Suse 9.1 and Asterisk rc2. For latter 2 errors I
guess I need development for mysql and postgres, but what about first error
?
Regards,
Robert.
In file included from app_meetme2.c:13:
/usr/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/include/asterisk/lock.h:300: error: `PTHREAD_MUTEX_RECURSIVE'
undeclared (first use in this function)
/usr/include/asterisk/lock.h:300: error: (Each undeclared identifier is
reported only once
/usr/include/asterisk/lock.h:300: error: for each function it appears in.)
app_meetme2.c:31:22: libpq-fe.h: No such file or directory
app_meetme2.c: In functio...
2006 Nov 29
1
Getting app_cepstral to work with Asterisk 1.4.0-beta3
...:110,
from app_cepstral.c:33:
/usr/src/asterisk/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/src/asterisk/include/asterisk/lock.h:513: warning: implicit
declaration of function `pthread_mutexattr_settype'
/usr/src/asterisk/include/asterisk/lock.h:513: error:
`PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
/usr/src/asterisk/include/asterisk/lock.h:513: error: (Each undeclared
identifier is reported only once
/usr/src/asterisk/include/asterisk/lock.h:513: error: for each function
it appears in.)
In file included from /usr/src/asterisk/include/asterisk/cdr.h...
2005 Mar 18
15
Meetme2 compilation problem
...am trying to compile meetme2 in my asterisk box and getting the
following compilaton error. Please help me to sort it out.
cc -fPIC -c -o app_dial.o app_dial.c
In file included from app_dial.c:14:
/usr/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/include/asterisk/lock.h:317: `PTHREAD_MUTEX_RECURSIVE' undeclared
(first use in this function)
/usr/include/asterisk/lock.h:317: (Each undeclared identifier is
reported only once
/usr/include/asterisk/lock.h:317: for each function it appears in.)
make: *** [app_dial.o] Error 1
Thanks in advance
Anil
2004 Aug 26
6
chan_capi module
.../usr/include/unistd.h:746: error: syntax error before "__THROW"
In file included from chan_capi.c:14:
/usr/include/asterisk/lock.h:294: error: syntax error before "typedef"
/usr/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/include/asterisk/lock.h:300: error: `PTHREAD_MUTEX_RECURSIVE'
undeclared (first use in this function)/usr/include/asterisk/lock.h:300:
error:(Each undeclared identifier is
reported only once/usr/include/asterisk/lock.h:300: error: for each
function itappears in.)
In file included from /usr/include/sys/time.h:30,
from /usr/include/asteris...