This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling cygwin-1.7.0-50 with undefined references


On Mon, Jul 06, 2009 at 12:42:20PM +0200, Kaul, Martin wrote:
>Hi,
>
>currently I try to compile cygwin-1.7.0-50. 
>
>The make fails with the following error:
>
>----------------
>Making  in mingwex...
>make[4]: Entering directory
>`/home/mkaul/toolchain/cygwin-1.7.0-50/i686-pc-cygwin/winsup/mingw/mingw
>ex'
>make[4]: Nothing to be done for `all'.
>make[4]: Leaving directory
>`/home/mkaul/toolchain/cygwin-1.7.0-50/i686-pc-cygwin/winsup/mingw/mingw
>ex'
>dlltool --as as --dllname mingwm10.dll \
>          --def mingwthrd.def --output-lib libmingwthrd.a
>ar rv libmingwthrd.a crtmt.o
>a - crtmt.o
>ranlib libmingwthrd.a
>dlltool --as as --output-def mingwthrd.def mthr.o mthr_init.o
>/home/mkaul/toolchain/cygwin-1.7.0-50/winsup/utils/mingw gcc -B./
>-shared  -Wl,--image-base,0x6FBC0000 -Wl,--entry,_DllMainCRTStartup@12
>mthr.o mthr_init.o mingwthrd.def -Lmingwex -o mingwm10.dll
>/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld:
>warning: cannot find entry symbol _DllMainCRTStartup@12; defaulting to
>6fbc1000
>mthr.o: In function `___mingwthr_remove_key_dtor':
>/home/mkaul/toolchain/cygwin-1.7.0-50/i686-pc-cygwin/winsup/mingw/../../
>.././winsup/mingw/mthr.c:107: undefined reference to `_free'
>mthr.o: In function `___mingwthr_add_key_dtor':
>/home/mkaul/toolchain/cygwin-1.7.0-50/i686-pc-cygwin/winsup/mingw/../../
>.././winsup/mingw/mthr.c:55: undefined reference to `_calloc'
>collect2: ld returned 1 exit status
>make[3]: *** [mingwm10.dll] Error 1
>make[3]: Leaving directory
>`/home/mkaul/toolchain/cygwin-1.7.0-50/i686-pc-cygwin/winsup/mingw'
>make[2]: *** [mingw] Error 1
>make[2]: Leaving directory
>`/home/mkaul/toolchain/cygwin-1.7.0-50/i686-pc-cygwin/winsup'
>make[1]: *** [all-target-winsup] Error 2
>make[1]: Leaving directory `/home/mkaul/toolchain/cygwin-1.7.0-50'
>make: *** [all] Error 2
>----------------
>
>
>Hint: Before I started configure I had to manually create a directory
>"i686-pc-mingw32" in the usr directory. Without this configure failed.
>
>I use the current version of cygwin release 2.

There is a solution for this:

rm -r mingw

The mingw directory is not needed for building cygwin.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]