tofig
Joined: 10 Jan 2009 Posts: 1
|
Posted: Sat Jan 10, 2009 12:06 pm Post subject: icecast + FreeBSD getaddrinfo() |
|
|
Good day,
recently I have updated my icecast installation to the latest version (2.3.2) available from the FreeBSD ports colletion. Update went fine, but icecast did not start. The only message it spit was: Server startup failed. Exiting
I have recompiled icecast with gdb support and found out that the problem is on the following line of the net/sock.c:
if (getaddrinfo (sinterface, service, &hints, &res))
return SOCK_ERROR;
After digging more into this I have discovered that sinterface holds hostname of my server, not the numerical ip address which contradicts with the fact that hints.flags forces numeric address usage according to the AI_NUMERICHOST bit set:
hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG | AI_NUMERICSERV | AI_NUMERICHOST;
After disabling AI_NUMERICHOST and recompiling - icecast started fine.
My operating system release is: FreeBSD 6.3-RELEASE-p4
I wonder if this issue is FreeBSD specific. Any comments ?
Thanks,
Tofig Suleymanov |
|