help-gnats
[Top][All Lists]
Advanced

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

gnats 3.113 trouble building with gcc 3.0.2


From: Craig Rodrigues
Subject: gnats 3.113 trouble building with gcc 3.0.2
Date: Sun, 28 Oct 2001 10:16:25 -0500
User-agent: Mutt/1.2.5i

Hi,

I had difficulty compiling gnats 3.113 with gcc 3.0.2,
under Redhat Linux 7.1.

gcc -c -g -O2 -I. -I./../include ./dummy.c
In file included from dummy.c:46:
functions.def: In function `main':
functions.def:37: too few arguments to function `strstr'


This patch solved the problem for me:


--- functions.def.orig  Sun Oct 28 10:05:32 2001
+++ functions.def       Sun Oct 28 10:15:40 2001
@@ -34,7 +34,7 @@
 DEF(strchr, char*, (s, c), CONST char *s AND int c)
 DEF(strdup, char*, (s1), char * s1)
 DEF(strrchr, char*, (s, c), CONST char *s AND int c)
-DEF(strstr, char*, (), NOTHING)
+DEF(strstr, char*, (s,c), CONST char *s AND CONST char *c)
 DEF(strtod, double, (), NOTHING)
 DEF(strtol, long, (), NOTHING)
 DEF(strtoul, unsigned long, (), NOTHING)


-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
address@hidden          


reply via email to

[Prev in Thread] Current Thread [Next in Thread]