From owner-freebsd-bugs Wed Feb 5 9:30:23 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0A2A37B407 for ; Wed, 5 Feb 2003 09:30:21 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D76A43F43 for ; Wed, 5 Feb 2003 09:30:21 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h15HULNS043659 for ; Wed, 5 Feb 2003 09:30:21 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h15HULPb043657; Wed, 5 Feb 2003 09:30:21 -0800 (PST) Date: Wed, 5 Feb 2003 09:30:21 -0800 (PST) Message-Id: <200302051730.h15HULPb043657@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Garrett Wollman Subject: bin/47949: gcc 3.2.1 / strcasecmp() weirdness Reply-To: Garrett Wollman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/47949; it has been noted by GNATS. From: Garrett Wollman To: Edwin Groothuis Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/47949: gcc 3.2.1 / strcasecmp() weirdness Date: Wed, 5 Feb 2003 12:29:55 -0500 (EST) < said: > I'm trying to compile security/clamav (ports/45686) > It fails with: > zziplib/zzip-file.c: In function `zzip_file_open': > zziplib/zzip-file.c:116: `strcasecmp' undeclared (first use in this function) > 116: cmp = (o_mode & ZZIP_CASEINSENSITIVE)? strcasecmp: strcmp; Which tells me that is not included -- a bug that I also ran into when I tried to compile this program. I'm told by the author that it is fixed in the latest development sources. (It's not as simple as just adding `#include ', because the program comes with its own header also called "strings.h", and passes -I flags to the compiler that make it impossible to see the system version.) > I add this line before line 116: > if (strcasecmp("12","11")) printf(""); > And it compiles without a problem. You have now implicitly declared the function, so the compiler now has a declaration in scope when compiling line 116. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message