groff
[Top][All Lists]
Advanced

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

[Groff] [PATCH] compiling error on grolbp with latest CVS update


From: Nicola Bernardini
Subject: [Groff] [PATCH] compiling error on grolbp with latest CVS update
Date: Fri, 9 Jun 2000 09:48:15 +0200 (CEST)

Last night I updated my groff sandbox from CVS and trying to compile
it I got this compiling error:

make[2]: Entering directory 
`/usr/local/user/nicb/tr/src/groff-CVS/src/devices/grolbp'
g++ -mcpu=k6 -I. -I/usr/local/user/nicb/tr/src/groff-CVS/src/devices/grolbp 
-I/usr/local/user/nicb/tr/src/groff-CVS/src/include 
-I/usr/local/user/nicb/tr/src/groff-CVS/src/include -DHAVE_UNISTD_H=1 
-DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRINGS_H=1 -DSTDLIB_H_DECLARES_PUTENV=1 -DSTDIO_H_DECLARES_POPEN=1 
-DSTDIO_H_DECLARES_PCLOSE=1 -DRET_TYPE_SRAND_IS_VOID=1 -DHAVE_SYS_NERR=1 
-DHAVE_SYS_ERRLIST=1 -DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void 
-DHAVE_STRUCT_EXCEPTION=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 
-DHAVE_FMOD=1 -DHAVE_STRTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1 
-DHAVE_RENAME=1 -DHAVE_MKSTEMP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 
-DHAVE_STRSEP=1 -DHAVE_STRDUP=1 -DSYS_SIGLIST_DECLARED=1  -g -O2  -c lbp.cc
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
make[2]: *** [lbp.o] Error 1
make[2]: Leaving directory 
`/usr/local/user/nicb/tr/src/groff-CVS/src/devices/grolbp'
make[1]: *** [src/devices/grolbp] Error 2
make[1]: Leaving directory `/usr/local/user/nicb/tr/src/groff-CVS'
make: *** [all] Error 2

With all evidence, there's a typo in the lbp.cc file. Here's a patch for
it:

-8<---------------------------------------------------------------------
--- src/devices/grolbp/lbp.cc.orig      Fri Jun  9 09:38:24 2000
+++ src/devices/grolbp/lbp.cc   Fri Jun  9 09:38:27 2000
@@ -31,7 +31,7 @@
 #include "lbp.h"
 #include "charset.h"
 
-#ifdef HAVE_STRNCASECMP
+#ifndef HAVE_STRNCASECMP
 extern "C" {
   // SunOS's string.h fails to declare this.
   int strncasecmp(const char *, const char *, int);
-8<---------------------------------------------------------------------

hope this helps.

nicb

+----------------------+
|Nicola Bernardini     |
|E-mail: address@hidden |
+----------------------+



reply via email to

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