I'm attempting to install NSIS (http://nsis.sourceforge.net/) on an amd64 FreeBSD 7.2 system and having trouble. When I run scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all NSIS_CONFIG_CONST_DATA_PATH=no in the source directory for NSIS, I get a bunch of errors that look like: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter A google search gives me a link to this bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28582 that doesn't seem to have been touched since 2006. Is there someway around this compile error? Thanks, Matt
On 2009-11-17 15:48, Matt Wilks wrote:> in the source directory for NSIS, I get a bunch of errors that look like: > > /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' > ('unsigned int') as first parameterDoes a .cpp file consisting of just the following: #include <new> compile on your system? If so, it is most likely something in the NSIS headers that screws up either the definition of operator new, size_t, or some other vital thing.
Matt Wilks wrote:> I'm attempting to install NSIS (http://nsis.sourceforge.net/) on an > amd64 FreeBSD 7.2 system and having trouble. When I run >[snip]>From the project's home page:"NSIS (Nullsoft Scriptable Install System) is a professional open source system to create Windows installers." Is this supposed to compile on unix-like systems? Mikael
Just a note of closure. Apparently NSIS doesn't compile on 64-bit architectures. Compiled fine on an i386 7.2 install (same machine), once the proper library paths were provided. Matt Wilks wrote:> I'm attempting to install NSIS (http://nsis.sourceforge.net/) on an > amd64 FreeBSD 7.2 system and having trouble. When I run > > scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all > NSIS_CONFIG_CONST_DATA_PATH=no > > in the source directory for NSIS, I get a bunch of errors that look like: > > /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' > ('unsigned int') as first parameter > > A google search gives me a link to this bug > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28582 that doesn't seem to > have been touched since 2006. Is there someway around this compile error? > > Thanks, > Matt > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"-- Matt Wilks Colossians 2:6-7 University of Toronto Information Security, I+TS (416) 978-3328 matt@madhaus.cns.utoronto.ca 4 Bancroft Ave., Rm. 102 Toronto, ON M5S 1C1