History Of Ticket a39f4ac2fa55a646c1eee2a6667564eb8a9f9e05

Artifacts Associated With Ticket a39f4ac2fa55a646c1eee2a6667564eb8a9f9e05

  1. Ticket change [313ff0e68c] (rid 1924) by anonymous on 2015-01-30 05:44:44:

    1. comment initialized to:
      configure script of zlib 1.2.8 fails and says "Please use win32/Makefile.gcc instead." when $(uname -s) matches with MINGW* or mingw* by case statement of /bin/sh.<br /><br />And default Makefile which will be used in this case also says same warnng, but make does not return error. So kitcreator script guesses wrong.<br /><br />For example,&nbsp; I succeeded to build zlib by following.<br />(awk line resolves another problem. Because Makefile.gcc resets CC and RC by self.)<br /><br />&nbsp;&nbsp;&nbsp; case $(uname -s 2&gt; /dev/null) in<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MINGW* | mingw*)<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # use win32/Makefile.gcc instead.<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; echo "Running: awk '{if($1~/^[RC]C$/&amp;&amp;$2~/^=/)$2="?"$2;print}' win32/Makefile.gcc &gt; Makefile"<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; awk '{if($1~/^[RC]C$/&amp;&amp;$2~/^=/)$2="?"$2;print}' win32/Makefile.gcc &gt; Makefile<br /><br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; echo "Running: ${MAKE:-make}"<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ${MAKE:-make} || exit 1<br /><br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; echo "Running: BINARY_PATH=${INSTDIR}/bin INCLUDE_PATH=${INSTDIR}/include LIBRARY_PATH=${INSTDIR}/lib ${MAKE:-make} install"<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; BINARY_PATH=${INSTDIR}/bin INCLUDE_PATH=${INSTDIR}/include LIBRARY_PATH=${INSTDIR}/lib ${MAKE:-make} install<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ;;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; *)<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # If we are building for KitDLL, compile with '-fPIC'<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if [ "${KITTARGET}" = "kitdll" ]; then<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CFLAGS="${CFLAGS} -fPIC"<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; export CFLAGS<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fi<br /><br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # We don't pass CONFIGUREEXTRA here, since this isn't a GNU autoconf<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # script and will puke<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; echo "Running: ./configure --prefix=\"${INSTDIR}\" --libdir=\"${INSTDIR}/lib\" --static"<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ./configure --prefix="${INSTDIR}" --libdir="${INSTDIR}/lib" --static<br /><br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; echo "Running: ${MAKE:-make}"<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ${MAKE:-make} || exit 1<br /><br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; echo "Running: ${MAKE:-make} install"<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ${MAKE:-make} install<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ;;<br />&nbsp;&nbsp;&nbsp; esac
    2. foundin initialized to: "0.9.2"
    3. login: "anonymous"
    4. severity initialized to: "Critical"
    5. status initialized to: "Open"
    6. title initialized to: "could not build zlib in mingw"
    7. type initialized to: "Build Problem"
  2. Ticket change [03552350c8] (rid 1944) by mistachkin on 2015-03-26 02:02:04:

    1. icomment:
      There is an issue with building zlib using MinGW.  Using a modified version of
      your patch, I am able to build zlib.  However, the "awk" line caused problems
      for me here (i.e. complaints about being unable to locate the "cc" command).
    2. login: "mistachkin"
    3. mimetype: "text/x-fossil-plain"
    4. priority changed to: "Immediate"
    5. resolution changed to: "Open"
    6. subsystem changed to: "Tcl"
  3. Ticket change [1512da93bb] (rid 1949) by mistachkin on 2015-03-26 04:41:20:

    1. icomment:
      This issue should now be fixed on the 'winZlib128' branch.
    2. login: "mistachkin"
    3. mimetype: "text/x-fossil-plain"
    4. status changed to: "Review"
  4. Ticket change [b3c19bddb1] (rid 1962) by mistachkin on 2015-03-30 23:54:47:

    1. icomment: "Fixed on trunk via check-in [9ad5a7514f35a5a2]."
    2. login: "mistachkin"
    3. mimetype: "text/x-fossil-plain"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"