From: Luke D. <cod...@ho...> - 2002-11-11 11:48:24
|
The link command generated by libtool is incorrect, so I think you need a newer version of libtool that supports Mingw properly, but I don't know for sure. Other people on this list definitely have experience with libtool, which is why it is better keep the discussion on the list. The link command is: g++ -shared c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/../../../dllcrt2.o c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/crtbegin.o .libs/string.o .libs/getdata.o .libs/itemize.o .libs/file_util.o .libs/string_buffer.o .libs/string_map.o .libs/string_list.o .libs/config.o .libs/posib_err.o .libs/errors.o .libs/error.o .libs/fstream.o .libs/iostream.o .libs/info.o .libs/can_have_error.o .libs/convert.o .libs/tokenizer.o .libs/speller.o .libs/document_checker.o .libs/filter.o .libs/strtonum.o -L/mingw/mingw32/lib -L/mingw/mingw32/bin -L/develop/gcc-3.2-ming/build/gcc -L/develop/gcc-3.2-ming/build/mingw32/libstdc++-v3/src/.libs -L/develop/gcc-3.2-ming/build/mingw32/libstdc++-v3/src -Lc:/MINGW/bin/../lib/gcc-lib/mingw32/3.2 -Lc:/MINGW/bin/../lib/gcc-lib -L/mingw/lib/gcc-lib/mingw32/3.2 -Lc:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/../../../../mingw32/lib -L/mingw/lib/gcc-lib/mingw32/3.2/../../../../mingw32/lib -Lc:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/../../.. -L/mingw/lib/gcc-lib/mingw32/3.2/../../.. -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/crtend.o -o .libs/libaspell-common-0-50-2.dll Luke Dunstan P.S. don't send huge attachments without asking first, because my 2 MB Hotmail mailbox was almost full after this. >From: "J.F.Sturm" <J.F...@uv...> >To: "Luke Dunstan" <cod...@ho...> >Subject: RE: [Mingw-msys] multiple defns thru dllcrt2.o and crtbegin.o >Date: Mon, 11 Nov 2002 11:30:41 +0100 > >Dear Luke, >Thanks for your reply. I am not inserting anything; the configure utility >builds >the Make- and definition-files. That is why I suspect the problem may be >with msys. >I am attaching the output of the following conversation >(after running $ ./configure --enable-win32-relocatable): > >sturm@pi1068 /c/ispell/aspell-0.50.2 >$ make -n install>install.log >make[1]: *** No rule to make target `../common/libaspell-common.la', needed >by `libaspell.la'. Stop. >make: *** [install-recursive] Error 1 > >sturm@pi1068 /c/ispell/aspell-0.50.2 >$ make -d install>install_complete.log >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/../../../dllcrt2.o(.text+0x0):dllcrt >1.c: multiple definition of `DllMainCRTStartup@12' >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/../../../dllcrt2.o(.text+0x0):dllcrt >1.c: first defined here >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/../../../dllcrt2.o(.text+0x100):dllc >rt1.c: multiple definition of `atexit' >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/../../../dllcrt2.o(.text+0x100):dllc >rt1.c: first defined here >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/../../../dllcrt2.o(.text+0x130):dllc >rt1.c: multiple definition of `_onexit' >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/../../../dllcrt2.o(.text+0x130):dllc >rt1.c: first defined here >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/crtbegin.o(.text+0x0):crtstuff.c: >multiple definition of `__do_frame_init' >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/crtbegin.o(.text+0x0):crtstuff.c: >first defined here >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/crtbegin.o(.text+0x20):crtstuff.c: >multiple definition of `__do_frame_fini' >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/crtbegin.o(.text+0x20):crtstuff.c: >first defined here >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/crtbegin.o(.eh_frame+0x0):crtstuff.c >: multiple definition of `__EH_FRAME_BEGIN__' >c:/MINGW/bin/../lib/gcc-lib/mingw32/3.2/crtbegin.o(.eh_frame+0x0):crtstuff.c >: first defined here >make[1]: *** [libaspell-common.la] Error 1 >make: *** [install-recursive] Error 1 > >sturm@pi1068 /c/ispell/aspell-0.50.2 >$ > > >-----Original Message----- >From: Luke Dunstan [mailto:cod...@ho...] >Sent: zaterdag 9 november 2002 08:19 >To: J.F.Sturm; min...@li... >Subject: Re: [Mingw-msys] multiple defns thru dllcrt2.o and crtbegin.o > > > >Your link command appears unreadable in your mail, but are you explicitly >specifying crtbegin.o and other standard objects/libraries on your "gcc" >link command? If so, this won't work. Otherwise, please post the full >output >when you link with "gcc -v". If copy&paste didn't work last time, you could >try redirecting the output to a file. > >Luke Dunstan > >----- Original Message ----- >From: "J.F.Sturm" <J.F...@uv...> >To: <min...@li...> >Sent: Friday, November 08, 2002 10:54 PM >Subject: [Mingw-msys] multiple defns thru dllcrt2.o and crtbegin.o > > > > I tried to install aspell on an MSYS/MINGW system, with > > $ ./configure --enable-win32-relocatable > > $ make install > > There were 2 problems, 1 of them easy to solve: > > (1) info.cpp needed a change of ERROR into e.g. __ERROR, since ERROR is > > apparently defined in one of MINGWs header files. > > (2) After successful compiling, I receive a multiple-defined linking > > problem: > > ><< install.log >> ><< install_complete.log >> _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |