> From: Oliver Graf
> Sent: Monday, 6 October 2003 9:30 PM
> On Mon, Oct 06, 2003 at 01:27:24PM +0200, Oliver Graf wrote:
> > On Mon, Oct 06, 2003 at 04:52:47PM +0800, Rohaizam Abu Bakar wrote:
> > > Paul,
> > > as requested... a bit extra line ..
> > > 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'
Can I see the next couple of lines too please, if there are any...
> > I send a patch for this to the devel list... at least I think so...
> Oh, sorry, I think this will go into 0.9.2 if I read the logs
> correctly.
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'm half-tempted to special-case FreeBSD to not test for the _r variants
of gethostbyaddr, since gethostbyname_r detection appears to work fine.
--
Paul "TBBle" Hampson
Bubblesworth Pty Ltd (ABN: 51 095 284 361)
[EMAIL PROTECTED]
On a sidewalk near Portland State
University someone wrote `Trust Jesus', and
someone else wrote `But Cut the Cards'.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html