[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problems building gdb



Using the bit_scripts, I have encountered the following problem:

gmake[1]: Entering directory
`/home/cross-19980908/tools/build-i386-gdb/mmalloc'
gcc -c -O2 -g -DHAVE_VALLOC=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
-DHAVE_LIMITS_H=1 -DHAVE_STDDEF_H=1  -I.
-I../../gdb-4.17/mmalloc/../include ../../gdb-4.17/mmalloc/mm.c
In file included from /usr/include/fcntl.h:81,
                 from ../../gdb-4.17/mmalloc/mmap-sup.c:26,
                 from ../../gdb-4.17/mmalloc/mm.c:33:
/usr/include/unistd.h:766: conflicting types for `getpagesize'
../../gdb-4.17/mmalloc/mvalloc.c:27: previous declaration of
`getpagesize'
In file included from ../../gdb-4.17/mmalloc/mm.c:33:
../../gdb-4.17/mmalloc/mmap-sup.c:41: conflicting types for
`getpagesize'
/usr/include/unistd.h:766: previous declaration of `getpagesize'
gmake[1]: *** [mm.o] Error 1
gmake[1]: Leaving directory
`/home/cross-19980908/tools/build-i386-gdb/mmalloc'
gmake: *** [all-mmalloc] Error 2
ERROR: **** FAILED **** build

Note that files are being included from the host /usr/include
directory.  This can't be right.

Any suggestions on how to fix would be most appreciated.

Thank you in aFrom vger.rutgers.edu!owner-linux-net-outgoing Sat Sep 19 07:35:39 1998
Return-Path: <owner-linux-net-outgoing at vger.rutgers.edu>
Received: from samurai1.plessey.com.au(really [150.207.60.3]) by desertoak.plessey.com.au
	via sendmail with smtp
	id <m0zK8BF-001kJqa at desertoak.plessey.com.au>
	for <cjohns at plessey.com.au>; Sat, 19 Sep 98 07:35:05 +1000 (AEST)
	(/\##/\ Smail3.1.30.13 #30.11 built 8-may-96)
Received: (qmail 23496 invoked from network); 18 Sep 1998 21:31:24 -0000
Received: from tankcave.plessey.com.au (150.207.60.2)
  by samurai1.plessey.com.au with SMTP; 18 Sep 1998 21:31:24 -0000
Received: from samba.anu.edu.au ([150.203.164.44]) by tankcave.plessey.com.au
          via smtpd (for samurai1.plessey.com.au [150.207.60.3]) with SMTP; 18 Sep 1998 21:20:10 UT
Received: from vger.rutgers.edu ([128.6.190.2]:24201 "EHLO vger.rutgers.edu" ident: "TIMEDOUT") by samba.anu.edu.au with ESMTP id <12670191-7510>; Sat, 19 Sep 1998 07:33:22 +1000
Received: by vger.rutgers.edu id <154264-16160>; Fri, 18 Sep 1998 12:04:48 -0400
Received: from SOUTH-STATION-ANNEX.MIT.EDU ([18.72.1.2]:1431 "HELO MIT.EDU" ident: "NO-IDENT-SERVICE[2]") by vger.rutgers.edu with SMTP id <154686-8088>; Fri, 18 Sep 1998 10:41:56 -0400
Received: from TESS-TURBO.MIT.EDU by MIT.EDU with SMTP
	id AA25109; Fri, 18 Sep 98 14:10:35 EDT
Received: by tess-turbo.mit.edu (SMI-8.6/4.7) id OAA09876; Fri, 18 Sep 1998 14:10:42 -0400
Message-Id: <199809181810.OAA09876 at tess-turbo.mit.edu>
X-Mailer: exmh version 2.0.2 2/24/98
To:	Peter Hanecak <hany at fornax.elf.stuba.sk>
Cc:	linux-gcc at vger.rutgers.edu, XFree86 at XFree86.org, net-patches at lxorguk.ukuu.org.uk, linux-net at vger.rutgers.edu
Subject: Re: buf report 
In-Reply-To: Your message of "Fri, 18 Sep 1998 17:43:05 +0200."
             <Pine.LNX.3.96.980918173933.9090A-300000 at fornax.elf.stuba.sk> 
Date:	Fri, 18 Sep 1998 14:10:42 EDT
From:	Kev <klmitch at MIT.EDU>
X-Orcpt: rfc822;linux-net at vger.rutgers.edu
Sender: owner-linux-net at vger.rutgers.edu
Precedence: bulk
X-Loop: majordomo at vger.rutgers.edu

> problem:  i have linux box with X Windows. i have been using kernel 2.0.35
> compiled with gcc version 2.7.2.3. then i made update of gcc from version
> 2.7.2.3 to version 2.8.1 . then i recompiled my kernel (same options,

There's your problem; don't compile the 2.0 kernels with gcc > 2.7.2.3.
-- 
Kevin L. Mitchell <klmitch at mit.edu>
-------------------------  -. .---- --.. ..- -..-  --------------------------
http://web.mit.edu/klmitch/www/              (PGP5 keys availiable from here)
   DSS Key ID ED0DB34E: D9BF 0E74 FDCB 43F5 C597  878F 9455 EC24 ED0D B34E
   DH  Key ID 2A2C31D4: 1A77 4BA5 9E32 14AE 87DA  9FEC 7106 FC62 2A2C 31D4

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo at vger.rutgers.edu