Hello Chris,

2010/7/16 Chris Sutcliffe <ir0nh...@gmail.com>:
> Hi All,
>
> I'm trying to compile Info-zip's zip 3.1c during the linking stage of
> the 'dll' target.  The command I use to build the dll is:
>
> make -f win32/makefile.gcc CC=x86_64-w64-mingw32-gcc
> RC=x86_64-w64-mingw32-windres NOASM=1 dll
>
> which compiles the object files fine, however, when linking:
>
> dllwrap --driver-name x86_64-w64-mingw32-gcc -Wl,--enable-stdcall-fixup \
>         --def windll/windll32.def  -ozip32z64.dll -s windll.o
> windllrc.o api.o zipl.o cryptl.o ttyiol.o zipfilel.o zipupl.o
> fileiol.o utill.o crc32l.o  globalsl.o deflatel.o treesl.o  zbz2errl.o
> win32l.o win32zpl.o win32i64l.o ntl.o  -luser32 -ladvapi32
> c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
> warning: cannot find entry symbol _dllmaincrtstar...@12; defaulting to
> 0000000069fc1000
>
> The warning I think is OK, however, I also see:
>
> zipfilel.o:zipfile.c:(.text+0x15b1): undefined reference to `__p___mb_cur_max'
> fileiol.o:fileio.c:(.text+0x508): undefined reference to `__p___mb_cur_max'
> fileiol.o:fileio.c:(.text+0x59a): undefined reference to `__p___mb_cur_max'
> fileiol.o:fileio.c:(.text+0x5b7): undefined reference to `__p___mb_cur_max'
> fileiol.o:fileio.c:(.text+0x61b): undefined reference to `__p___mb_cur_max'
> fileiol.o:fileio.c:(.text+0x64c): more undefined references to
> `__p___mb_cur_max' follow
>
> which confuses me, given that mb_cur_max is exported by many libraries:
>
> $ grep -ri mb_cur_max *
> Binary file libcrtdll.a matches
> Binary file libmingwex.a matches
> Binary file libmsvcr80.a matches
> Binary file libmsvcrt.a matches
> Binary file libwcrtdll.a matches
> Binary file libwmsvcrt.a matches
> Binary file libwmsvcrt20.a matches
> Binary file libwmsvcrt40.a matches
>
> Any help on this would be greatly appreciated, thank you.
>
> Chris
>
> --
> Chris Sutcliffe
> http://emergedesktop.org
> http://www.google.com/profiles/ir0nh34d
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

This issue is caused by a recent fixed bug in binutils' dllwrap tool.
Please use a new binutils version (head) version. Then your problem
should be solved.

Regards,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to