Subject: Re: compiling
To: Mr BOFH <root@macaroni.cs.wits.ac.za>
From: Allen Briggs <briggs@puma.macbsd.com>
List: port-mac68k
Date: 08/27/1996 13:21:05
> look, i admit it, i'm not a c programmer and never pretended to be. so
> far, out of 5 apps i've ftp'd, i've only got xed to compile. all the rest
> bum out, with something like this:

Get some newer apps...  ;-)

> cc -O   -c commands.c
> In file included from jove.h:301, from commands.c:8:
> externs.h:138: conflicting types for `lseek'
> ?
> /usr/include/sys/types.h:90: previous declaration of `lseek'

The app should not be attempting to prototype lseek().  Take a look and
see if it's conditional at all.

> In file included from commands.c:26:
> sysprocs.h:36: redefinition of `pid_t'
> /usr/include/sys/types.h:75: `pid_t' previously declared here

Basically the same here.
In both of these cases, the system declaration is _probably_ the correct
one and the offending local one should be deleted.  However, most packages
have some mechanism in place to fix this sort of thing--defines in some
header file(s), Makefile(s), etc.

-allen

-- 
              Allen Briggs - end killing - briggs@macbsd.com
   Where does all my time go?  <a href="http://www.macbsd.com/">Here</a>
                           and <a href="http://www.rrinc.com/">Here</a>