Paul,

> Can I see the next couple of lines too please, if there are any...

configure:7978: checking gethostbyaddr_r() syntax
configure:7990: gcc -o
conftest -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -D
NDEBUG   conftest.c  1>&5
configure: In function `main':
configure:7986: warning: implicit declaration of function `gethostbyaddr_r'
configure:8068: checking gethostbyname_r() syntax
configure:8080: gcc -o
conftest -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -D
NDEBUG   conftest.c  1>&5
configure: In function `main':
configure:8076: warning: implicit declaration of function `gethostbyname_r'
/var/tmp//cc4tbCw3.o: In function `main':
/var/src/freeradius-0.9.1/configure:8076: undefined reference to
`gethostbyname_r'
configure: failed program was:
#line 8070 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <netdb.h>

int main() {
 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
; return 0; }
configure:8106: gcc -o
conftest -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -D



> That patch is in 0.9.1... The problem is that FreeBSD seems to be
> providing a symbol gethostbyaddr_r() in the GNU layout, which conftest
> can link against, but which fails when FreeRADIUS tries to use it.
>
> What happens if you put:
> #line 7980 "configure"
> #include "confdefs.h"
>
> #include <stdio.h>
> #include <netdb.h>
>
> int main() {gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL); return
0;}
> into file called conftest, and run
> gcc -o
conftest -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -DNDEBUG
conftest.c
> on a FreeBSD machine?
>
> If it compiles cleanly, try running it.
>

I can't find conftest file.. So just created one .. and put as advised...
and output below error...

# gcc -o
conftest -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -DNDEBUG
conftest.c
configure:7980:22: confdefs.h: No such file or directory
configure: In function `main':
configure:7986: warning: implicit declaration of function `gethostbyaddr_r'


--haizam




- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to