From owner-freebsd-current@FreeBSD.ORG Sun May 4 12:08:09 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6A9D37B401 for ; Sun, 4 May 2003 12:08:09 -0700 (PDT) Received: from web40310.mail.yahoo.com (web40310.mail.yahoo.com [66.218.78.89]) by mx1.FreeBSD.org (Postfix) with SMTP id 6FCCB43FBD for ; Sun, 4 May 2003 12:08:09 -0700 (PDT) (envelope-from m_evmenkin@yahoo.com) Message-ID: <20030504190809.31938.qmail@web40310.mail.yahoo.com> Received: from [207.175.241.198] by web40310.mail.yahoo.com via HTTP; Sun, 04 May 2003 12:08:09 PDT Date: Sun, 4 May 2003 12:08:09 -0700 (PDT) From: Maksim Yevmenkin To: current@freebsd.org, Pav Lucistnik In-Reply-To: <2E7E8A35375D1449A6F28D5E022E67310AC4CF@USSC8MS04.Global.Cwintra.Com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: same define in two header files X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 May 2003 19:08:10 -0000 Pav, > I can no longer compile obexapp (third-party program from Maksim's > Bluetooth suite) on today -CURRENT. It complains about few limits.h > defines being redefined. > > cc -O -pipe -g -mcpu=pentiumpro -g -I/usr/local/include > -I/usr/local/include/glib12 -I/usr/local/include/openobex > -I../../src/sys/netgraph/bluetooth/include -Wsystem-headers -Werror > -Wall -Wno-format-y2k -Wno-uninitialized -c main.c > In file included from /usr/local/include/glib12/glibconfig.h:10, > from /usr/local/include/glib12/glib.h:66, > from main.c:36: > /usr/include/float.h:47:1: "FLT_DIG" redefined > In file included from /usr/include/limits.h:128, > from /usr/local/include/glib12/glibconfig.h:9, > from /usr/local/include/glib12/glib.h:66, > from main.c:36: > /usr/include/sys/limits.h:108:1: this is the location of the previous > definition hmm... > ... and FLT_MIN, FLT_MAX, DBL_DIG, DBL_MIN, DBL_MAX. I looked and those > defines are in both /usr/include/float.h and /usr/include/sys/limits.h, > is this ok? perhaps the problem is with /usr/local/include/glib12/glibconfig.h. it includes both float.h and limits.h. as workaround try to comment out #include line in /usr/local/include/glib12/glibconfig.h /usr/local/include/glib12/glibconfig.h is autogenerated (or so it seems) perhaps its just port issue? i'm building glib12 port now to verify this. thanks, max __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com