Subject: pkg/25252: tnftp doesn't build on Darwin 7.3.0 due to compatability poll()
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <grant@NetBSD.org>
List: pkgsrc-bugs
Date: 04/20/2004 14:00:08
>Number: 25252
>Category: pkg
>Synopsis: tnftp doesn't build on Darwin 7.3.0 due to compatability poll()
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 20 04:01:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: grant beattie
>Release: Darwin 7.3.0
>Organization:
>Environment:
System: Darwin max.local 7.3.0 Darwin Kernel Version 7.3.0: Fri Mar 5 14:22:55 PST 2004; root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC Power Macintosh powerpc
Architecture: powerpc
Machine: Power Macintosh
>Description:
net/tnftp doesn't build on Darwin 7.3.0 due to a change in the way
poll() is implemented as a compatability function.
gcc -I. -I./.. -I. -I.. -I./../libnetbsd -g -O2 -c -o ftp.o ftp.c
ftp.c: In function `empty':
ftp.c:557: error: storage size of `pfd' isn't known
ftp.c:561: error: `POLLIN' undeclared (first use in this function)
ftp.c:561: error: (Each undeclared identifier is reported only once
ftp.c:561: error: for each function it appears in.)
make[1]: *** [ftp.o] Error 1
make: *** [ftp] Error 2
this is critical/high as tnftp is required for pkgsrc, and this PR is
partially a reminder for myself to fix it.
>How-To-Repeat:
cd pkgsrc/bootstrap
./bootstrap
>Fix:
test for the compatability implementation of poll() and if detected,
use select() instead.
>Release-Note:
>Audit-Trail:
>Unformatted: