After all I was able to solve this problem. I had to edit rlm_ippool_tool.c and replace, at line 115:

if (inet_pton(AF_INET, ipaddress, &ipaddr) == 0)

 

with

if (inet_aton(ipaddress, &ipaddr) == 0)

 

 

It should work the same way, as aton() is a specific implementation of pton() for AF_INET (which, by the way, is only implemented for AF_INET anyway – grumf)

 

Hope this will help someone out.

 

BTW, I’m still getting some errors at “make install”. Did anyone experience these?

 

Cheers,

Manuel Ricca

 


From: Manuel Ricca [mailto:[EMAIL PROTECTED]
Sent: terça-feira, 3 de Fevereiro de 2004 11:36
To: [EMAIL PROTECTED]
Subject: Compile error for Cygwin

 

When trying to compile freeradius 0.9.3 for Cygwin I get this error:

rlm_ippool_tool.o(.text+0x26f): In function `addip':

/cygdrive/d/freeradius-0.9.3/src/modules/rlm_ippool/rlm_ippool_tool.c:115: undefined reference to `_inet_pton'

collect2: ld returned 1 exit status

make[6]: *** [rlm_ippool_tool] Error 1

make[5]: *** [common] Error 1

make[4]: *** [all] Error 2

make[3]: *** [common] Error 1

make[2]: *** [all] Error 2

make[1]: *** [common] Error 1

make: *** [all] Error 2

 

I guess this is why I can’t compile radiusd, it depends on this module. Can anyone help?

 

TIA,

Manuel Ricca

Reply via email to