[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Compiling Errors on AIX
You'll need to compile with either -DPOSIX_THREADS (final standard)
or -DTHREAD_MIT_PTHREADS (draft 4). You'll have to check your
manuals to determine which one is approriate for your system.
You will also need to determine the appropriate libraries to link
with.
Then you need to modify Make-common to set the variables
THREADS= -DPOSIX_THREADS or -DTHREAD_MIT_PTHREADS
THREADSLIB= -lyour_posix_library
You will than have to rebuild the makefiles before rebuilding:
make makefiles
make clean
make depend
make
Don't forget to "cd tests; make" before installing.
Kurt
At 02:40 PM 12/2/98 -0700, Jackie Hunt wrote:
>I'm trying to build OpenLDAP on AIX 4.3.1 and am seeing
>conflicts between lthreads.h and the system .h files.
>
>I'm guessing I need to specify use of the built-in threads
>routines, but after giving it a try, I don't see how
>that is done.
>
>Any help would be greatly appreciated.
>
>I've attached the errors I'm seeing below.
>
>TIA,
>
>Jackie Hunt
>Colorado State University
>
>
>--------------
>Errors with cc:
>
> cc -I../../include -Daix -DLDAP_DEBUG -DLDAP_REFERRALS
> -c thread.c
>"../../include/lthread.h", line 198.17: 1506-334 (S) Identifier
pthread_attr_t h
>as already been defined on line 204 of "/usr/include/sys/types.h".
>"../../include/lthread.h", line 199.17: 1506-334 (S) Identifier pthread_t
has al
>ready been defined on line 212 of "/usr/include/sys/types.h".
>"../../include/lthread.h", line 213.17: 1506-334 (S) Identifier
pthread_mutexatt
>r_t has already been defined on line 206 of "/usr/include/sys/types.h".
>"../../include/lthread.h", line 214.17: 1506-334 (S) Identifier
pthread_mutex_t
>has already been defined on line 263 of "/usr/include/sys/types.h".
>"../../include/lthread.h", line 221.17: 1506-334 (S) Identifier
pthread_condattr
>_t has already been defined on line 205 of "/usr/include/sys/types.h".
>"../../include/lthread.h", line 222.17: 1506-334 (S) Identifier
pthread_cond_t h
>as already been defined on line 278 of "/usr/include/sys/types.h".
>make: The error code from the last command is 1.
>
>
>
>----------------
>Errors with gcc:
>
> gcc -I../../include -Daix -DLDAP_DEBUG -DLDAP_REFERRALS
> -c thread.c
>In file included from thread.c:3:
>../../include/lthread.h:198: conflicting types for `pthread_attr_t'
>/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.8.1/include/sys/types.h:218
: pre
>vious declaration of `pthread_attr_t'
>../../include/lthread.h:199: conflicting types for `pthread_t'
>/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.8.1/include/sys/types.h:226
: pre
>vious declaration of `pthread_t'
>../../include/lthread.h:213: conflicting types for `pthread_mutexattr_t'
>/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.8.1/include/sys/types.h:220
: pre
>vious declaration of `pthread_mutexattr_t'
>../../include/lthread.h:214: conflicting types for `pthread_mutex_t'
>/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.8.1/include/sys/types.h:277
: pre
>vious declaration of `pthread_mutex_t'
>../../include/lthread.h:221: conflicting types for `pthread_condattr_t'
>/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.8.1/include/sys/types.h:219
: pre
>vious declaration of `pthread_condattr_t'
>../../include/lthread.h:222: conflicting types for `pthread_cond_t'
>/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.1.0/2.8.1/include/sys/types.h:292
: pre
>vious declaration of `pthread_cond_t'
>make: The error code from the last command is 1.
>
>
>
>--------------
>Jackie Hunt
>ACNS Voice: (970) 663-3789
>Colorado State University FAX: (970) 491-1958
>Fort Collins, CO 80523 Email:
jackie@yuma.acns.colostate.edu
>
>