Hi, No, I don't address either snprintf or vsnprintf with this patch.
Seems we're working on very similar things, just from slightly different angles. I'm building GDB with Python using the following cross compilation, MinGW and Darwin patches: http://mingw-and-ndk.googlecode.com/files/python-273-and-330b1-patches-WIP.7z There's a build script in there that's got some hard coded paths in it, and it's a bit untidy (I will be swapping the build scripts out for ones from the Android NDK which is the final goal of my work). I can provide my WIP NDK patch if you're interested. These patches (the first two by Roumen Petrov anyway) are being merged/considered by Matthias Klose at present, so hopefully in time we'll be able to build our own Pythons for GDB from the CPython mainline sources: http://bugs.python.org/issue3754 Best regards, Ray. On Sat, Jun 30, 2012 at 4:04 PM, asmwarrior <asmwarr...@gmail.com> wrote: > On 2012-6-30 23:01, asmwarrior wrote: >> Good. I see this kind of build error several months ago when building GDB >> under MSYS. For me, I have a workaround, I just disable the nls support by >> passing the option "--disable-nls" to the configure, otherwise, I will see >> build errors. > > BTW, the build error of GDB I see is described in the wiki page: > http://code.google.com/p/qp-gcc/wiki/build_gdb_msys_en > >> gcc -s -static -mtune=i686 -D__USE_MINGW_ACCESS -I. -I../../gdb/gdb >> -I../../gdb/gdb/common -I../../gdb/gdb/config >> -DLOCALEDIR="\"/E/test/installnew/share/locale\"" -DHAVE_CONFIG_H >> -I../../gdb/gdb/../include/opcode -I../../gdb/gdb/../opcodes/.. >> -I../../gdb/gdb/../readline/.. -I../bfd -I../../gdb/gdb/../bfd >> -I../../gdb/gdb/../include -I../libdecnumber -I../../gdb/gdb/../libdecnumber >> -I../../gdb/gdb/gnulib -Ignulib -IF:/cb/python272/include >> -IF:/cb/python272/include -Wall -Wdeclaration-after-statement >> -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused >> -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts >> -Wno-format -Werror -c -o python.o -MT python.o -MMD -MP -MF >> .deps/python.Tpo -fno-strict-aliasing -DNDEBUG -fwrapv >> ../../gdb/gdb/python/python.c >> cc1.exe: warnings being treated as errors >> In file included from F:/cb/python272/include/Python.h:121:0, >> from ../../gdb/gdb/python/python-internal.h:50, >> from ../../gdb/gdb/python/python.c:48: >> F:/cb/python272/include/pyerrors.h:315:0: error: "snprintf" redefined >> d:\code\mingw_gcc4.5.4.20110428_static_win32\mingw\bin\../lib/gcc/i686-pc-mingw32/4.5.4/../../../../i686-pc-mingw32/include/libintl.h:375:0: >> note: this is the location of the previous definition >> F:/cb/python272/include/pyerrors.h:316:0: error: "vsnprintf" redefined >> d:\code\mingw_gcc4.5.4.20110428_static_win32\mingw\bin\../lib/gcc/i686-pc-mingw32/4.5.4/../../../../i686-pc-mingw32/include/libintl.h:380:0: >> note: this is the location of the previous definition > > > I'm not sure your patch fix the conflict in the python header files. > > Thanks. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public