From owner-freebsd-current@FreeBSD.ORG Mon Jul 26 02:44:37 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01CCC1065670 for ; Mon, 26 Jul 2010 02:44:37 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 950748FC19 for ; Mon, 26 Jul 2010 02:44:36 +0000 (UTC) Received: by ewy26 with SMTP id 26so747356ewy.13 for ; Sun, 25 Jul 2010 19:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=nl/GTD4OQQ83sie+R0wCwbrjs16lN0jGrSuOEC6WjJs=; b=cM8hIexYf8kEYQ7URzO1F4QYOvFyEC7wiLdl52RL7CLXWOV8r+RNd/Yz+B0YgiTRt+ UgJlYWNoLoE9YPJ6Zp2pzY6nlovU+funY075GsewsjkAEZjtQ0qMl5YPofFPRjLKcDcp zxvsVSNRZcCaS1sO1yxzPGPU9UL7trZxi1NXo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=m2hGYtdgfgNSWF5J2rcs3NLvLXdVhPoZUdw/P/x06+H/gmGTgNVrpNDv4p6+8CRzBH Mtk+yiQTllxc0lusA2EeLOcZS86eNDTXfOlMre8ObkfvbPW40FZ4LV4/vGbR8ME/3FXC It3HIdO3RytYVYE/UFsNQN2xmBoCsNBt+YgT8= Received: by 10.213.32.141 with SMTP id c13mr2901618ebd.75.1280112275483; Sun, 25 Jul 2010 19:44:35 -0700 (PDT) Received: from localhost ([85.17.254.135]) by mx.google.com with ESMTPS id x54sm4857806eeh.17.2010.07.25.19.44.32 (version=SSLv3 cipher=RC4-MD5); Sun, 25 Jul 2010 19:44:34 -0700 (PDT) From: Anonymous To: Juergen Lock References: <20100724202440.GA5245@triton8.kn-bremen.de> <20100724225900.GA3433@triton8.kn-bremen.de> <20100725172709.GA24551@triton8.kn-bremen.de> Date: Mon, 26 Jul 2010 06:44:29 +0400 In-Reply-To: <20100725172709.GA24551@triton8.kn-bremen.de> (Juergen Lock's message of "Sun, 25 Jul 2010 19:27:09 +0200") Message-ID: <866303otbl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@freebsd.org, Ryan Stone Subject: Re: -nostdinc, , and X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 26 Jul 2010 02:44:37 -0000 Juergen Lock writes: > On Sun, Jul 25, 2010 at 12:59:00AM +0200, Juergen Lock wrote: >> On Sat, Jul 24, 2010 at 05:17:51PM -0400, Ryan Stone wrote: >> > I believe that you should be using and >> >> Aaah thank you! :) I shall make a patch tomorrow. > > Anyone want to test this patch on head? It can go in > /usr/ports/emulators/kqemu-kmod-devel/files/patch-common-kqemu_int.h: > > Thanx, :) > Juergen > > --- common/kqemu_int.h.orig > +++ common/kqemu_int.h > @@ -17,8 +17,14 @@ > * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > */ > #ifndef __ASSEMBLY__ > +#ifdef __FreeBSD__ > +#include > +#include > +#include You're not gonna make @ and machine symlinks and include them using `-I@'? I think typedefs need to be hidden, too. gcc -Wall -O2 -fomit-frame-pointer -fno-strict-aliasing -Werror -mno-red-zone -fno-stack-protector -fpic -D__KERNEL__ -nostdinc -iwithprefix include -I. -I.. -c -o monitor.o monitor.c -I@ In file included from monitor.c:20: kqemu_int.h:31: error: redefinition of typedef 'uint8_t' @/sys/types.h:84: error: previous declaration of 'uint8_t' was here kqemu_int.h:32: error: redefinition of typedef 'uint16_t' @/sys/types.h:89: error: previous declaration of 'uint16_t' was here kqemu_int.h:33: error: redefinition of typedef 'uint32_t' @/sys/types.h:94: error: previous declaration of 'uint32_t' was here kqemu_int.h:35: error: redefinition of typedef 'uint64_t' @/sys/types.h:99: error: previous declaration of 'uint64_t' was here kqemu_int.h:40: error: redefinition of typedef 'int8_t' @/sys/types.h:64: error: previous declaration of 'int8_t' was here kqemu_int.h:41: error: redefinition of typedef 'int16_t' @/sys/types.h:69: error: previous declaration of 'int16_t' was here kqemu_int.h:42: error: redefinition of typedef 'int32_t' @/sys/types.h:74: error: previous declaration of 'int32_t' was here kqemu_int.h:44: error: redefinition of typedef 'int64_t' @/sys/types.h:79: error: previous declaration of 'int64_t' was here BTW, the port doesn't respect CC and CFLAGS. > +#else > #include > #include > +#endif > > #ifndef NO_STD_TYPES >