From owner-freebsd-current Thu May 16 10:15:36 2002 Delivered-To: freebsd-current@freebsd.org Received: from espresso.q9media.com (espresso.q9media.com [216.254.138.122]) by hub.freebsd.org (Postfix) with ESMTP id 2EFE437B405; Thu, 16 May 2002 10:15:20 -0700 (PDT) Received: (from mike@localhost) by espresso.q9media.com (8.11.6/8.11.6) id g4GHE1m13071; Thu, 16 May 2002 13:14:01 -0400 (EDT) (envelope-from mike) Date: Thu, 16 May 2002 13:14:01 -0400 From: Mike Barcroft To: Riccardo Torrini Cc: ports@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: /usr/ports/emulators/bochs on -CURRENT Message-ID: <20020516131401.E66219@espresso.q9media.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from riccardo@torrini.org on Thu, May 16, 2002 at 11:16:35AM +0200 Organization: The FreeBSD Project Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Riccardo Torrini writes: > # cd /usr/ports/emulators/bochs && make > [...] > gmake[1]: Entering directory `/usr/ports/emulators/bochs/work/bochs-1.4/iodev' > [...] > c++ -c -O2 -pipe -march=pentiumpro -fno-rtti -fno-exceptions > -fomit-frame-pointer -I/usr/X11R6/include -I.. -I./.. > -I../instrument/stubs -I./../instrument/stubs cdrom.cc -o cdrom.o > In file included from cdrom.cc:40: > /usr/include/arpa/inet.h:102: conflicting types for `typedef __uint32_t > socklen_t' > ../osdep.h:105: previous declaration as `typedef int socklen_t' > gmake[1]: *** [cdrom.o] Error 1 > gmake[1]: Leaving directory `/usr/ports/emulators/bochs/work/bochs-1.4/iodev' > gmake: *** [iodev/libiodev.a] Error 2 > *** Error code 2 The problem appears to be that osdep.h is defining types it should not be defining. Software should include system headers to get new types, not try and out-smart the OS by defining its own (possibly incorrect) types. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message