On Mon, May 23, 2011 at 02:45:43PM -0600, Eric Blake wrote: >Just for the record, I'm having a problem self-building cygwin right >now, from what looks like mingw issues: > >/home/eblake/src/winsup/utils/mingw gcc-4 -B./ -shared >-Wl,--image-base,0x6FBC0000 -Wl,--entry,_DllMainCRTStartup@12 mthr.o >mthr_init.o mingwthrd.def -Lmingwex -o mingwm10.dll >mingwex/libmingwex.a(strtodnrp.o): In function `strtod': >/home/eblake/src/build/i686-pc-cygwin/winsup/mingw/mingwex/../../../../../winsup/mingw/include/stdlib.h:315: >multiple definition of `_strtod' >... >/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: >warning: cannot find entry symbol _DllMainCRTStartup@12; defaulting to >6fbc1000 >ertr000001.o:(.rdata+0x0): undefined reference to >`__pei386_runtime_relocator' >collect2: ld returned 1 exit status >make[3]: *** [mingwm10.dll] Error 1 >make[3]: Leaving directory >`/home/eblake/src/build/i686-pc-cygwin/winsup/mingw' > >How do we go about getting that resolved?
I sent email to ironh34d regarding the strtod error after you mentioned this on irc. I added an "extern" in front of the strtod definition in stdlib.h and that allowed mingw to build but I don't know if it is the right fix or not. cgf