On Fri, 22 Aug 2003, Paul Hampson wrote:

> > From: [EMAIL PROTECTED]
> > Sent: Wednesday, 20 August 2003 9:33 PM
>
> > I was wondering if anybody has tried this combination.
>
> Doesn't look like it...

Not a too common OS unfortunately, except in Telecom environments.

> > When I try to compile the software, make fails with a lot of errors. The
> > configure stage went without any error messages at all.
>
> Feel free to post the makefile errors and we can
> have a look. No promises though.

The errors are a lot different. First it complained that ldap libraries
were not present. Then when the iPlanet ones were installed, it refused to
compile. I then installed openldap 2.1.22, and everyting seems fine.

When compiling the main part, it complains that one should compile with
-pthreads (eventhoug I specifically told it to disable threads with
--disable-thread option to ./configure)

When adding -pthread to Make.inc, the following erros occur :

make[4]: Entering directory `/kits/source/freeradius-0.9.0/src/lib'
cc  -g -DNDEBUG -pthread -D_LIBRADIUS -I../include -c misc.c -o misc.o
cc: Warning: misc.c, line 61: In this statement, the referenced type of
the pointer value "buffer" is "char", which is not compatible with "struct
hostent_data". (ptrmismatch)
                            AF_INET, &result, buffer, sizeof(buffer),
----------------------------------------------^
cc: Error: misc.c, line 60: In this statement, "gethostbyaddr_r" expects 5
arguments, but 8 are supplied. (toomanyargs)
        if (gethostbyaddr_r((char *)&ipaddr, sizeof(struct in_addr),
------------^
cc: Warning: misc.c, line 105: In this statement, the referenced type of
the pointer value "buffer" is "char", which is not compatible with "struct
hostent_data". (ptrmismatch)
        if (gethostbyname_r(host, &result, buffer, sizeof(buffer),
-------------------------------------------^
cc: Error: misc.c, line 105: In this statement, "gethostbyname_r" expects
3 arguments, but 6 are supplied. (toomanyargs)
        if (gethostbyname_r(host, &result, buffer, sizeof(buffer),
------------^
make[4]: *** [misc.o] Error 1


The compiler used is the standard compiler shiped with 5.1B.

What confuses me here, is that it complains about gethostbyaddr_r requires
5 options, but 8 is given. According to "Unix Network programming" by
Stevens, it is supposed to receive 7 options ;). The same with
gethostbyname_r which here is supposed to receive 3, but gets 6. According
to the same book, it should receive 5 (refering to the function prototypes
on pae 304 in the Volume 1, second edition)

> Before you do that, make sure  you're using GNU make,
> in case that's the problem. (Possibly installed as gmake)

It is installed under /usr/local/bin and is before the standard make in my
PATH statement
# make --version
GNU Make 3.80

I am at a loss as to what the problem here might be.

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

Reply via email to