[pcre-dev] [Bug 2152] New: warning: "FWRITE" redefined ... e…

Page principale
Supprimer ce message
Auteur: admin
Date:  
À: pcre-dev
Nouveaux-sujets: [pcre-dev] [Bug 2152] warning: "FWRITE" redefined ... error: _O_BINARY undeclared, [pcre-dev] [Bug 2152] warning: "FWRITE" redefined ... error: _O_BINARY undeclared, [pcre-dev] [Bug 2152] warning: "FWRITE" redefined ... error: _O_BINARY undeclared, [pcre-dev] [Bug 2152] warning: "FWRITE" redefined ... error: _O_BINARY undeclared
Sujet: [pcre-dev] [Bug 2152] New: warning: "FWRITE" redefined ... error: _O_BINARY undeclared
https://bugs.exim.org/show_bug.cgi?id=2152

            Bug ID: 2152
           Summary: warning: "FWRITE" redefined ... error: _O_BINARY
                    undeclared
           Product: PCRE
           Version: N/A
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: william.braswell@???
                CC: pcre-dev@???


I have built Alien::PCRE2, which is a Perl software package which automatically
downloads and builds PCRE2:

https://metacpan.org/pod/Alien::PCRE2

The build is successful on most platforms:

http://matrix.cpantesters.org/?dist=Alien-PCRE2+0.012000

Unfortunately, the build errors on Cygwin in Windows:

http://www.cpantesters.org/cpan/report/6980e46d-9000-1014-8f87-37a394f39f87

[[[ BEGIN ERROR EXCERPT ]]]

gmake[1]: Entering directory
'C:/cygwin64/home/solimanod/.cpan/build/Alien-PCRE2-0.012000-uuMHST/_alien/build_GoVz/pcre2-10.30.837-DEV'
rm -f src/pcre2_chartables.c
ln -s
/home/solimanod/.cpan/build/Alien-PCRE2-0.012000-uuMHST/_alien/build_GoVz/pcre2-10.30.837-DEV/src/pcre2_chartables.c.dist
/home/solimanod/.cpan/build/Alien-PCRE2-0.012000-uuMHST/_alien/build_GoVz/pcre2-10.30.837-DEV/src/pcre2_chartables.c
C:/Strawberry/c/bin/gmake  all-am
gmake[2]: Entering directory
'C:/cygwin64/home/solimanod/.cpan/build/Alien-PCRE2-0.012000-uuMHST/_alien/build_GoVz/pcre2-10.30.837-DEV'
  CC       src/libpcre2_8_la-pcre2_auto_possess.lo
  CC       src/libpcre2_8_la-pcre2_compile.lo
  CC       src/libpcre2_8_la-pcre2_config.lo
  CC       src/libpcre2_8_la-pcre2_context.lo
  CC       src/libpcre2_8_la-pcre2_convert.lo
  CC       src/libpcre2_8_la-pcre2_dfa_match.lo
  CC       src/libpcre2_8_la-pcre2_error.lo
  CC       src/libpcre2_8_la-pcre2_find_bracket.lo
  CC       src/libpcre2_8_la-pcre2_jit_compile.lo
  CC       src/libpcre2_8_la-pcre2_maketables.lo
  CC       src/libpcre2_8_la-pcre2_match.lo
  CC       src/libpcre2_8_la-pcre2_match_data.lo
  CC       src/libpcre2_8_la-pcre2_newline.lo
  CC       src/libpcre2_8_la-pcre2_ord2utf.lo
  CC       src/libpcre2_8_la-pcre2_pattern_info.lo
  CC       src/libpcre2_8_la-pcre2_serialize.lo
  CC       src/libpcre2_8_la-pcre2_string_utils.lo
  CC       src/libpcre2_8_la-pcre2_study.lo
  CC       src/libpcre2_8_la-pcre2_substitute.lo
  CC       src/libpcre2_8_la-pcre2_substring.lo
  CC       src/libpcre2_8_la-pcre2_tables.lo
  CC       src/libpcre2_8_la-pcre2_ucd.lo
  CC       src/libpcre2_8_la-pcre2_valid_utf.lo
  CC       src/libpcre2_8_la-pcre2_xclass.lo
  CC       src/libpcre2_8_la-pcre2_chartables.lo
  CCLD     libpcre2-8.la
libtool: warning: undefined symbols not allowed in x86_64-unknown-cygwin shared
libraries; building static only
  CC       src/libpcre2_16_la-pcre2_auto_possess.lo
  CC       src/libpcre2_16_la-pcre2_compile.lo
  CC       src/libpcre2_16_la-pcre2_config.lo
  CC       src/libpcre2_16_la-pcre2_context.lo
  CC       src/libpcre2_16_la-pcre2_convert.lo
  CC       src/libpcre2_16_la-pcre2_dfa_match.lo
  CC       src/libpcre2_16_la-pcre2_error.lo
  CC       src/libpcre2_16_la-pcre2_find_bracket.lo
  CC       src/libpcre2_16_la-pcre2_jit_compile.lo
  CC       src/libpcre2_16_la-pcre2_maketables.lo
  CC       src/libpcre2_16_la-pcre2_match.lo
  CC       src/libpcre2_16_la-pcre2_match_data.lo
  CC       src/libpcre2_16_la-pcre2_newline.lo
  CC       src/libpcre2_16_la-pcre2_ord2utf.lo
  CC       src/libpcre2_16_la-pcre2_pattern_info.lo
  CC       src/libpcre2_16_la-pcre2_serialize.lo
  CC       src/libpcre2_16_la-pcre2_string_utils.lo
  CC       src/libpcre2_16_la-pcre2_study.lo
  CC       src/libpcre2_16_la-pcre2_substitute.lo
  CC       src/libpcre2_16_la-pcre2_substring.lo
  CC       src/libpcre2_16_la-pcre2_tables.lo
  CC       src/libpcre2_16_la-pcre2_ucd.lo
  CC       src/libpcre2_16_la-pcre2_valid_utf.lo
  CC       src/libpcre2_16_la-pcre2_xclass.lo
  CC       src/libpcre2_16_la-pcre2_chartables.lo
  CCLD     libpcre2-16.la
libtool: warning: undefined symbols not allowed in x86_64-unknown-cygwin shared
libraries; building static only
  CC       src/libpcre2_32_la-pcre2_auto_possess.lo
  CC       src/libpcre2_32_la-pcre2_compile.lo
  CC       src/libpcre2_32_la-pcre2_config.lo
  CC       src/libpcre2_32_la-pcre2_context.lo
  CC       src/libpcre2_32_la-pcre2_convert.lo
  CC       src/libpcre2_32_la-pcre2_dfa_match.lo
  CC       src/libpcre2_32_la-pcre2_error.lo
  CC       src/libpcre2_32_la-pcre2_find_bracket.lo
  CC       src/libpcre2_32_la-pcre2_jit_compile.lo
  CC       src/libpcre2_32_la-pcre2_maketables.lo
  CC       src/libpcre2_32_la-pcre2_match.lo
  CC       src/libpcre2_32_la-pcre2_match_data.lo
  CC       src/libpcre2_32_la-pcre2_newline.lo
  CC       src/libpcre2_32_la-pcre2_ord2utf.lo
  CC       src/libpcre2_32_la-pcre2_pattern_info.lo
  CC       src/libpcre2_32_la-pcre2_serialize.lo
  CC       src/libpcre2_32_la-pcre2_string_utils.lo
  CC       src/libpcre2_32_la-pcre2_study.lo
  CC       src/libpcre2_32_la-pcre2_substitute.lo
  CC       src/libpcre2_32_la-pcre2_substring.lo
  CC       src/libpcre2_32_la-pcre2_tables.lo
  CC       src/libpcre2_32_la-pcre2_ucd.lo
  CC       src/libpcre2_32_la-pcre2_valid_utf.lo
  CC       src/libpcre2_32_la-pcre2_xclass.lo
  CC       src/libpcre2_32_la-pcre2_chartables.lo
  CCLD     libpcre2-32.la
libtool: warning: undefined symbols not allowed in x86_64-unknown-cygwin shared
libraries; building static only
  CC       src/libpcre2_posix_la-pcre2posix.lo
  CCLD     libpcre2-posix.la
libtool: warning: undefined symbols not allowed in x86_64-unknown-cygwin shared
libraries; building static only
  CC       src/pcre2grep-pcre2grep.o
src/pcre2grep.c:140:0: warning: "FWRITE" redefined
 #define FWRITE(a,b,c,d) if (fwrite(a,b,c,d)) {}
 ^
In file included from /usr/include/sys/fcntl.h:3:0,
                 from /usr/include/fcntl.h:12,
                 from src/pcre2grep.c:67:
/usr/include/sys/_default_fcntl.h:85:0: note: this is the location of the
previous definition
 #define FWRITE  _FWRITE
 ^
src/pcre2grep.c: In function pcre2grep_callout:
src/pcre2grep.c:2203:10: warning: implicit declaration of function _spawnvp
[-Wimplicit-function-declaration]
 result = _spawnvp(_P_WAIT, argsvector[0], (const char * const *)argsvector);
          ^
src/pcre2grep.c: In function main:
src/pcre2grep.c:3487:10: warning: implicit declaration of function _fileno
[-Wimplicit-function-declaration]
 _setmode(_fileno(stdout), _O_BINARY);
          ^
src/pcre2grep.c:3487:27: error: _O_BINARY undeclared (first use in this
function)
 _setmode(_fileno(stdout), _O_BINARY);
                           ^
src/pcre2grep.c:3487:27: note: each undeclared identifier is reported only once
for each function it appears in
gmake[2]: *** [Makefile:2362: src/pcre2grep-pcre2grep.o] Error 1
gmake[2]: Leaving directory
'C:/cygwin64/home/solimanod/.cpan/build/Alien-PCRE2-0.012000-uuMHST/_alien/build_GoVz/pcre2-10.30.837-DEV'
gmake[1]: *** [Makefile:1266: all] Error 2
gmake[1]: Leaving directory
'C:/cygwin64/home/solimanod/.cpan/build/Alien-PCRE2-0.012000-uuMHST/_alien/build_GoVz/pcre2-10.30.837-DEV'
external command failed at
/home/solimanod/.cpan/build/Alien-Build-0.66-ncjkVf/blib/lib/Alien/Build/CommandSequence.pm
line 49.
make: *** [Makefile:984: _alien/mm/build] Error 2


[[[ END ERROR EXCERPT ]]]

--
You are receiving this mail because:
You are on the CC list for the bug.