From owner-freebsd-questions@FreeBSD.ORG Tue May 17 14:22:37 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1DD316A4CE for ; Tue, 17 May 2005 14:22:37 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F20943D70 for ; Tue, 17 May 2005 14:22:37 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j4HEMVKL016593; Tue, 17 May 2005 09:22:31 -0500 (CDT) (envelope-from dan) Date: Tue, 17 May 2005 09:22:31 -0500 From: Dan Nelson To: Xu Qiang Message-ID: <20050517142231.GD90284@dan.emsphone.com> References: <20050517073730.B48721D969@imss.sgp.fujixerox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050517073730.B48721D969@imss.sgp.fujixerox.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i cc: freebsd-questions@freebsd.org Subject: Re: The availability of socketbits.h? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 14:22:37 -0000 In the last episode (May 17), Xu Qiang said: > Dan Nelson wrote: > > It looks like missing.h was added in 1.1.15, but the author didn't run > > all the necessary autoconf commands afterwards. Try running > > "autoheader253" (you will see that a HAVE_FTRUNCATE placeholder gets > > added to config.h.in), and rerun configure and make. > > > > It looks like there have been some autoconf changes make in CVS after > > 1.1.16 was released. You might want to check out the current source > > to see if some of these issues have been fixed already. > > Thanks for your suggestions. Yes, this error is overcome after running "autoheader". But now another error of the same type appears: > ----------------------------------------------------- > mink.c:22: error: conflicting types for 'random' > /usr/include/stdlib.h:200: error: previous declaration of 'random' was here > mink.c:22: error: conflicting types for 'random' > ----------------------------------------------------- That's because after including the header that provides a declaration for random (stdlib.h), the author decided to include another of his own for some reason, but he used the wrong return type so gcc complained. Just remove like 22 of mink.c. -- Dan Nelson dnelson@allantgroup.com