From: Keith M. <kei...@to...> - 2007-05-01 10:48:26
|
Vincent Torri wrote: > I tried the zlib port, but an error occured: I assume you mean this: http://downloads.sourceforge.net/mingw/zlib-1.2.3-mingwPORT-1.tar.bz2 and that you will be building from: http://www.zlib.net/zlib-1.2.3.tar.bz2 That port has been built with an older (broken) version of portmaker, which causes it to try to cd /usr/src/zlib-1.2.3/.. *before* the /usr/src/zlib-1.2.3 parent has been created. This `cd' command fails, resulting in failure of the port. To work around this you must mkdir -p /usr/src/zlib-1.2.3 *before* you run `mingwPORT.sh'. Assuming that you've done that, then this port should build ok. I've just run it, as above, and I cannot reproduce this: > ar rcs libz.a adler32.o compress.o crc32.o deflate.o gzio.o \ > infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o \ > zutil.o > windres --define GCC_WINDRES -o zlibrc.o win32/zlib1.rc > dllwrap --driver-name gcc --def win32/zlib.def \ > --implib libz.dll.a -o zlib1.dll adler32.o compress.o crc32.o \ > deflate.o gzio.o infback.o inffast.o inflate.o inftrees.o \ > trees.o uncompr.o zutil.o zlibrc.o > D:\msys\1.0\mingw\bin\dllwrap.exe: CreateProcess: No error > make: *** [zlib1.dll] Error 1 Even when I didn't create the parent source directory first, I don't see this symptom; it fails long before it gets this far. When I do create the directory first, it all builds cleanly for me. It is curious that dllwrap says `CreateProcess: No error', and then proceeds to terminate abnormally; seems to point to a possible bug in dllwrap, bug it's going to be well nigh impossible to track it down, if we can't reliably reproduce it. > Is there a missing package that I have to install in order to get > that zlib port ? Can't think of anything, beyond a full MinGW install, and MSYS; you might also like to install the msysDTK, but I don't think that it is really necessary -- your failure appears to be associated with a tool which is provided by the MinGW install. Sorry, can't be more helpful. Regards, Keith. |