🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #748

bug in dbm.h and gcc (1.36) ??

#748
From: Duc Kim Nguyen
Date: Tue, 24 Oct 1989 19:34
59 lines
1783 bytes
While building X11 with gcc (1.36) and includes fixed, in particular the
file oscolor.c under os/4.2bsd, the cpp could not resolve `fetch' macro
fixed in dbm.h by fixincludes.  Here is some details:

Hardware: sun 3/60,
Software: SunOS 4.0.3, gcc(1.36)
Details:
/*** file tonto.c ***/
#include <dbm.h>
main()
{
        datum *f;

        f= fetch(f);
}
$ gcc -traditional -v -E -Wall tonto.c -o tonto.E
gcc version 1.36
 /usr/local/lib/gnu/Gcc/gcc-cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -traditional -Wall -D__HAVE_68881__ -Dmc68020 tonto.c -o tonto.E
GNU CPP version 1.36
tonto.c:6: macro or #include recursion too deep
/*** file tonto.E ***/
# 1 "tonto.c"
# 1 "/usr/local/lib/gnu/Gcc/gcc-include/dbm.h" 1
long	bitno;
long	maxbno;
long	blkno;
long	hmask;

char	pagbuf[1024];
char	dirbuf[4096];

int	dirf;
int	pagf;
int	dbrdonly;

typedef	struct
{
	char	*dptr;
	int	dsize;
} datum;

datum	*fetch();
datum	*firstkey();
datum	*nextkey();
datum   *makdatum();
datum   *firsthash();

long	calchash();
long	hashinc();

# 1 "tonto.c" 2

main()
{
	datum *f;

	f= *******************************************************************************************************************************************************************************************************(f);
}
Technical Details
Message-ID: <23642@cos.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!apple!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cos!duc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!apple!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cos!duc
From: duc@cos.com (Duc Kim Nguyen)
Newsgroups: gnu.gcc.bug,gnu.gcc
Subject: bug in  dbm.h and gcc (1.36) ??
Keywords: X, C, cpp
Message-ID: <23642@cos.com>
Date: 24 Oct 89 19:34:11 GMT
Distribution: gnu
Organization: Corporation for Open Systems, McLean, VA
Lines: 59