[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: unfunny Configuration Problem



The problem is that on Soalris 2.6 the default thread library is pthread and
some pthread definition appears in types.h (pthread_t and pthread_mutex_t).

So use Pthreads instead of LWP threads (THREAD_SUNOS5_LWP).

Ludovic Poitou


> Hi!
> 
> > This is likely the FOO?=BAR problem.
> Yes. Thanks for the hint. Now I've got a different error. ;-)
> 
> gcc -I. -I.. -I../../../include  -Dsunos5 -D__SunOS_5_6 -D_REENTRANT
> -DLDAP_DEBUG          -DLDAP_REFERRALS      -DTHREAD_SUNOS5_LWP    -c
> init.c
> In file included from init.c:6:
> ../slap.h:229: parse error before `pthread_t'
> ../slap.h:229: warning: no semicolon at end of struct or union
> ../slap.h:231: parse error before `o_abandonmutex'
> ../slap.h:231: warning: data definition has no type or storage class
> ../slap.h:234: parse error before `}'
> ../slap.h:234: warning: data definition has no type or storage class
> ../slap.h:243: parse error before `pthread_mutex_t'
> ../slap.h:243: warning: no semicolon at end of struct or union
> 
> ... and so on.
> 
> As far as I remember this problem occured once opon a time when I did
> compile slapd 3.3 of the University of Michigan.
> 
> > First, review build/platform/linux/Make-platform.  Note
> > defines.
> Im not running Linux. It's the good old SunOS 5.6...
> 
> 
> Thanks for your answer!
> 
> 
> Midnight-greetings from Germany,
> 
> 
>             Matthias
> 
>