From owner-freebsd-ports@FreeBSD.ORG Mon Jun 23 13:22:12 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 25909B60 for ; Mon, 23 Jun 2014 13:22:12 +0000 (UTC) Received: from maul.immure.com (immure.com [107.218.164.241]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA8472776 for ; Mon, 23 Jun 2014 13:22:11 +0000 (UTC) Received: from [10.1.132.9] (helo=rancor.immure.com) by maul.immure.com with esmtp (Exim 4.82 (FreeBSD)) (envelope-from ) id 1Wz4C6-000Hpz-3r for freebsd-ports@freebsd.org; Mon, 23 Jun 2014 08:22:04 -0500 Received: from rancor.immure.com (localhost [127.0.0.1]) by rancor.immure.com (8.14.8/8.14.8) with ESMTP id s5NDLvrg019103 for ; Mon, 23 Jun 2014 08:21:57 -0500 (CDT) (envelope-from bob@rancor.immure.com) Received: (from bob@localhost) by rancor.immure.com (8.14.8/8.14.6/Submit) id s5NDLvRp019102 for freebsd-ports@freebsd.org; Mon, 23 Jun 2014 08:21:57 -0500 (CDT) (envelope-from bob) Date: Mon, 23 Jun 2014 08:21:57 -0500 From: Bob Willcox To: ports list Message-ID: <20140623132157.GM99884@rancor.immure.com> Reply-To: Bob Willcox MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: 10.1.132.9 X-SA-Exim-Mail-From: bob@immure.com X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on maul.immure.com X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Subject: minidlna: file descriptor 3794 too big for select X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on maul.immure.com) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2014 13:22:12 -0000 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 #include #include -- 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.