[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] [PATCH] compiling error on grolbp with latest CVS update
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] [PATCH] compiling error on grolbp with latest CVS update |
Date: |
Sat, 10 Jun 2000 10:33:03 +0000 (GMT) |
> lbp.cc:37: declaration of C function `int strncasecmp(const char *,
> const char *, int)' conflicts with
> /usr/include/strings.h:52: previous declaration `int
> strncasecmp(const char *, const char *, unsigned int)' here
>
> With all evidence, there's a typo in the lbp.cc file. Here's a patch for
> it:
>
> -#ifdef HAVE_STRNCASECMP
> +#ifndef HAVE_STRNCASECMP
> extern "C" {
> // SunOS's string.h fails to declare this.
> int strncasecmp(const char *, const char *, int);
This is the wrong patch. The very problem is that certain old
versions of Sun's compiler actually has strncasecmp() but no prototype
for it.
The right fix would be to use `size_t' instead of `int'. Ken, can you
please check whether `size_t' works?
Or is there a better solution?
Werner
- [Groff] [PATCH] compiling error on grolbp with latest CVS update, Nicola Bernardini, 2000/06/09
- Re: [Groff] [PATCH] compiling error on grolbp with latest CVS update,
Werner LEMBERG <=
- Re: [Groff] [PATCH] compiling error on grolbp with latest CVS update, Gael Queri, 2000/06/10
- Re: [Groff] [PATCH] compiling error on grolbp with latest CVS update, Werner LEMBERG, 2000/06/10
- Re: [Groff] [PATCH] compiling error on grolbp with latest CVS update, Gael Queri, 2000/06/10
- Re: [Groff] [PATCH] compiling error on grolbp with latest CVS update, Werner LEMBERG, 2000/06/11
- The mess of charsets (was Re: [Groff] [PATCH] compiling error on grolbp with latest CVS update), Gael Queri, 2000/06/13
- [Groff] Re: The mess of charsets, Werner LEMBERG, 2000/06/13
Re: [Groff] [PATCH] compiling error on grolbp with latest CVS, Keith Thompson, 2000/06/10