mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] nsis patch


From: Mark Brand
Subject: Re: [Mingw-cross-env-list] nsis patch
Date: Sun, 12 Aug 2012 12:50:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Firefox/14.0.1 SeaMonkey/2.11

freeman wrote:
Hello,

I'm sending this email to report a minor bug
nsis 2.4.6 doesn't build on 64 bits debian testing system.

Failed to build package nsis!
------------------------------------------------------------
In file included from Source/script.cpp:46:0:
/usr/include/unistd.h:350:12: note: 'int close(int)' declared here,
later in the translation unit
scons: *** [build/release/makensis/script.o] Error 1
scons: building terminated because of errors.
make[1]: *** [build-only-nsis] Error 2
make[1]: Leaving directory `/opt/mxe'
real    0m30.805s
user    0m26.938s
sys     0m2.688s

I needed to patch nsis-2.4.6-src/Source/util.h to add "include unistd.h"

@@ -25,6 +25,7 @@
  #ifndef _WIN32
  #  include <iconv.h>
  #  include <stdio.h>
+#  include <unistd.h>
  #endif

Thanks. Fixed in master branch with e5dca85daf9db16376abe41396ec0153ec6f51a1.


Mark




reply via email to

[Prev in Thread] Current Thread [Next in Thread]