2013/10/2 asmwarrior > > 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
This error also exists in our lates builds uploaded in mingw-w64. -- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/ ___________________________________________________ Another online IDE: http://liveworkspace.org/ ------------------------------------------------------------------------------ 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
