Subject: pkg/28534: chat/irssi broken on FreeBSD 5.3-R
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 12/04/2004 09:09:00
>Number:         28534
>Category:       pkg
>Synopsis:       chat/irssi broken on FreeBSD 5.3-R
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 04 09:09:00 +0000 2004
>Originator:     Krzysztof Kotlenga
FreeBSD 5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #0: Sat Nov 27 10:13:34 CET 2004  i386
chat/irssi build fails with the following error:

network.c:610: error: `EAI_NODATA' undeclared (first use in this function)
network.c:610: error: (Each undeclared identifier is reported only once
network.c:610: error: for each function it appears in.)
*** Error code 1

bmake: stopped in /usr/pkgsrc/chat/irssi/work/irssi-0.8.9/src/core

It's caused by changes in netdb.h. "RFC 3493 has dropped EAI_NODATA and so has FreeBSD 5.3, too" as Igor S Chencov said.
# cd /usr/pkgsrc/chat/irssi
# bmake
Import the patch from FreeBSD ports:

Also fixable by putting it in $LOCALPATCHES/$PKGPATH.