I don't excatly understand why you would need to install the thread libraries that you specified in the url. Besides, there is no pthread in that link, just the pthread clone. You should be able to compile kannel on the redhat that you are using without much problems. I've tried it on 7.2 & 8.0 with no major issues (except missing the openssl libs, fortunately that was quickly and easily rectified) .
Anamika Kumari wrote:
Hi Peng,The Linux red hat is 7.3 and I have the source of gateway 1.2.1. I have downloaded the pthread library from the link http://www.europe.redhat.com/documentation/FAQ/Threads-FAQ/ThreadLibs.php3 I have configured and installed the pthread libraries the way it was said in the readme document provided in the same link with the commands ./configure make make install After that when I configure the gateway it says Checking POSIX threads support ... checking for working pthreads... no later when I run the make for the gateway the status is as :: creating ./config.status creating Makefile creating config.h config.h is unchanged [root@anamika_lynx gateway-1.2.1]# make gcc -D_REENTRANT=1 -I. -Igw -g -O2 -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -I/usr/include/openssl -o gw/smsc/smsc_wrapper.o -c gw/smsc/smsc_wrapper.c In file included from gwlib/thread.h:14, from gwlib/gwlib.h:25, from gw/smsc/smsc_wrapper.c:9: /usr/local/include/pthread.h:188: conflicting types for `pthread_mutex_t' /usr/include/bits/pthreadtypes.h:83: previous declaration of `pthread_mutex_t' /usr/local/include/pthread.h:196: conflicting types for `pthread_mutexattr_t' /usr/include/bits/pthreadtypes.h:90: previous declaration of `pthread_mutexattr_t' /usr/local/include/pthread.h:272: conflicting types for `pthread_once_t' /usr/include/bits/pthreadtypes.h:94: previous declaration of `pthread_once_t' /usr/local/include/pthread.h:284: conflicting types for `pthread_cond_t' /usr/include/bits/pthreadtypes.h:60: previous declaration of `pthread_cond_t' /usr/local/include/pthread.h:288: conflicting types for `pthread_condattr_t' /usr/include/bits/pthreadtypes.h:67: previous declaration of `pthread_condattr_t' /usr/local/include/pthread.h:351: conflicting types for `pthread_attr_t' /usr/include/bits/pthreadtypes.h:52: previous declaration of `pthread_attr_t' /usr/local/include/pthread.h:367: conflicting types for `pthread_key_t' /usr/include/bits/pthreadtypes.h:70: previous declaration of `pthread_key_t' /usr/local/include/pthread.h:434: conflicting types for `pthread_t' /usr/include/bits/pthreadtypes.h:140: previous declaration of `pthread_t' make: *** [gw/smsc/smsc_wrapper.o] Error 1 my concern is 1. whether I am using the correct pthread library and 2. where the pthread library should be so that the gateway finds it while being configured. please advice me at your earliest possible convenience. regards Anamika Peng Tuck Kwok wrote:What is the specific error, and what version of linux were you using ? Anamika Kumari wrote:I am trying to rum the Kannel gateway for the first time when I compile it the specification say Checking POSIX threads support ... checking for working pthreads... no I have the tar file downloaded from http://www.europe.redhat.com/documentation/FAQ/Threads-FAQ/ThreadLibs.php3 My OS is RedHat Linux 7.3 please help