<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/squirrelsh/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/squirrelsh/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/squirrelsh/bugs/</id><updated>2017-05-24T06:35:57.116000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#6 Building with GCC-6 fails with `error: macro "min" passed 3 arguments, but takes just 2`</title><link href="https://sourceforge.net/p/squirrelsh/bugs/6/?limit=25#f3fc/8ae3" rel="alternate"/><published>2017-05-24T06:35:57.116000Z</published><updated>2017-05-24T06:35:57.116000Z</updated><author><name>Peter Levine</name><uri>https://sourceforge.net/u/hodorgasm/</uri></author><id>https://sourceforge.net7c589f6ca58ceb82b4183beb657c84ee37fe3486</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;That's the better way of handling it. Thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#6 Building with GCC-6 fails with `error: macro "min" passed 3 arguments, but takes just 2`</title><link href="https://sourceforge.net/p/squirrelsh/bugs/6/?limit=25#f3fc" rel="alternate"/><published>2017-05-24T06:30:18.992000Z</published><updated>2017-05-24T06:30:18.992000Z</updated><author><name>Constantin Makshin</name><uri>https://sourceforge.net/u/dinosaur-rus/</uri></author><id>https://sourceforge.net254b93310f08b438d555d836174b9ef049f81770</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry for the late response.&lt;/p&gt;
&lt;p&gt;I went a bit further than you suggested and replaced all &lt;code&gt;min()&lt;/code&gt; and &lt;code&gt;max()&lt;/code&gt; macros with more appropriate &lt;code&gt;std::min()&lt;/code&gt; and &lt;code&gt;std::max()&lt;/code&gt; functions.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://sourceforge.net/p/squirrelsh/git/ci/13280cdf34d96216b4d10b9ea7656a42a967fc2b/"&gt;https://sourceforge.net/p/squirrelsh/git/ci/13280cdf34d96216b4d10b9ea7656a42a967fc2b/&lt;/a&gt; for details.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Building with GCC-6 fails with `error: macro "min" passed 3 arguments, but takes just 2`</title><link href="https://sourceforge.net/p/squirrelsh/bugs/6/" rel="alternate"/><published>2017-05-21T01:06:41.393000Z</published><updated>2017-05-21T01:06:41.393000Z</updated><author><name>Peter Levine</name><uri>https://sourceforge.net/u/hodorgasm/</uri></author><id>https://sourceforge.neteb3109cd8943c5c47df069af4c501a7f1180ce0e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Compiling squirrelsh-1.2.7 with GCC-6 fails with:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;macro&lt;/span&gt; &lt;span class="s2"&gt;"min"&lt;/span&gt; &lt;span class="n"&gt;passed&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="k"&gt;arguments&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="n"&gt;but&lt;/span&gt; &lt;span class="n"&gt;takes&lt;/span&gt; &lt;span class="n"&gt;just&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
     &lt;span class="n"&gt;min&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;_Tp&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;__a&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;_Tp&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;__b&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_Compare&lt;/span&gt; &lt;span class="n"&gt;__comp&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
                                                        &lt;span class="o"&gt;^&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;See: &lt;a href="https://bugs.gentoo.org/show_bug.cgi?id=594466" rel="nofollow"&gt;https://bugs.gentoo.org/show_bug.cgi?id=594466&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In gcc-6, all &lt;code&gt;&amp;lt;math.h&amp;gt;&lt;/code&gt; functions which were otherwise defined as macros, such as &lt;code&gt;max()&lt;/code&gt; and &lt;code&gt;min()&lt;/code&gt;, are now defined as real functions.  In &lt;code&gt;shell/base.cpp&lt;/code&gt;, by including &lt;code&gt;"common.h"&lt;/code&gt;, which defines such macros which conflict with &lt;code&gt;&amp;lt;math.h&amp;gt;&lt;/code&gt; functions, before C++ standard headers, which transitively include &lt;code&gt;&amp;lt;math.h&amp;gt;&lt;/code&gt;, the mismatch occurs.  Including &lt;code&gt;"common.h"&lt;/code&gt; after such headers resolves the issue.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Latest source compilation on windows with mingw crash</title><link href="https://sourceforge.net/p/squirrelsh/bugs/5/" rel="alternate"/><published>2010-11-06T10:45:32Z</published><updated>2010-11-06T10:45:32Z</updated><author><name>Domingo Alvarez Duarte</name><uri>https://sourceforge.net/u/mingodad/</uri></author><id>https://sourceforge.net50d63b9cde245d0bec192360cebf00b5f973738c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello !&lt;br /&gt;
I've downloaded the latest version of squirrel shell "1.2.5" and compiled with mingw " gcc version 4.4.1 (TDM-2 mingw32)" and the executable crashs.&lt;br /&gt;
If I remove "-Os" from the compiler flags it works fine.&lt;/p&gt;
&lt;p&gt;By the way I'm developing &lt;a href="http://code.google.com/p/luafltk/" rel="nofollow"&gt;http://code.google.com/p/luafltk/&lt;/a&gt; and I'm planning to move from lua to squirrel are you interested on participate on it ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>configure script broken for --with-libraries</title><link href="https://sourceforge.net/p/squirrelsh/bugs/4/" rel="alternate"/><published>2010-04-10T15:59:07Z</published><updated>2010-04-10T15:59:07Z</updated><author><name>ken69267</name><uri>https://sourceforge.net/u/ken69267/</uri></author><id>https://sourceforge.netd2196a0f76eca515fddab733f41b1844bf1b574e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;With the squirrelsh-1.2.3-src.tar.bz2&lt;/p&gt;
&lt;p&gt;Here is the configure script:&lt;/p&gt;
&lt;p&gt;364     --with-libraries=*)&lt;br /&gt;
365         case "$arg_value" in&lt;br /&gt;
366         static | shared)&lt;br /&gt;
367             with_libraries="$arg_option";;&lt;br /&gt;
368         *)&lt;br /&gt;
369             msg_invalidvalue;;&lt;br /&gt;
370         esac;;&lt;/p&gt;
&lt;p&gt;As you can see on line 367, $arg_option should be $arg_value as otherwise passing --with-libraries has no effect. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Can't install this under ubuntu from src.</title><link href="https://sourceforge.net/p/squirrelsh/bugs/3/" rel="alternate"/><published>2010-02-09T21:45:49Z</published><updated>2010-02-09T21:45:49Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net1074c30624b95e9d4f8dd67598bc9b4993f16b52</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;"make" was sucsessful but &lt;br /&gt;
"sudo make install"&lt;br /&gt;
get &lt;br /&gt;
install -c -m 0644 doc/squirrelsh.1 "/usr/local/share/man/man1"&lt;br /&gt;
./configure-mime --install --file&lt;br /&gt;
make: *** [install] Ошибка 1&lt;/p&gt;
&lt;p&gt;when i start squirrelsh from console i get message "segmentation fault"&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Make fails on Linux - SVN files</title><link href="https://sourceforge.net/p/squirrelsh/bugs/2/" rel="alternate"/><published>2006-04-27T04:01:04Z</published><updated>2006-04-27T04:01:04Z</updated><author><name>leith</name><uri>https://sourceforge.net/u/leith98b/</uri></author><id>https://sourceforge.net9469f3296606b9cffc1c17e682189553e131ba48</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I did a checkout from the SVN repository and did a&lt;br /&gt;
make.  I received the following error:&lt;/p&gt;
&lt;p&gt;ar rc ../lib/libsquirrel.a sqapi.o sqbaselib.o&lt;br /&gt;
sqclass.o sqcompiler.o sqdebug.o sqfuncstate.o&lt;br /&gt;
sqlexer.o sqmem.o sqobject.o sqstate.o sqtable.o sqvm.o&lt;br /&gt;
ar: ../lib/libsquirrel.a: No such file or directory&lt;br /&gt;
make[1]: *** [all] Error 1&lt;br /&gt;
make[1]: Leaving directory&lt;br /&gt;
`/home/leith/squirrelsh/squirrel'&lt;br /&gt;
make: *** [all] Error 2&lt;/p&gt;
&lt;p&gt;The ../lib directory did not exist, so I created it. &lt;br /&gt;
After that, make completed that step but failed during&lt;br /&gt;
another one.  This time it returned this error:&lt;/p&gt;
&lt;p&gt;g++ -o ../bin/squirrelsh base.o file.o io.o main.o&lt;br /&gt;
math.o util.o -L../lib -lsquirrel&lt;br /&gt;
/usr/bin/ld: cannot open output file ../bin/squirrelsh:&lt;br /&gt;
No such file or directory&lt;br /&gt;
collect2: ld returned 1 exit status&lt;br /&gt;
make[1]: *** [all] Error 1&lt;br /&gt;
make[1]: Leaving directory `/home/leith/squirrelsh/shell'&lt;br /&gt;
make: *** [all] Error 2&lt;/p&gt;
&lt;p&gt;There was no ../bin directory in the SVN tree.&lt;/p&gt;
&lt;p&gt;SO, after I added the ../bin directory, the make&lt;br /&gt;
completed and squirrelsh was successfully complied.&lt;/p&gt;
&lt;p&gt;Please add ../lib and ../bin to the tree and the make&lt;br /&gt;
should complete successfully on the first try.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Installation on Linux fails</title><link href="https://sourceforge.net/p/squirrelsh/bugs/1/" rel="alternate"/><published>2006-04-26T18:07:56Z</published><updated>2006-04-26T18:07:56Z</updated><author><name>leith</name><uri>https://sourceforge.net/u/leith98b/</uri></author><id>https://sourceforge.net82e1d7c682c7b4d41227d21d4bcc7ccece06f32a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Make fails on Linux.&lt;/p&gt;
&lt;p&gt;make[1]: *** No rule to make target `math.cpp', needed&lt;br /&gt;
by `math.o'.  Stop.&lt;br /&gt;
make[1]: Leaving directory `/home/leith/squirrel/shell'&lt;br /&gt;
make: *** [all] Error 2&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>