NetBSD-Bugs archive

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

Re: toolchain/53314: strncasecmp conflict when cross-compiling libgroff on FreeBSD



The following reply was made to PR toolchain/53314; it has been noted by GNATS.

From: Sevan Janiyan <venture37%geeklan.co.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: toolchain/53314: strncasecmp conflict when cross-compiling
 libgroff on FreeBSD
Date: Tue, 6 Nov 2018 09:18:18 +0000

 Applied the following patch on FreeBSD 13-CURRENT as requested
 
 Index: external/gpl2/groff/dist/configure
 ===================================================================
 RCS file: /cvsroot/src/external/gpl2/groff/dist/configure,v
 retrieving revision 1.1.1.1
 diff -u -p -u -r1.1.1.1 configure
 --- external/gpl2/groff/dist/configure  13 Jan 2016 18:41:45 -0000
 1.1.1.1
 +++ external/gpl2/groff/dist/configure  6 Nov 2018 09:15:08 -0000
 @@ -2511,6 +2511,8 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
     'extern "C" void std::exit (int); using std::exit;' \
     'extern "C" void exit (int) throw ();' \
     'extern "C" void exit (int);' \
 +   'extern "C" [[noreturn]] void exit (int);' \
 +   'extern "C" _Noreturn void exit (int);' \
     'void exit (int);'
  do
    cat >conftest.$ac_ext <<_ACEOF
 
 But it still failed building the amd64 tools on an amd64 host with
 c++ -I. -I/sandbox/usr/src/external/gpl2/groff/dist/src/libs/libgroff
 -I//sandbox/obj/amd64/tools/groff/build/src/include
 -I/sandbox/usr/src/tools/groff/../../external/gpl
 2/groff/dist/src/include -DHAVE_CONFIG_H -O
 -I//sandbox/tools/include/compat -I/sandbox/usr/src/tools/compat
 -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -c  /sandbox/u
 sr/src/external/gpl2/groff/dist/src/libs/libgroff/color.cpp
 
 
 In file included from
 /sandbox/usr/src/external/gpl2/groff/dist/src/libs/libgroff/color.cpp:28:
 
 
 /sandbox/usr/src/tools/groff/../../external/gpl2/groff/dist/src/include/lib.h:119:18:
 error: conflicting types for 'strncasecmp'
 
 extern "C" { int strncasecmp(const char *, const char *, int); }
 
 
                  ^
 
 
 /usr/include/strings.h:66:6: note: previous declaration is here
 
 
 int      strncasecmp(const char *, const char *, size_t) __pure;
 
 
          ^
 
 
 1 error generated.
 
 
 
 
 
 *** Failed target:  color.o
 
 
 *** Failed command: c++ -I.
 -I/sandbox/usr/src/external/gpl2/groff/dist/src/libs/libgroff
 -I//sandbox/obj/amd64/tools/groff/build/src/include
 -I/sandbox/usr/src/tools/groff
 /../../external/gpl2/groff/dist/src/include -DHAVE_CONFIG_H -O
 -I//sandbox/tools/include/compat -I/sandbox/usr/src/tools/compat
 -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -c
 /sandbox/usr/src/external/gpl2/groff/dist/src/libs/libgroff/color.cpp
 
 
 *** Error code 1
 


Home | Main Index | Thread Index | Old Index