Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 1996 13:05:27 +0200 (MET DST)
From:      grog@lemis.de (Greg Lehey)
To:        root@eer-ss201.internet1.net (Super-User)
Cc:        questions@FreeBSD.org
Subject:   Re: Header confilcts
Message-ID:  <199605291105.NAA20260@allegro.lemis.de>
In-Reply-To: <199605290031.UAA06203@eer-ss201.internet1.net> from "Super-User" at May 28, 96 08:31:52 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Super-User writes:
>
>    I have FreeBSD 2.5.0 installed and I seem to be having some problems
> compiling GNU software.  Specifically GNU SED-2.5 and INN-1.4.  I keep getting
> errors like the following:
>
> gcc -I../include -g  -c checkart.c -o checkart.o
> In file included from checkart.c:8:
> ../include/clibrary.h:131: conflicting types for `_exit'
> /usr/include/unistd.h:53: previous declaration of `_exit'
> make[1]: *** [checkart.o] Error 1
>
> Is there a problem with the BSD header file or do I need to modify these
> packages some how? 

I'm afraid there are too many packages which try to out-guess the
system header files.  The reason is that too many commercial systems
don't supply complete header files, so if you compile expecting
prototypes, you have to supply your own definitions of system header
files.  These commercial systems are, of course, incomplete.

FreeBSD is not incomplete, but the packages guess wrong.  The best
thing to do is to #ifdef out the corresponding sections of the header
files in the packages (use #ifndef FreeBSD).

> I have installed the GNU-GCC-2.7.2 compiler and GNU-MAKE without
> problems, but the GNU-CLIBS would not install.  Always seems to be a
> header conflict.

Do you mean GNU libc?  Why would you want to do that?

> Thank you for your time.  Sorry if this is the wrong place to post
> this, but I don't know where to look, BSD or the packages.

I think this is a valid, if somewhat technical question.

Greg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605291105.NAA20260>