Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Dec 1998 18:35:54 +0000
From:      Ruslan Shevchenko <Ruslan@Shevchenko.Kiev.UA>
To:        hackers@FreeBSD.ORG
Subject:   inclusion of system headers.
Message-ID:  <366EC309.4E81E900@Shevchenko.Kiev.UA>

next in thread | raw e-mail | index | archive | help

 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 <sys/uio.h> and <sys/types.h>,
which breaks clear compiling of erlang  (which yesteday was releasing
as open source with NPL-style license).

<begin quote from erlang mail list:>

> -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 <sys/types.h>

just before the inclusion of sys/uio.h. Thanks for trying it out!

<end quote>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?366EC309.4E81E900>