From: <Ber...@tt...> - 2003-10-01 11:23:08
|
Hello, I try to build libxml-2.5.11 with MinGW and cygwin, using the autoconfiscated build. The linking process fails due to an "undefined reference to `WinMain@16'", the output of make can be found at the end of this mail. I would greatly appreciate any hints! thanks, Bernhard I use: libtool-1.5 gcc-3.2.3 autoconf-2.57 configure is invoked with: export CC='gcc -mcpu=pentium -march=pentium -mmmx -msse -msse2 -mfpmath=sse -mthreads -mno-cygwin -mms-bitfields' export CPPFLAGS='-Ic:/MinGW/include -Ic:/gtk_tml/include' export LDFLAGS='-no-undefined -Lc:/MinGW/lib -Lc:/gtk_tml/lib' ./configure --with-ftp=no --with-http=no --enable-shared --disable-static --prefix=c:/gtk_tml --host=i386-pc-mingw32 --target=i386-pc-mingw32 --enable-debug=yes output of make: [...] /bin/sh ./libtool --mode=link gcc -mcpu=pentium -march=pentium -mmmx -msse -msse2 -mfpmath=sse -mthreads -mno-cygwin -mms-bitfields - -O2 -Wall -no-undefined -Lc:/MinGW/lib -Lc:/gtk_tml/lib -o libxml2.la -rpath c:/gtk_tml/lib -version-info 7:11:5 SAX.lo entities.lo e coding.lo error.lo parserInternals.lo parser.lo tree.lo hash.lo list.lo xmlIO.lo xmlmemory.lo uri.lo valid.lo xlink.lo HTMLparser.lo H MLtree.lo debugXML.lo xpath.lo xpointer.lo xinclude.lo nanohttp.lo nanoftp.lo DOCBparser.lo catalog.lo globals.lo threads.lo c14n.lo x lregexp.lo xmlschemas.lo xmlschemastypes.lo xmlunicode.lo xmlreader.lo relaxng.lo -liconv -lm mkdir .libs extracting exported symbol list from `iconv.dll' test -f .libs/impgen.c || \ sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < ./libtool > .li s/impgen.c test -f .libs/impgen.exe || (cd .libs && \ if test "x" != "x" ; then -o impgen impgen.c ; \ else gcc -mcpu=pentium -march=pentium -mmmx -msse -msse2 -mfpmath=sse -mthreads -mno-cygwin -mms-bitfields -o impgen impgen.c ; i) .libs/impgen c:/gtk_tml/lib/iconv.dll > .libs/iconv.dll-def generating import library for `iconv.dll' dlltool --as=as --dllname iconv.dll --def .libs/iconv.dll-def --output-lib .libs/libimp-iconv.a rm -fr .libs/libxml2.la .libs/libxml2.* .libs/libxml2.* (cd . && ln -s SAX.lo SAX.o) (cd . && ln -s entities.lo entities.o) (cd . && ln -s encoding.lo encoding.o) (cd . && ln -s error.lo error.o) (cd . && ln -s parserInternals.lo parserInternals.o) (cd . && ln -s parser.lo parser.o) (cd . && ln -s tree.lo tree.o) (cd . && ln -s hash.lo hash.o) (cd . && ln -s list.lo list.o) (cd . && ln -s xmlIO.lo xmlIO.o) (cd . && ln -s xmlmemory.lo xmlmemory.o) (cd . && ln -s uri.lo uri.o) (cd . && ln -s valid.lo valid.o) (cd . && ln -s xlink.lo xlink.o) (cd . && ln -s HTMLparser.lo HTMLparser.o) (cd . && ln -s HTMLtree.lo HTMLtree.o) (cd . && ln -s debugXML.lo debugXML.o) (cd . && ln -s xpath.lo xpath.o) (cd . && ln -s xpointer.lo xpointer.o) (cd . && ln -s xinclude.lo xinclude.o) (cd . && ln -s nanohttp.lo nanohttp.o) (cd . && ln -s nanoftp.lo nanoftp.o) (cd . && ln -s DOCBparser.lo DOCBparser.o) (cd . && ln -s catalog.lo catalog.o) (cd . && ln -s globals.lo globals.o) (cd . && ln -s threads.lo threads.o) (cd . && ln -s c14n.lo c14n.o) (cd . && ln -s xmlregexp.lo xmlregexp.o) (cd . && ln -s xmlschemas.lo xmlschemas.o) (cd . && ln -s xmlschemastypes.lo xmlschemastypes.o) (cd . && ln -s xmlunicode.lo xmlunicode.o) (cd . && ln -s xmlreader.lo xmlreader.o) (cd . && ln -s relaxng.lo relaxng.o) generating symbol list for `libxml2.la' dlltool --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPo nt@12 --output-def .libs/libxml2-2.dll-def SAX.lo entities.lo encoding.lo error.lo parserInternals.lo parser.lo tree.lo hash.lo list. o xmlIO.lo xmlmemory.lo uri.lo valid.lo xlink.lo HTMLparser.lo HTMLtree.lo debugXML.lo xpath.lo xpointer.lo xinclude.lo nanohttp.lo na oftp.lo DOCBparser.lo catalog.lo globals.lo threads.lo c14n.lo xmlregexp.lo xmlschemas.lo xmlschemastypes.lo xmlunicode.lo xmlreader.l relaxng.lo sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < .libs/libxml2-2.dll-def > .libs/libxml2.exp if test "x`sed 1q .libs/libxml2.exp`" = xEXPORTS; then cp .libs/libxml2.exp .libs/libxml2-2.dll-def; else echo EXPORTS > .libs/libxml2 2.dll-def; _lt_hint=1; cat .libs/libxml2.exp | while read symbol; do set dummy $symbol; case $# in 2) echo " $2 @ $_lt_hint ; " >> .li s/libxml2-2.dll-def;; 4) echo " $2 $3 $4 ; " >> .libs/libxml2-2.dll-def; _lt_hint=`expr $_lt_hint - 1`;; *) echo " $2 @ $_lt_hint $3 ; " >> .libs/libxml2-2.dll-def;; esac; _lt_hint=`expr 1 + $_lt_hint`; done; fi gcc -mcpu=pentium -march=pentium -mmmx -msse -msse2 -mfpmath=sse -mthreads -mno-cygwin -mms-bitfields -Wl,--base-file,.libs/libxml2-2 dll-base -Wl,-e,_DllMainCRTStartup@12 -o .libs/libxml2-2.dll SAX.lo entities.lo encoding.lo error.lo parserInternals.lo parser.lo tre .lo hash.lo list.lo xmlIO.lo xmlmemory.lo uri.lo valid.lo xlink.lo HTMLparser.lo HTMLtree.lo debugXML.lo xpath.lo xpointer.lo xinclude lo nanohttp.lo nanoftp.lo DOCBparser.lo catalog.lo globals.lo threads.lo c14n.lo xmlregexp.lo xmlschemas.lo xmlschemastypes.lo xmlunic de.lo xmlreader.lo relaxng.lo -Lc:/MinGW/lib -Lc:/gtk_tml/lib .libs/libimp-iconv.a -lm c:\MinGW\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe: warning: cannot find entry symbol _DllMainCRTStartup@12; def ulting to 00401000 c:/MinGW/lib/libmingw32.a(main.o)(.text+0x97):main.c: undefined reference to `WinMain@16' make[2]: *** [libxml2.la] Error 1 make[2]: Leaving directory `/c/gtk_tml/libxml2-2.5.11' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/c/gtk_tml/libxml2-2.5.11' make: *** [all-recursive-am] Error 2 |