Subject: Re: freeradius fails to build
To: None <port-amiga@NetBSD.org>
From: Klaus Heinz <k.heinz.sep.sieben@kh-22.de>
List: port-amiga
Date: 09/02/2007 22:49:09
Al 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:
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.
ciao
Klaus