From owner-freebsd-questions@FreeBSD.ORG Tue May 17 15:31:09 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 310BE16A4CE for ; Tue, 17 May 2005 15:31:09 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 071EC43D41 for ; Tue, 17 May 2005 15:31:07 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j4HFT2tF026191; Tue, 17 May 2005 18:29:03 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j4HFUjA4083189; Tue, 17 May 2005 18:30:45 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)j4HFUilp083167; Tue, 17 May 2005 18:30:44 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 17 May 2005 18:30:44 +0300 From: Giorgos Keramidas To: Xu Qiang Message-ID: <20050517153043.GA78771@orion.daedalusnetworks.priv> References: <20050517074951.208D31D969@imss.sgp.fujixerox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050517074951.208D31D969@imss.sgp.fujixerox.com> cc: Dan Nelson 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 15:31:09 -0000 On 2005-05-17 15:59, Xu Qiang wrote: >Xu Qiang wrote: >> 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' >> ----------------------------------------------------- >> >> This file is in "nngs-1.1.16/src" directory, and when I run >> autoheader in this directory: >> ----------------------------------------------------- >> autoheader: `configure.ac' or `configure.in' is required >> ----------------------------------------------------- > > Btw, I just found there is a line "#undef HAVE_RANDOM" in config.h.in, > so is it due to the src file (mink.c) is not in the same directory as > config.h.in? (It is one level below: config.h.in is in nngs-1.1.16, > while mink.c is in nngs-1.1.16/src) The autoheader/autoconf commands have to be run in the directory that contains configure.in or configure.ac (usually the top level directory of the entire distribution).