search for: pthread_mutexattr_settype

Displaying 18 results from an estimated 18 matches for "pthread_mutexattr_settype".

2008 Mar 20
1
pthread_mutexattr_settype non-conformance to man-page and POSIX
I hit a bug in libthr with pthread_mutexattr_settype which (at least as far as I understand the POSIX reference and also the man-page) makes it non-conformant to the specifications. Quoting: """ RETURN VALUES If successful, these functions return 0. Otherwise, an error number is returned to indicate the error. ... ERRORS...
2009 May 22
0
[LLVMdev] CMake build maturity [was: Re: Arm port]
...e()': Mutex.cpp:(.text+0x3f): undefined reference to `pthread_mutex_trylock' ../../lib/libLLVMSystem.a(Mutex.cpp.o): In function `llvm::sys::Mutex::Mutex(bool)': Mutex.cpp:(.text+0x1bb): undefined reference to `pthread_mutexattr_init' Mutex.cpp:(.text+0x216): undefined reference to `pthread_mutexattr_settype' Mutex.cpp:(.text+0x256): undefined reference to `pthread_mutexattr_setpshared' Mutex.cpp:(.text+0x2a3): undefined reference to `pthread_mutexattr_destroy' ../../lib/libLLVMSystem.a(Mutex.cpp.o): In function `llvm::sys::Mutex::Mutex(bool)': Mutex.cpp:(.text+0x309): undefined referen...
2004 Jul 12
1
Errors when compiling app_radius
...tre dans le r?pertoire `/home/grd/appradius/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:173: warning: implicit declaration of function `pthread_mutexattr_settype' app_radius.c: At top level: app_radius.c:48: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here (not in a function) make[1]: *** [app_radius.o] Erreur 1 """ Thanks in advance for youy help.
2009 May 22
5
[LLVMdev] Arm port
Chuck Robey <chuckr at telenix.org> writes: >> Doesn't CMake support the BSD toolchain? > > OK, I checked the llvm-2.5 Makefiles. They have constructs in them > which cannot be used in any BSD Makefile (such as the form of > conditionals: ifndef is a GNU Makeism), and won't run on any BSD Make. > I know BSD Make and GNU Make well enough, but I doon't know
2009 May 27
0
[LLVMdev] CMake build maturity
...ined reference to `pthread_mutex_trylock' /home/melis/llvm-cmake/lib/libLLVMSystem.a(Mutex.cpp.o): In function `Mutex': /home/melis/c/llvm-svn/lib/System/Mutex.cpp:69: undefined reference to `pthread_mutexattr_init' /home/melis/c/llvm-svn/lib/System/Mutex.cpp:75: undefined reference to `pthread_mutexattr_settype' /home/melis/c/llvm-svn/lib/System/Mutex.cpp:80: undefined reference to `pthread_mutexattr_setpshared' /home/melis/c/llvm-svn/lib/System/Mutex.cpp:88: undefined reference to `pthread_mutexattr_destroy' /home/melis/c/llvm-svn/lib/System/Mutex.cpp:69: undefined reference to `pthread_mutex...
2009 May 22
2
[LLVMdev] CMake build maturity
Paul Melis <llvm at assumetheposition.nl> writes: > Hi, just chiming in here... > > Óscar Fuentes wrote: >> [...] >> >> This is a simple guide for using cmake with LLVM: >> >> http://www.llvm.org/docs/CMake.html >> >> The makefiles distributed with LLVM have nothing to do with cmake. >>From the few times I tried building LLVM with
2004 Jul 30
1
Compiling * on OpenBSD 3.5
...sched.c:399: undefined reference to `pthread_mutex_unlock' sched.o: In function `sched_context_create': /usr/src/asterisk/asterisk/include/asterisk/lock.h:299: undefined reference to `pthread_mutexattr_init' /usr/src/asterisk/asterisk/include/asterisk/lock.h:300: undefined reference to `pthread_mutexattr_settype' /usr/src/asterisk/asterisk/include/asterisk/lock.h:301: undefined reference to `pthread_mutex_init' sched.o: In function `sched_context_destroy': and /usr/lib/libssl.so.8.0: undefined reference to `BN_clear_free' /usr/lib/libssl.so.8.0: undefined reference to `X509_P...
2003 Oct 29
4
Fix for USE_POSIX_THREADS in auth-pam.c
...this has happened (we know beforehand that 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(&a...
2012 Jan 26
1
[PATCH v2] libxl: fix mutex initialization
...ctx, pthread_mutex_t *lock) +{ + pthread_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(c...
2006 Nov 29
1
Getting app_cepstral to work with Asterisk 1.4.0-beta3
...sterisk/frame.h:37, from /usr/src/asterisk/include/asterisk/channel.h: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 fun...
2011 Jan 04
2
[LLVMdev] LLVM for ARM target
..._key_delete' ../../llvm-gcc/gcc/gthr-posix.h:105: error: `pthread_mutexattr_init' undeclared here (not in a function) ../../llvm-gcc/gcc/gthr-posix.h:105: warning: type defaults to `int' in declarat ion of `__gthrw_pthread_mutexattr_init' ../../llvm-gcc/gcc/gthr-posix.h:106: error: `pthread_mutexattr_settype' undeclar ed here (not in a function) ../../llvm-gcc/gcc/gthr-posix.h:106: warning: type defaults to `int' in declarat ion of `__gthrw_pthread_mutexattr_settype' ../../llvm-gcc/gcc/gthr-posix.h:107: error: `pthread_mutexattr_destroy' undeclar ed here (not in a function) ../../llvm-g...
2012 Sep 24
0
[LLVMdev] llvm-config!
Reza Sheykhi <hajishey at msu.edu> writes: > I got the following answers: > > which perl > /usr/bin/perl > > which llvm-config > /usr/local/bin/llvm-config > > which llvm-as > /usr/local/bin/llvm-as > > /usr/bin/llvm-confing --version > bash: /usr/bin/llvm-confing: No such file or directory Uh, there is a typo on the command above, it should be
2011 Jan 02
0
[LLVMdev] LLVM for ARM target
On Jan 1, 2011, at 8:29 PM, akramul azim wrote: > Hi, > I am planning to follow the steps to install LLVM for the ARM-target (Processor: Xscale, Architecture: armv5te): > > 1. Install binutils-2.21 (downloaded from gnu.org) > > Steps: > > $ ./configure --target=arm-unknown-linux-gnueabi --program-prefix=arm- --prefix > =/llvm/arm
2012 Sep 24
2
[LLVMdev] llvm-config!
I got the following answers: which perl /usr/bin/perl which llvm-config /usr/local/bin/llvm-config which llvm-as /usr/local/bin/llvm-as /usr/bin/llvm-confing --version bash: /usr/bin/llvm-confing: No such file or directory /usr/local/bin/llvm-config --version 2.8 Quoting Óscar Fuentes <ofv at wanadoo.es>: > Reza Sheykhi <hajishey at msu.edu> writes: > >> Thank you
2011 Jan 02
3
[LLVMdev] LLVM for ARM target
Hi,     I am planning to follow the steps to install LLVM for the ARM-target (Processor: Xscale, Architecture: armv5te):   1. Install binutils-2.21 (downloaded from gnu.org)   Steps:   $ ./configure --target=arm-unknown-linux-gnueabi --program-prefix=arm- --prefix =/llvm/arm --with-sysroot=/llvm/arms/sys-root   $ make   $ make install   2. Install LLVM   Steps   $ ../llvm-src/configure
2017 Jan 23
2
undefined symbols during linking LLDB 4.0 RC1
..._ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEd 0000000000000000 DF *UND* 00000000000001ae Base _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEe 0000000000000000 DF *UND* 000000000000003b GLIBC_2.2.5 isspace 0000000000000000 DF *UND* 0000000000000019 GLIBC_2.2.5 pthread_mutexattr_settype 0000000000000000 DF *UND* 000000000000019c Base _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEf 0000000000000000 DF *UND* 0000000000000008 GLIBC_2.2.5 getgid 0000000000000000 DF *UND* 0000000000000008 GLIBC_2.2.5 qsort 0000000000000000 DF *UND* 00000000000000eb Ba...
2017 Jan 19
2
undefined symbols during linking LLDB 4.0 RC1
Hello, I update my building scripts to build LLVM 4.0 RC1 (with clang, lldb, libc++, libc++abi, lld) on CentOS 6 and I got a lot of undefined symbols during linking LLDB. I'm using clang-3.9 and this configuration: -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
2010 May 20
3
Install eventmachine on Debian Lenny
.../c++/4.3/x86_64-linux-gnu/bits/gthr-default.h:115: error: ‘pthread_mutexattr_init’ was not declared in this scope /usr/include/c++/4.3/x86_64-linux-gnu/bits/gthr-default.h:115: error: invalid type in declaration before ‘;’ token /usr/include/c++/4.3/x86_64-linux-gnu/bits/gthr-default.h:116: error: ‘pthread_mutexattr_settype’ was not declared in this scope /usr/include/c++/4.3/x86_64-linux-gnu/bits/gthr-default.h:116: error: invalid type in declaration before ‘;’ token /usr/include/c++/4.3/x86_64-linux-gnu/bits/gthr-default.h:117: error: ‘pthread_mutexattr_destroy’ was not declared in this scope /usr/include/c++/4.3/x8...