Subject: pkg/28534: chat/irssi broken on FreeBSD 5.3-R
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <pocek@post.pl>
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
>Release:        
>Organization:
>Environment:
FreeBSD k6-2.site 5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #0: Sat Nov 27 10:13:34 CET 2004     root@k6-2.site:/usr/obj/usr/src/sys/SR  i386
>Description:
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

Stop.
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.
>How-To-Repeat:
# cd /usr/pkgsrc/chat/irssi
# bmake
>Fix:
Import the patch from FreeBSD ports: http://www.freebsd.org/cgi/cvsweb.cgi/ports/irc/irssi/files/patch-eai_nodata

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