Subject: Re: freeradius fails to build
To: Klaus Heinz <k.heinz.sep.sieben@kh-22.de>
From: DataZap <az@datazap.net>
List: port-amiga
Date: 09/03/2007 10:03:40
Hi,

On Sun, 2 Sep 2007, Klaus Heinz wrote:
> > denise: {5} make show-var VARNAME=PTHREAD_TYPE
> > native
>
> > denise: {40} head -15 work/freeradius-*/config.log
> ...
>
> This looks all right.
>
> Looking more closely at the freeradius build, I suppose the file
> work/freeradius-1.1.4/config.status contains a line similar to this
>
>   s,@LIBS@,|#_!!_#|-lresolv,g
>
> This is where "-pthread" is missing for you. Consequently the
> automatically generated file Make.inc has a line like:
>   LIBS            = -lresolv
>
> and all Makefiles using Make.inc will not use the correct libraries.
>
> Please search for "checking pthread.h usability" in
> work/freeradius-1.1.4/config.log and have a look at the lines following
> that one. A working configuration stage ought to have put this in the file:

Here is the lines from work/freeradius-1.1.4/config.log:

denise: {6} grep pthread.h work/freeradius-1.1.4/config.log
configure:19866: checking pthread.h usability
configure:19907: checking pthread.h presence
configure:19970: checking for pthread.h
ac_cv_header_pthread_h=no


>   checking pthread.h usability
>   ...
>   result: yes
>   checking pthread.h presence
>   ...
>   result: yes
>   checking for pthread.h
>   result: yes
>   checking for pthread_create in  -pthread
>   ...
>   result: yes
>
> I guess the check for "pthread_create in  -pthread" did not work for you
> because that is the place where "-pthread" is added to the LIBS
> variable. Please show those lines from config.log described above.


Thanks,
Al