Date: Mon, 23 Jun 2014 08:21:57 -0500 From: Bob Willcox <bob@immure.com> To: ports list <freebsd-ports@freebsd.org> Subject: minidlna: file descriptor 3794 too big for select Message-ID: <20140623132157.GM99884@rancor.immure.com>
next in thread | raw e-mail | index | archive | help
I just installed minidlna 1.1.3 on my system from ports and ran into the problem described in Stefan Essers' bug report 185155. Checking the source and the patch file extra-patch-kqueue I see that Stefan's suggested workaround has been included. However, the file upnpevents.c didn't 'know' about the increased FD_SETSIZE value so it failed with the following fatal error: upnpevents.c:423: fatal: upnpevents_selectfds: file descriptor 3794 too big for select, limit is 1024 So...I added a #define for FD_SETSIZE to the top of that file and things seem to be working ok now. Here's my simple patch: --- upnpevents.c.orig 2014-06-05 17:14:30.000000000 -0500 +++ upnpevents.c 2014-06-23 07:47:53.000000000 -0500 @@ -47,6 +47,7 @@ */ #include "config.h" +#define FD_SETSIZE 8192 #include <stdio.h> #include <string.h> #include <errno.h> -- Bob Willcox | I really hate this damned machine bob@immure.com | I wish that they would sell it. Austin, TX | It never does quite what I want | But only what I tell it.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140623132157.GM99884>