From owner-freebsd-questions Wed Nov 28 4: 0:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f89.law10.hotmail.com [64.4.15.89]) by hub.freebsd.org (Postfix) with ESMTP id 84E0737B417 for ; Wed, 28 Nov 2001 04:00:26 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 28 Nov 2001 04:00:26 -0800 Received: from 147.83.30.4 by lw10fd.law10.hotmail.msn.com with HTTP; Wed, 28 Nov 2001 12:00:26 GMT X-Originating-IP: [147.83.30.4] From: "Cristina Molla Garcia" To: questions@FreeBSD.org Subject: Building a new kernel Date: Wed, 28 Nov 2001 13:00:26 +0100 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Nov 2001 12:00:26.0346 (UTC) FILETIME=[4441F4A0:01C17804] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I want to build a new kernel but I have some problems when I'm compiling it. I am modifying a file "input.c" and I need to use the mathematical function "log", so I include "math.h". But it doesn't work. The compilation produces the following errors: /usr/include/math.h: 119: conflicting types for 'log' ../../sys/systm.h: 116: previous declaration for 'log' /usr/include/math.h: 119: warning: redundant redeclaration of 'log'in same scope ../../sys/systm.h: 116: previous declaration for 'log' /usr/include/math.h: 177: warning: function declaration isn't a prototype /usr/include/math.h: 260: warning: function declaration isn't a prototype After that, the compilation fails. I think that this problem occurs because the function log belongs to "math.h" and "systm.h". What can I do? I've tried different things but it doesn't work. Thanks, Cristina _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message