-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02.10.2013 20:39, asmwarrior wrote: > Hi, I'm using D:\mingw-builds\x32-4.8.1-posix-dwarf-rev5 to build GDB under > MSYS. > > I have manually download the iconv, zlib, expat, and build and install them > to /mingw. > (in fstab, I have a line: D:\mingw-builds\x32-4.8.1-posix-dwarf-rev5\mingw32 > /mingw) > > Now, I found that detecting expat library failed, this is the snippet of the > config.log: > > configure:7888: checking for libexpat > configure:7907: mingw32-gcc -o conftest.exe -O0 -g -D__USE_MINGW_ACCESS > -I/mingw/include -static-libstdc++ -static-libgcc -Wl,--stack,12582912 > conftest.c -lm /mingw/lib/libexpat.a >&5 > D:/mingw-builds/x32-4.8.1-posix-dwarf-rev5/mingw32/lib/libexpat.a(xmlparse.o): > In function `time': > d:/mingw-builds/x32-4.8.1-posix-dwarf-rev5/mingw32/i686-w64-mingw32/include/time.h:242: > undefined reference to `_time32' > collect2.exe: error: ld returned 1 exit status > configure:7907: $? = 1 > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "" > | #define PACKAGE_TARNAME "" > | #define PACKAGE_VERSION "" > | #define PACKAGE_STRING "" > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "" > | #define STDC_HEADERS 1 > | #define HAVE_SYS_TYPES_H 1 > | #define HAVE_SYS_STAT_H 1 > | #define HAVE_STDLIB_H 1 > | #define HAVE_STRING_H 1 > | #define HAVE_MEMORY_H 1 > | #define HAVE_STRINGS_H 1 > | #define HAVE_INTTYPES_H 1 > | #define HAVE_STDINT_H 1 > | #define HAVE_UNISTD_H 1 > | #define __EXTENSIONS__ 1 > | #define _ALL_SOURCE 1 > | #define _GNU_SOURCE 1 > | #define _POSIX_PTHREAD_SEMANTICS 1 > | #define _TANDEM_SOURCE 1 > | #define PACKAGE "gdb" > | #define DEBUGDIR "/mingw/lib/debug" > | #define DEBUGDIR_RELOCATABLE 1 > | #define BINDIR "/mingw/bin" > | #define GDB_DATADIR "/mingw/share/gdb" > | #define GDB_DATADIR_RELOCATABLE 1 > | #define AUTO_LOAD_DIR "$debugdir:$datadir/auto-load" > | #define AUTO_LOAD_SAFE_PATH "$debugdir:$datadir/auto-load" > | #define DEFAULT_BFD_ARCH bfd_i386_arch > | #define DEFAULT_BFD_VEC i386pe_vec > | #define PKGVERSION "(GDB) " > | #define REPORT_BUGS_TO "<http://www.gnu.org/software/gdb/bugs/>" > | #define HAVE_LIBM 1 > | #define SIZEOF_UNSIGNED_LONG_LONG 8 > | #define SIZEOF_UNSIGNED_LONG 4 > | #define SIZEOF_UNSIGNED___INT128 0 > | #define JIT_READER_DIR "/mingw/lib/gdb" > | #define JIT_READER_DIR_RELOCATABLE 1 > | /* end confdefs.h. */ > | #include "expat.h" > | int > | main () > | { > | XML_Parser p = XML_ParserCreate (0); > | ; > | return 0; > | } > configure:7917: result: no > configure:7942: error: expat is missing or unusable > > > I just open the time.h:242, there is a line: > __CRT_INLINE time_t __cdecl time(time_t *_Time) { return _time32(_Time); } > > Now, my question is: where does _time32 defined? How to solve my problem? > I'm working under Windows XP
using mingw-w64 svn-r6322 $ nm -A --defined-only /mingw/lib/*.a | grep "_time32" F:/e14/mingw/lib/libmsvcr100.a:dfpibs01147.o:00000000 I __imp___time32 F:/e14/mingw/lib/libmsvcr100.a:dfpibs01147.o:00000000 T __time32 F:/e14/mingw/lib/libmsvcr110.a:dmpibs01218.o:00000000 I __imp___time32 F:/e14/mingw/lib/libmsvcr110.a:dmpibs01218.o:00000000 T __time32 F:/e14/mingw/lib/libmsvcr80.a:dkoibs00464.o:00000000 I __imp___time32 F:/e14/mingw/lib/libmsvcr80.a:dkoibs00464.o:00000000 T __time32 F:/e14/mingw/lib/libmsvcr90.a:droibs01458.o:00000000 I __imp___time32 F:/e14/mingw/lib/libmsvcr90.a:droibs01458.o:00000000 T __time32 F:/e14/mingw/lib/libmsvcr90d.a:dyoibs01040.o:00000000 I __imp___time32 F:/e14/mingw/lib/libmsvcr90d.a:dyoibs01040.o:00000000 T __time32 F:/e14/mingw/lib/libmsvcrt.a:dsrcbs00680.o:00000000 I __imp___time32 F:/e14/mingw/lib/libmsvcrt.a:dsrcbs00680.o:00000000 T __time32 configure:7286: checking whether to use expat configure:7288: result: yes configure:7336: checking for ld used by GCC configure:7399: result: f:/e14/mingw/bin/../lib/gcc/i686-w64-mingw32/4.8.1/../../../../i686-w64-mingw32/bin/ld.exe configure:7406: checking if the linker (f:/e14/mingw/bin/../lib/gcc/i686-w64-mingw32/4.8.1/../../../../i686-w64-mingw32/bin/ld.exe) is GNU ld GNU ld (GNU Binutils) 2.23.52.20130828 configure:7418: result: yes configure:7424: checking for shared library run path origin configure:7437: result: done configure:7864: checking for libexpat configure:7883: gcc -o conftest.exe -g -O2 -D__USE_MINGW_ACCESS - -I/mingw/include -Wl,--stack,12582912 conftest.c -ldl -lz -lm -liconv /mingw/lib/libexpat.a >&5 configure:7883: $? = 0 configure:7893: result: yes configure:7900: checking how to link with libexpat configure:7902: result: /mingw/lib/libexpat.a configure:7928: checking for XML_StopParser configure:7928: gcc -o conftest.exe -g -O2 -D__USE_MINGW_ACCESS - -I/mingw/include -Wl,--stack,12582912 conftest.c -ldl -lz -lm -liconv /mingw/lib/libexpat.a >&5 configure:7928: $? = 0 configure:7928: result: yes (offtopic: it looks like a bug that gdb links to libexpat.a instead of libexpat.dll.a) - -- O< ascii ribbon - stop html email! - www.asciiribbon.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) iQEcBAEBAgAGBQJSTGJaAAoJEOs4Jb6SI2CwXS8IAI9G2sZYzxvHdwGPUgo4h86u 9jWVnseYSFIitHdnmEb+NGVSLOBfLPi8hNtMdcILcJgHRcdPYreSzk9GzhEwX9eO 2PMnIyYEFdfwl0Kb2wOAXYrJjcyixz2DkYP6fKmIwenQJdT2zMu1KMf3/GTC/94g dN28+wCv3drCu3qrjSs0uKoGtvCUIaSR5iyXo6AcXklnCjQklmw7r4qXBOPDuNRl lXoX2ti6Rbta8si1CbNh15luVGl7HNN0DCX5kEiufkoicrCgLYeyTzMWJF/AwDUa 5FmxL9J6W5qcIxH43NWD9GG6690n/SPi6zUc5tB0bFJuS/gkuefTLp/UoNvwMuU= =UdZm -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
