From owner-freebsd-hackers Wed Dec 9 08:36:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA00755 for freebsd-hackers-outgoing; Wed, 9 Dec 1998 08:36:02 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from gvinpin.grad.kiev.ua (KievglavArhit-UTC-28k8.ukrtel.net [195.5.25.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA00715 for ; Wed, 9 Dec 1998 08:35:50 -0800 (PST) (envelope-from Ruslan@Shevchenko.Kiev.UA) Received: from Shevchenko.Kiev.UA (kulshedra [10.0.1.99]) by gvinpin.grad.kiev.ua (8.8.7/8.8.7) with ESMTP id SAA15358 for ; Wed, 9 Dec 1998 18:33:49 +0200 Message-ID: <366EC309.4E81E900@Shevchenko.Kiev.UA> Date: Wed, 09 Dec 1998 18:35:54 +0000 From: Ruslan Shevchenko Reply-To: rssh@grad.kiev.ua X-Mailer: Mozilla 4.07 [en] (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: hackers@FreeBSD.ORG Subject: inclusion of system headers. Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Question: Are exists some reasons, for existing next situation: A.h refer to something, including in B.h, but A.h not include B.h . I think, this is design bug. In FreeBSD such situation, at least with and , which breaks clear compiling of erlang (which yesteday was releasing as open source with NPL-style license). > -DHAVE_FINITE=3D1 -DHAVE_DIRENT_H=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_WAIT_= ... > known-freebsd3.0/gzio.o -c -I/usr/home/rssh/erlang/erlang-47.4.0/erts/sys= > tem/emulator/zlib /usr/home/rssh/erlang/erlang-47.4.0/erts/system/emulato= > r/drv/gzio.c > In file included from /usr/home/rssh/erlang/erlang-47.4.0/erts/system/emu= > lator/sys.unix/driver_int.h:30, > from /usr/home/rssh/erlang/erlang-47.4.0/erts/system/emu= > lator/runtime/driver.h:30, > from /usr/home/rssh/erlang/erlang-47.4.0/erts/system/emu= > lator/drv/gzio.c:29: > /usr/include/sys/uio.h:88: parse error before `readv' > /usr/include/sys/uio.h:88: warning: data definition has no type or storag= Wow, long output... :-) Which seems to be the real cause of the error. The fix is to edit the file erts/system/emulator/sys.unix/driver_int.h and add #include just before the inclusion of sys/uio.h. Thanks for trying it out! P.S, I doubted this message as misc bug-report. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message