Subject: Re: Changes to endian.h....
To: Mike Long <mike.long@analog.com>
From: Jules Bean <jmlb2@hermes.cam.ac.uk>
List: current-users
Date: 01/02/1997 16:16:04
On Thu, 2 Jan 1997, Mike Long wrote:
>
> >Date: Thu, 2 Jan 1997 09:44:25 +0000 (GMT)
> >From: Jules Bean <jmlb2@hermes.cam.ac.uk>
> >
> >I had to add a #include <sys/types.h> to m68k/include/endian.h to get
> >fortune to compile when I was rebuilding the world...
> >
> >Alternatively, this line could have been added inside the fortune source
> >files... I don't know which is preferred...
>
> Exactly how does it fail? A dump of the errors generated (see
> script(1)) would be helpful.
>
> Someone has already submitted a PR related to this (3055), but it was
> closed because the problem was not reproducible. The problem may be
> specific to m68k-based ports.
Here are the last few lines of my make log file....
===> games/fortune/strfile
cc -O -Werror -c strfile.c
In file included from /usr/include/machine/endian.h:3,
from strfile.c:53:
/usr/include/m68k/endian.h:60: syntax error before `in_addr_t'
cc1: warnings being treated as errors
/usr/include/m68k/endian.h:60: warning: data definition has no type or
storage
class
/usr/include/m68k/endian.h:61: syntax error before `in_port_t'
/usr/include/m68k/endian.h:61: warning: data definition has no type or
storage
class
/usr/include/m68k/endian.h:64: syntax error before `htonl'
/usr/include/m68k/endian.h:64: warning: parameter names (without types) in
function declaration
/usr/include/m68k/endian.h:64: warning: data definition has no type or
storage
class
/usr/include/m68k/endian.h:65: syntax error before `htons'
...
It needs types.h to define the u_int32_t stuff...
I don't know why this problem should be m68k-specific...
Jules
/----------------+-------------------------------+---------------------\
| Jelibean aka | jules@mailbox.co.uk | D7 Wolfson Bldg. |
| Jules aka | jules@virtuality.net | Trinity College |
| Julian Bean | jmlb2@cam.ac.uk | Cambridge CB2 1TQ |
+----------------+-------------------------------+---------------------+
| "Le plus fructeux de tous les arts de vivre, c'est l'art de bien |
| vivre." - Ciceron |
\----------------------------------------------------------------------/