From owner-freebsd-current Fri Nov 2 0:34:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from smtp.shikoku.ne.jp (smtp.shikoku.ne.jp [210.143.160.28]) by hub.freebsd.org (Postfix) with SMTP id 63BC137B407 for ; Fri, 2 Nov 2001 00:34:01 -0800 (PST) Received: (qmail 22324 invoked from network); 2 Nov 2001 08:33:14 -0000 Received: from unknown (HELO mebius.private) (210.143.174.82) by smtp.shikoku.ne.jp with SMTP; 2 Nov 2001 08:33:14 -0000 Date: Fri, 02 Nov 2001 17:36:04 +0900 (JST) Message-Id: <20011102.173604.78790653.nin@smtp.shikoku.ne.jp> To: ache@FreeBSD.org Cc: hackers@FreeBSD.org, current@FreeBSD.org Subject: About stscasestr() prototyped with string.h of current lib From: NINOMIYA Hideyuki X-cite-me: nin X-PGP-Fingerprint: 6C59 EC08 5B23 6490 44D0 7CD3 DA40 219F 7114 8553 X-PGP-Public-Key: http://user.shikoku.ne.jp/~nin/pgp/public-key.txt X-URI: http://user.shikoku.ne.jp/~nin/index.html X-URI: http://home.Jp.FreeBSD.org/~nin/index.html X-Mailer: Mew version 3.0.50 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello # please Cc: to me in reply time. because, i doesn't subscribe # in to hackers and current. There is a little problem in ports build on current, and I send an email to you with its having been the function that you committed to because the cause seemed to be lib function of current. include/string.h cvslog: ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- 1.8 Wed Oct 10 2:19:09 JST 2001 UTC by ache Implement strcasestr() which many others (f.e. Linux) already have ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- Ports mail/mew2 has that problem, in current ports build error message: ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- mewls.c:128: conflicting types for `strcasestr' /usr/include/string.h:86: previous declaration of `strcasestr' ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- It is reported in ports-jp@jp.freebsd.org that there is the problem that mewls.c which this ports includes don't build. If Linux has the same problems in build of mew2, mew2 should solve it as a problem of mew2. But he had the report that he had on to build without a problem with Linux (gcc-2.95.4 or 3.0.2, glibc-2.2.4, PPC etc...) in a mew-dist mailing list (This is a thing for Mew develop- ment. http://www.mew.org/). That report said, Linux's /usr/include/string.h ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- #ifdef __USE_GNU /* Similar to `strstr' but this function ignores the case of both strings. */ extern char *strcasestr (__const char *__haystack, __const char *__needle) __THROW __attribute_pure__; #endif ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- This seems to be the prototyping that becomes effective when special definitions of __USE_GNU is done. On this account a problem seems not to have been caused by general program in that this prototyping was not referred to, and mewls.c can build. In implementation with current, even if you implemented it for the reason that Linux included, there is the problem that behavior is different from Linux in about prototyping reference. I consider a method to solve this problem shuts up this function in a cage of special definitions similar to __USE_GNU of Linux, or remove it. ---- *************************************************************** * This message is a thing by output of automatic translation. * * Therefore it will be for there to be a lot of funny parts. * * Please approve it. * *************************************************************** NINOMIYA(family name) Hideyuki(fast name) @ ehime japan mailto:nin@shikoku.ne.jp mailto:nin@Jp.FreeBSD.org PGP-Fingerprint:6C59 EC08 5B23 6490 44D0 7CD3 DA40 219F 7114 8553 PGP-Public-Key: http://user.shikoku.ne.jp/~nin/pgp/public-key.txt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message