face same problem with FreeBSD 4.8

done as below:

# CFLAGS=-lc_r ./configure --without-threads
# ./configure --without-threads
    => both giving same error as below:
# CFLAGS=-lc_r ./configure
    => giving gethostbyaddr_r error

--haizam


rlm_counter.c:681: structure has no member named `mutex'
rlm_counter.c:716: structure has no member named `mutex'
rlm_counter.c:718: structure has no member named `mutex'
rlm_counter.c: In function `counter_detach':
rlm_counter.c:813: warning: implicit declaration of function
`pthread_mutex_destroy'
rlm_counter.c:813: structure has no member named `mutex'
gmake[5]: *** [rlm_counter.o] Error 1
gmake[5]: Leaving directory
`/var/src/freeradius-0.9.1/src/modules/rlm_counter'
gmake[4]: *** [common] Error 1
gmake[4]: Leaving directory `/var/src/freeradius-0.9.1/src/modules'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/var/src/freeradius-0.9.1/src/modules'
gmake[2]: *** [common] Error 1
gmake[2]: Leaving directory `/var/src/freeradius-0.9.1/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/var/src/freeradius-0.9.1/src'
gmake: *** [common] Error 1

----- Original Message -----
From: "Paul Hampson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 2:26 AM
Subject: RE: FreeRADIUS 0.9.1. under FreeBSD^ making errors


> > From: andrew bogorodsky
> > Sent: Sunday, 14 September 2003 8:28 PM
>
> > Making static dynamic in rlm_dbm...
> > gmake[5]: Entering directory
> > `/usr/local/soft/freeradius-0.9.1/src/modules/rlm_dbm'
> > gcc  -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -DNDEBUG
> > -I../../include -DHAVE_NDBM_H -c rlm_dbm.c -o rlm_dbm.o
> > rlm_dbm.c: In function `sm_parse_user':
> > rlm_dbm.c:172: warning: assignment discards qualifiers from pointer
> > target type
> > rlm_dbm.c:206: warning: passing arg 2 of `paircmp' discards qualifiers
> > from pointer target type
> > /usr/local/soft/freeradius-0.9.1/libtool --mode=link ld \
> > -module -static  -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE
> > -DNDEBUG  -I../../include -DHAVE_NDBM_H rlm_dbm.o -o rlm_dbm.a
> > mkdir .libs
> > ar cru rlm_dbm.a rlm_dbm.o
> > ranlib rlm_dbm.a
> > gcc  -g -O2 -pthread -D_THREAD_SAFE -Wall -D_GNU_SOURCE -DNDEBUG
> > -I../../include -DHAVE_NDBM_H -c rlm_dbm_parser.c -o rlm_dbm_parser.o
> > rlm_dbm_parser.c: In function `storecontent':
> > rlm_dbm_parser.c:160: warning: assignment discards qualifiers from
> > pointer target type
> > /usr/local/soft/freeradius-0.9.1/libtool --mode=link gcc
> > rlm_dbm_parser.o ../../lib/libradius.a   -o rlm_dbm_parser
> > gcc rlm_dbm_parser.o -o rlm_dbm_parser  ../../lib/libradius.a
> > ../../lib/libradius.a(misc.o): In function `ip_hostname':
> > /usr/local/soft/freeradius-0.9.1/src/lib/misc.c:63: undefined reference
> > to `gethostbyaddr_r'
> > gmake[5]: *** [rlm_dbm_parser] Error 1
> >
> > (libtool-1.5)
>
> I don't think we support libtool-1.5... No idea if it actually
> breaks things.
>
> This problem is triggered by FreeBSD's lying about the functions
> provided by libc regarding name resolution. Specifically, it claims
> to have gethostbyaddr_r but won't link with it. Try
> CFLAGS=-lc_r ./configure {Rest of configure options}
> from a clean copy of the tarball, and see if that helps.
>
> --
> =========================================================
> Paul "TBBle" Hampson
> Bubblesworth Pty Ltd (ABN: 51 095 284 361)
> [EMAIL PROTECTED]
>
> This is a one line proof...if we start
> sufficiently far to the left.
> -- Cambridge University Math Department
> ---------------------------------------------------------
> Random signature generator 3.0 by Paul "TBBle" Hampson
> =========================================================
>
>
> -
> List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
>
> [ Scanned by JARING E-Mail Virus Scanner ( http://www.jaring.my ) ]



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

Reply via email to