[Xapian-tickets] [Xapian] #808: msys64 CPPFLAGS=-D_FORTIFY_SOURCE=[2, 1] did not build

Xapian nobody at xapian.org
Wed Mar 24 02:28:08 GMT 2021


#808: msys64 CPPFLAGS=-D_FORTIFY_SOURCE=[2,1] did not build
--------------------------------------+-------------------------
        Reporter:  xpbxf4             |      Owner:  Olly Betts
            Type:  defect             |     Status:  new
        Priority:  normal             |  Milestone:
       Component:  Other              |    Version:  1.4.18
        Severity:  normal             |   Keywords:  gcc FORTIFY
      Blocked By:                     |   Blocking:
Operating System:  Microsoft Windows  |
--------------------------------------+-------------------------
 Hello,
 I have just started using Windows and installed msys2 to get some unix
 programs I want working. I am trying to build xapian-core to see if I can
 build mu. This page suggest FORTIFY might be an issue,

 https://github.com/msys2/MINGW-packages/issues/5868

 so I tried 1 and 0. 0 seems to have built without error, while 1 gave
 similar errors (I think, I didn't cut and paste that one.) The INSTALL
 file says to submit a bug if D_FORTIFY_SOURCE=2 is changed to 1 or 0 to
 solve problems. When I use 1 or 2, I get errors like this (I hope this
 formatting is alright.):

 {{{
 C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 backends/chert/.libs/chert_btreebase.o:C:/msys64/mingw64/x86_64-w64-mingw32/include/string.h:214:
 undefined reference to `__memmove_chk'

 C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 backends/chert/.libs/chert_compact.o:C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:372:
 undefined reference to `__chk_fail'

 C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 backends/glass/.libs/glass_changes.o:C:/msys64/mingw64/x86_64-w64-mingw32/include/string.h:214:
 undefined reference to `__memmove_chk'

 C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 backends/glass/.libs/glass_compact.o:C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:372:
 undefined reference to `__chk_fail'

 C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 net/.libs/progclient.o:C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:372:
 undefined reference to `__chk_fail'

 C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 net/.libs/remoteconnection.o:C:/msys64/mingw64/x86_64-w64-mingw32/include/string.h:202:
 undefined reference to `__memcpy_chk'

 C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 unicode/.libs/description_append.o:C:/msys64/mingw64/x86_64-w64-mingw32/include/stdio.h:372:
 undefined reference to `__chk_fail'

 collect2.exe: error: ld returned 1 exit status
 make[2]: *** [Makefile:2230: libxapian.la] Error 1
 make[2]: Leaving directory '/c/Users/olbxf/src/xapian-core-1.4.18'
 make[1]: *** [Makefile:3278: all-recursive] Error 1
 make[1]: Leaving directory '/c/Users/olbxf/src/xapian-core-1.4.18'
 make: *** [Makefile:1581: all] Error 2
 }}}

 My msys2 is fully up to date, but I am just learning this system, so I
 could have missed something. Feel free to close if this is not real.
 Thank you for developing xapian!
-- 
Ticket URL: <https://trac.xapian.org/ticket/808>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list