Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!uunet!magrana1!rob From: rob@magrana1.uucp (Rob Duncan) Subject: how to build libg++-2.3 Message-ID: <CA0rKL.1A5@magrana1.uucp> Summary: include file conflicts Organization: Pomegranate Technology, Inc. X-Newsreader: Tin 1.1 PL4 Date: Sun, 11 Jul 1993 21:26:45 GMT Lines: 47 i am attempting to build libg++2.3 but i'm running into problems with conflicts between the standard 386bsd include files and those distributed with libg++. i have the same problems whether or not i run fixincludes when i installed gcc-2.3.3. i feel sure that there must be some simple cause (and cure) for all this. thanks in advance for any help you can give. here is a log of the errors that i get: gcc -g -O -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c AllocRing.cc In file included from ./../g++-include/unistd.h:25, from ./std.h:28, from AllocRing.cc:22: /usr/include/unistd.h:133: conflicting types for `int getpagesize ()' ./../g++-include/memory.h:21: previous declaration of `unsigned int getpagesize (...)' /usr/include/unistd.h:145: conflicting types for `int profil (char *, int, int, int)' ./../g++-include/time.h:98: previous declaration of `void profil (...)' /usr/include/unistd.h:178: conflicting types for `void usleep (unsigned int)' ./../g++-include/time.h:97: previous declaration of `unsigned int usleep (unsigned int)' In file included from ./std.h:28, from AllocRing.cc:22: ./../g++-include/unistd.h:68: conflicting types for `int brk (...)' /usr/include/unistd.h:114: previous declaration of `char * brk (const char *)' ./../g++-include/unistd.h:76: conflicting types for `void encrypt (...)' /usr/include/unistd.h:120: previous declaration of `int encrypt (char *, int)' ./../g++-include/unistd.h:117: conflicting types for `void * sbrk (...)' /usr/include/unistd.h:155: previous declaration of `char * sbrk (int)' ./../g++-include/unistd.h:119: conflicting types for `int syscall (...)' ./../g++-include/unistd.h:119: A parameter list with an ellipsis can't match ./../g++-include/unistd.h:119: an empty parameter name list declaration. /usr/include/unistd.h:174: previous declaration of `int syscall (int, ...)' ./../g++-include/unistd.h:126: conflicting types for `short int setpgrp (...)' /usr/include/unistd.h:165: previous declaration of `int setpgrp (short int, short int)' ./../g++-include/unistd.h:140: conflicting types for `short int vfork (...)' /usr/include/unistd.h:180: previous declaration of `int vfork ()' In file included from ./std.h:29, from AllocRing.cc:22: ./../g++-include/stdio.h:116: conflicting types for `char * fgets (char *, int, struct __sFILE*)' /usr/include/stdio.h:203: previous declaration of `char * fgets (char *, unsigned int, struct __sFILE*)' *** Error code 1 Stop. *** Error code 1 Stop. -- Rob Duncan Talk: +1-415-325-8780 Pomegranate Technology, Inc. Fax: +1-415-321-1334 235 Embarcadero Road UUCP: ...!uunet!magrana1!r.duncan Palo Alto, CA 94301 Internet: r.duncan@pomegranate.com